[Fuego] [PATCH 13/18] LTP: skip tests depending on the architecture

Daniel Sangorrin daniel.sangorrin at toshiba.co.jp
Tue Jan 30 09:59:31 UTC 2018


Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
 engine/tests/Functional.LTP/fuego_test.sh | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/engine/tests/Functional.LTP/fuego_test.sh b/engine/tests/Functional.LTP/fuego_test.sh
index cd64867..d54b299 100755
--- a/engine/tests/Functional.LTP/fuego_test.sh
+++ b/engine/tests/Functional.LTP/fuego_test.sh
@@ -162,6 +162,31 @@ function test_pre_check {
     skip_tests "add_key02" # needs a kernel with the 5649645d725c commit
     skip_tests "inotify06" # will loop/crash kernels that dont have commit 8f2f3eb59dff (<4.2)
     skip_tests "ptrace03" # Only works for <2.6.26, above that the kernel allows to trace init
+
+    # Tests skipped depending on the architecture
+    if [ "$ARCHITECTURE" = "x86_64" ]; then
+        skip_tests "chown01_16 chown02_16 chown03_16 chown04_16 chown05_16"
+        skip_tests "fchown01_16 fchown02_16 fchown03_16 fchown04_16 fchown05_16"
+        skip_tests "getegid01_16 getegid02_16 geteuid01_16 geteuid02_16 getgid01_16 getgid03_16"
+        skip_tests "getgroups01_16 getgroups03_16"
+        skip_tests "getuid01_16 getuid03_16"
+        skip_tests "lchown01_16 lchown02_16 lchown03_16"
+        skip_tests "setfsgid01_16 setfsgid02_16 setfsgid03_16"
+        skip_tests "setfsuid01_16 setfsuid02_16 setfsuid03_16 setfsuid04_16"
+        skip_tests "setgid01_16 setgid02_16 setgid03_16"
+        skip_tests "setgroups01_16 setgroups02_16 setgroups03_16 setgroups04_16"
+        skip_tests "setregid01_16 setregid02_16 setregid03_16 setregid04_16"
+        skip_tests "setresgid01_16 setresgid02_16 setresgid03_16 setresgid04_16"
+        skip_tests "setresuid01_16 setresuid02_16 setresuid03_16 setresuid04_16 setresuid05_16"
+        skip_tests "setreuid01_16 setreuid02_16 setreuid03_16 setreuid04_16 setreuid05_16 setreuid06_16 setreuid07_16"
+        skip_tests "setuid01_16 setuid02_16 setuid03_16 setuid04_16"
+        skip_tests "msgrcv08" # does not work on 64 bit
+        skip_tests "readdir21" # This system call does not exist on x86-64 (man 2 readdir)
+    fi
+
+    if [ "$ARCHITECTURE" != "i386" ]; then
+        skip_tests "modify_ldt01 modify_ldt02 modify_ldt03" # Only work on i386
+    fi
 }
 
 function test_build {
-- 
2.7.4




More information about the Fuego mailing list