aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorAlexander Egorenkov <Alexander.Egorenkov@ibm.com>2020-06-23 17:46:15 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-06-23 21:24:30 +0200
commitbbad15ae75da01150f3b1fed1a3837f5f5bedc89 (patch)
treefac55cc631521270f128cbf8292b9d55330fbc9e /pkg
parent6930bbef3b671ae21f74007f9e59efb9b236b93f (diff)
target: support of big-endian architectures
* Introduce the new target flag 'LittleEndian' which specifies of which endianness the target is. * Introduce the new requires flag 'littleendian' for tests to selectively enable/disable tests on either little-endian architectures or big-endian ones. * Disable KD unit test on s390x architecture because the test works only on little-endian architecture. Signed-off-by: Alexander Egorenkov <Alexander.Egorenkov@ibm.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/kd/kd_test.go2
-rw-r--r--pkg/runtest/run.go1
2 files changed, 3 insertions, 0 deletions
diff --git a/pkg/kd/kd_test.go b/pkg/kd/kd_test.go
index e35a47272..9ffeaf315 100644
--- a/pkg/kd/kd_test.go
+++ b/pkg/kd/kd_test.go
@@ -1,6 +1,8 @@
// Copyright 2017 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+// +build !s390x
+
package kd
import (
diff --git a/pkg/runtest/run.go b/pkg/runtest/run.go
index 1ded72e5a..2730e3e02 100644
--- a/pkg/runtest/run.go
+++ b/pkg/runtest/run.go
@@ -200,6 +200,7 @@ nextSandbox:
properties := map[string]bool{
"arch=" + ctx.Target.Arch: true,
"sandbox=" + sandbox: true,
+ "littleendian": ctx.Target.LittleEndian,
}
for _, threaded := range []bool{false, true} {
name := name