[Fuego] [PATCH 10/18] LTP: skip a few problematic tests for now

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


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

diff --git a/engine/tests/Functional.LTP/fuego_test.sh b/engine/tests/Functional.LTP/fuego_test.sh
index faec158..5b9cb2b 100755
--- a/engine/tests/Functional.LTP/fuego_test.sh
+++ b/engine/tests/Functional.LTP/fuego_test.sh
@@ -80,6 +80,19 @@ func/sched_jitter
 #  user should copy tar to board, and install it, then set board file's
 #    FUNCTIONAL_LTP_HOMEDIR var
 
+# $1: string with tests to skip separated by spaces
+function skip_tests {
+    # split $1 on whitespace, without file globbing
+    set -f
+    local TESTS=($1)
+    set +f
+
+    echo "Skipping tests: ${TESTS[@]}."
+    for testname in "${TESTS[@]}"; do
+        echo "$testname" >> ${LOGDIR}/skiplist.txt
+    done
+}
+
 function test_pre_check {
     if [ -n "${FUNCTIONAL_LTP_HOMEDIR}" ] ; then
         # user or spec has specified a home directory for LTP.
@@ -112,6 +125,21 @@ function test_pre_check {
     assert_define RANLIB
     assert_define LDFLAGS
     assert_define FUNCTIONAL_LTP_TESTS
+
+    # FIXTHIS: use regex for selecting tests to skip once merged on LTP upstream
+    echo "Tests skipped by default in Fuego for now"
+    echo "# skip these test cases" > ${LOGDIR}/skiplist.txt
+    skip_tests "su01" # too complicated to setup
+    skip_tests "sbrk03" # Only works in 32bit on s390 series system
+    skip_tests "switch01" # Requires a 64-bit processor that supports little-endian mode,such as POWER6.
+    skip_tests "ptrace04" # Requires blackfin processor
+    skip_tests "cacheflush01" # Available only on MIPS-based systems
+    skip_tests "bdflush01" # bdflush was deprecated by pdflush and pdflush removed from the kernel (https://lwn.net/Articles/508212/)
+    skip_tests "fcntl06" # Linux kernel doesn't implement R_GETLK/R_SETLK
+    skip_tests "fcntl06_64" # Linux kernel doesn't implement R_GETLK/R_SETLK
+    skip_tests "munlockall02" # munlockall can be called form user space
+    skip_tests "openat02" # Requires a filesystem with noatime and relatime
+    skip_tests "utimensat01" # kernel patch f2b20f6ee842313a changed return value from -EACCESS to EPERM when a file is immutable and update time is NULL or UTIME_NOW
 }
 
 function test_build {
-- 
2.7.4




More information about the Fuego mailing list