summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTom Hromatka <tom.hromatka@oracle.com>2020-07-17 09:11:28 -0600
committerPaul Moore <paul@paul-moore.com>2020-07-17 20:45:49 -0400
commita6de31f0d90f00bfd6900480857f6c71f1d3c8ef (patch)
tree74c15393f35a7e4ec61a179e506d0ef94e186d01 /tests
parent5696c896409c1feb37eb502df33cf36efb2e8e01 (diff)
downloadlibseccomp-a6de31f0d90f00bfd6900480857f6c71f1d3c8ef.tar.gz
tests: Explicitly specify the archs in the sim binary tree test
Test 53-sim-binary_tree removes the native architecture and builds the binary tree on aarch64, ppc64le, and x86_64. But the tests file was testing for "all" architectures which led to test failures on other systems like s390x. This commit replaces the "all" arch with only the architectures in the test. Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/53-sim-binary_tree.tests102
1 files changed, 51 insertions, 51 deletions
diff --git a/tests/53-sim-binary_tree.tests b/tests/53-sim-binary_tree.tests
index cd9f396..2ebaafd 100644
--- a/tests/53-sim-binary_tree.tests
+++ b/tests/53-sim-binary_tree.tests
@@ -7,57 +7,57 @@
test type: bpf-sim
-# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result
-53-sim-binary_tree all read N N N N N N ERRNO(0)
-53-sim-binary_tree all write N N N N N N ERRNO(1)
-53-sim-binary_tree +x86_64,+ppc64le open N N N N N N ERRNO(2)
-53-sim-binary_tree +aarch64 open N N N N N N ALLOW
-53-sim-binary_tree all close N N N N N N ALLOW
-53-sim-binary_tree all close 100 1234 N N N N ALLOW
-53-sim-binary_tree all close 100 101 N N N N ERRNO(3)
-53-sim-binary_tree +x86_64,+ppc64le stat N N N N N N ERRNO(4)
-53-sim-binary_tree +aarch64 stat N N N N N N ALLOW
-53-sim-binary_tree all fstat N N N N N N ERRNO(5)
-53-sim-binary_tree +x86_64,+ppc64le lstat N N N N N N ERRNO(6)
-53-sim-binary_tree +aarch64 lstat N N N N N N ALLOW
-53-sim-binary_tree +x86_64,+ppc64le poll 102 N N N N N ERRNO(7)
-53-sim-binary_tree +aarch64 poll 102 N N N N N ALLOW
-53-sim-binary_tree all lseek 103 104 N N N N ERRNO(8)
-53-sim-binary_tree all mmap N N N N N N ERRNO(9)
-53-sim-binary_tree all mprotect N N N N N N ERRNO(10)
-53-sim-binary_tree all munmap N N N N N N ERRNO(11)
-53-sim-binary_tree all brk N N N N N N ERRNO(12)
-53-sim-binary_tree all rt_sigaction N N N N N N ERRNO(13)
-53-sim-binary_tree all rt_sigprocmask N N N N N N ERRNO(14)
-53-sim-binary_tree all rt_sigreturn N N N N N N ERRNO(15)
-53-sim-binary_tree all ioctl N N N N N N ERRNO(16)
-53-sim-binary_tree all pread64 105 N N N N N ERRNO(17)
-53-sim-binary_tree all pwrite64 N N N N N N ERRNO(18)
-53-sim-binary_tree all readv N N N N N N ERRNO(19)
-53-sim-binary_tree all writev N N N N N N ERRNO(20)
-53-sim-binary_tree +x86_64,+ppc64le access N N N N N N ERRNO(21)
-53-sim-binary_tree +aarch64 access N N N N N N ALLOW
-53-sim-binary_tree +x86_64,+ppc64le pipe N N N N N N ERRNO(22)
-53-sim-binary_tree +aarch64 pipe N N N N N N ALLOW
-53-sim-binary_tree all select N N N N N N ALLOW
-53-sim-binary_tree +x86_64,+ppc64le select 106 107 N N N N ERRNO(23)
-53-sim-binary_tree +aarch64 select 106 107 N N N N ALLOW
-53-sim-binary_tree all sched_yield N N N N N N ERRNO(24)
-53-sim-binary_tree all mremap N N N N N N ALLOW
-53-sim-binary_tree all mremap 108 109 N N N N ERRNO(25)
-53-sim-binary_tree all msync N N N N N N ERRNO(26)
-53-sim-binary_tree all mincore N N N N N N ERRNO(27)
-53-sim-binary_tree all madvise N N N N N N ERRNO(28)
-53-sim-binary_tree all dup 112 N N N N N ERRNO(32)
-53-sim-binary_tree all dup 5678 N N N N N ALLOW
-53-sim-binary_tree +x86_64,+ppc64le dup2 N N N N N N ERRNO(33)
-53-sim-binary_tree +aarch64 dup2 N N N N N N ALLOW
-53-sim-binary_tree +x86_64,+ppc64le pause N N N N N N ERRNO(34)
-53-sim-binary_tree +aarch64 pause N N N N N N ALLOW
-53-sim-binary_tree all nanosleep N N N N N N ERRNO(35)
-53-sim-binary_tree all getitimer N N N N N N ERRNO(36)
-53-sim-binary_tree +x86_64,+ppc64le alarm N N N N N N ERRNO(37)
-53-sim-binary_tree +aarch64 alarm N N N N N N ALLOW
+# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 read N N N N N N ERRNO(0)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 write N N N N N N ERRNO(1)
+53-sim-binary_tree +x86_64,+ppc64le open N N N N N N ERRNO(2)
+53-sim-binary_tree +aarch64 open N N N N N N ALLOW
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 close N N N N N N ALLOW
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 close 100 1234 N N N N ALLOW
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 close 100 101 N N N N ERRNO(3)
+53-sim-binary_tree +x86_64,+ppc64le stat N N N N N N ERRNO(4)
+53-sim-binary_tree +aarch64 stat N N N N N N ALLOW
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 fstat N N N N N N ERRNO(5)
+53-sim-binary_tree +x86_64,+ppc64le lstat N N N N N N ERRNO(6)
+53-sim-binary_tree +aarch64 lstat N N N N N N ALLOW
+53-sim-binary_tree +x86_64,+ppc64le poll 102 N N N N N ERRNO(7)
+53-sim-binary_tree +aarch64 poll 102 N N N N N ALLOW
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 lseek 103 104 N N N N ERRNO(8)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 mmap N N N N N N ERRNO(9)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 mprotect N N N N N N ERRNO(10)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 munmap N N N N N N ERRNO(11)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 brk N N N N N N ERRNO(12)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 rt_sigaction N N N N N N ERRNO(13)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 rt_sigprocmask N N N N N N ERRNO(14)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 rt_sigreturn N N N N N N ERRNO(15)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 ioctl N N N N N N ERRNO(16)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 pread64 105 N N N N N ERRNO(17)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 pwrite64 N N N N N N ERRNO(18)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 readv N N N N N N ERRNO(19)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 writev N N N N N N ERRNO(20)
+53-sim-binary_tree +x86_64,+ppc64le access N N N N N N ERRNO(21)
+53-sim-binary_tree +aarch64 access N N N N N N ALLOW
+53-sim-binary_tree +x86_64,+ppc64le pipe N N N N N N ERRNO(22)
+53-sim-binary_tree +aarch64 pipe N N N N N N ALLOW
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 select N N N N N N ALLOW
+53-sim-binary_tree +x86_64,+ppc64le select 106 107 N N N N ERRNO(23)
+53-sim-binary_tree +aarch64 select 106 107 N N N N ALLOW
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 sched_yield N N N N N N ERRNO(24)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 mremap N N N N N N ALLOW
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 mremap 108 109 N N N N ERRNO(25)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 msync N N N N N N ERRNO(26)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 mincore N N N N N N ERRNO(27)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 madvise N N N N N N ERRNO(28)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 dup 112 N N N N N ERRNO(32)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 dup 5678 N N N N N ALLOW
+53-sim-binary_tree +x86_64,+ppc64le dup2 N N N N N N ERRNO(33)
+53-sim-binary_tree +aarch64 dup2 N N N N N N ALLOW
+53-sim-binary_tree +x86_64,+ppc64le pause N N N N N N ERRNO(34)
+53-sim-binary_tree +aarch64 pause N N N N N N ALLOW
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 nanosleep N N N N N N ERRNO(35)
+53-sim-binary_tree +x86_64,+ppc64le,+aarch64 getitimer N N N N N N ERRNO(36)
+53-sim-binary_tree +x86_64,+ppc64le alarm N N N N N N ERRNO(37)
+53-sim-binary_tree +aarch64 alarm N N N N N N ALLOW
test type: bpf-valgrind