From bbad15ae75da01150f3b1fed1a3837f5f5bedc89 Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Tue, 23 Jun 2020 17:46:15 +0200 Subject: 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 --- pkg/kd/kd_test.go | 2 ++ pkg/runtest/run.go | 1 + 2 files changed, 3 insertions(+) (limited to 'pkg') 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 -- cgit mrf-deployment