testsuite fixes
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 2 Apr 2010 07:57:27 +0000 (09:57 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 2 Apr 2010 07:57:27 +0000 (09:57 +0200)
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
testsuite/cp/cp-parents
testsuite/mount.tests
testsuite/runtest
testsuite/tar.tests

index a721ceaf2c12ce4a3a259ebf89ee4617d6643984..e27c162850994a0f10293c108dc6cec52546ba04 100644 (file)
@@ -1,3 +1,4 @@
+# FEATURE: CONFIG_FEATURE_CP_LONG_OPTIONS
 mkdir -p foo/bar/baz
 touch foo/bar/baz/file
 mkdir dir
index 8bd60ea0cab366c2454d899e1d5a8477570977af..043586f05943c2556cf36cd322d99e9332e3023e 100755 (executable)
@@ -9,6 +9,13 @@ test "`id -u`" = 0 || {
        exit 0
 }
 
+optional MKFS_MINIX
+if [ -n "$SKIP" ]
+then
+  echo "SKIPPED: mount"
+  exit 0
+fi
+
 testdir=$PWD/testdir
 
 dd if=/dev/zero of=mount.image1m count=1 bs=1M 2>/dev/null || { echo "dd error"; exit 1; }
index 5ddf07d097d0e288293ff4af6992c6d68e1f2771..c300233cd025ccd256d77927d75e15a509650ba1 100755 (executable)
@@ -26,10 +26,12 @@ run_applet_testcase()
        if grep "^# FEATURE: " "$testcase" >/dev/null; then
                local feature=$(sed -ne 's/^# FEATURE: //p' "$testcase")
 
-               if grep "^# $feature is not set$" "$bindir/.config" >/dev/null; then
-                       echo "UNTESTED: $testname"
-                       return 0
-               fi
+               for f in $feature; do
+                       if grep "^# $f is not set$" "$bindir/.config" >/dev/null; then
+                               echo "UNTESTED: $testname"
+                               return 0
+                       fi
+               done
        fi
 
        rm -rf ".tmpdir.$applet"
index 6c136a615b1e977381cf79bbd06a8f1937c13b2b..71095cb20514d326c376a32801deb1558e1996c3 100755 (executable)
@@ -31,6 +31,7 @@ Ok
 " \
 "" ""
 
+optional FEATURE_TAR_LONG_OPTIONS
 testing "tar --overwrite" "\
 rm -rf input_* test.tar 2>/dev/null
 ln input input_hard
@@ -43,6 +44,7 @@ tar xf test.tar --overwrite 2>&1 && cat input
 Ok
 " \
 "Ok\n" ""
+SKIP=
 
 cd .. && rm -rf tempdir || exit 1