]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfstests: Run all tests when nothing is specified
authorLukas Czerner <lczerner@redhat.com>
Thu, 11 Jul 2013 10:37:56 +0000 (10:37 +0000)
committerRich Johnston <rjohnston@sgi.com>
Tue, 15 Oct 2013 14:43:08 +0000 (09:43 -0500)
Currently when no tests or test groups are specified xfstests will
silently test nothing. Interestingly enough when test groups to exclude
are specified the rest of the tests will be run.

This commit changes that to run all possible tests (for a given file
system) when no specific tests has been specified. This matches the old
xfstests behaviour.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
check
group [deleted file]

diff --git a/check b/check
index 64e9865bfd84ed895bff0c05469f3849e0b2f18e..76e3a77f443a4650e75b6a351611ae685f53e908 100755 (executable)
--- a/check
+++ b/check
@@ -112,7 +112,7 @@ get_all_tests()
        for d in $SRC_GROUPS $FSTYP; do
                ls $SRC_DIR/$d/* | \
                        grep -v "\..*" | \
-                       grep -v group >> $tmp.list 2>/dev/null
+                       grep -v "group\|Makefile" >> $tmp.list 2>/dev/null
        done
 }
 
@@ -258,8 +258,8 @@ elif $have_test_arg; then
        # had test numbers, but none in group file ... do nothing
        touch $tmp.list
 else
-       # no test numbers, do everything from group file
-       sed -n -e '/^[0-9][0-9][0-9]*/s/[       ].*//p' <group >$tmp.list
+       # no test numbers, do everything
+       get_all_tests
 fi
 
 # sort the list of tests into numeric order
diff --git a/group b/group
deleted file mode 100644 (file)
index 4e01f0c..0000000
--- a/group
+++ /dev/null
@@ -1,5 +0,0 @@
-# QA groups control file
-# Defines test groups and nominal group owners
-# - do not start group names with a digit
-# - comment line before each group is "new" description
-#