[Fuego] [PATCH 12/18] LTP: skip tests that depend on specific kernel commits

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


Note: this should be fixed in the future with a check
on the kernel version.

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

diff --git a/engine/tests/Functional.LTP/fuego_test.sh b/engine/tests/Functional.LTP/fuego_test.sh
index e516dd8..cd64867 100755
--- a/engine/tests/Functional.LTP/fuego_test.sh
+++ b/engine/tests/Functional.LTP/fuego_test.sh
@@ -152,6 +152,16 @@ function test_pre_check {
         echo "WARNING: could not check if /tmp is mounted using tmpfs"
     fi
     rm -f $target_mounts
+
+    # Tests skipped by Linux kernel version
+    # FIXTHIS: compare with the kernel version before adding tests to the skiplist
+    kver=$(cmd "uname -r")
+    echo "kernel version: $kver"
+    skip_tests "adjtimex02" # needs a kernel that doesn't normalize buf.offset if it is outside the acceptable range
+    skip_tests "fallocate04" # needs Linux 3.15 or newer
+    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
 }
 
 function test_build {
-- 
2.7.4




More information about the Fuego mailing list