Reorder tests to run more basic ones earlier.
authorJim Meyering <meyering@redhat.com>
Sun, 21 Oct 2007 10:44:32 +0000 (12:44 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 21 Oct 2007 12:01:28 +0000 (14:01 +0200)
* tests/misc/Makefile.am (TESTS): Reorder.
* tests/Makefile.am (SUBDIRS): Reorder.

Signed-off-by: Jim Meyering <meyering@redhat.com>
ChangeLog
tests/Makefile.am
tests/misc/Makefile.am

index 4dcd62b..295d3ba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-10-21  Jim Meyering  <meyering@redhat.com>
 
+       Reorder tests to run more basic ones earlier.
+       * tests/misc/Makefile.am (TESTS): Reorder.
+       * tests/Makefile.am (SUBDIRS): Reorder.
+
        tr: do not reject an unmatched [:lower:] or [:upper:] in SET1.
        * NEWS: Mention this.
        * src/tr.c (get_next) [RE_CHAR_CLASS]: Don't skip the loop when
index fa2ff29..a3fd21a 100644 (file)
@@ -39,11 +39,19 @@ EXTRA_DIST =                \
   umask-check          \
   very-expensive
 
+# Regarding ordering in SUBDIRS, place early in the list the tools that
+# are most commonly used in test scripts.  Every test script uses rm
+# and chmod, so they have to be very early.
+# Ordering within misc/ should handle the rest.
+
 ## N O T E :: Please do not add new tests/ directories.
 ## There are too many already.  Put new tests in misc/.
 SUBDIRS = \
-  chgrp chmod chown cp cut dd du head \
-  install join ln ls misc mkdir mv pr readlink rm rmdir \
+  rm \
+  chmod \
+  misc \
+  chgrp chown cp cut dd du head \
+  install join ln ls mkdir mv pr readlink rmdir \
   sort tac tail tail-2 test touch tr \
   uniq wc
 ## N O T E :: Please do not add new directories.
index 7425a6b..5f256cf 100644 (file)
@@ -26,7 +26,14 @@ built_programs = \
 # will expand 'if test ...' to 'if .../test ...', and the '.../test'
 # will execute the test script rather than the standard utility.
 
+# Ordering:
+# help-version comes early because it's a basic sanity test.
+# Put seq early, since lots of other tests use it.
+# Put head-elide-tail early, because it's long-running.
+
 TESTS = \
+  help-version \
+  seq \
   head-elide-tail \
   ls-time \
   ls-misc \
@@ -64,7 +71,6 @@ TESTS = \
   groups-version \
   head-c \
   head-pos \
-  help-version \
   md5sum \
   md5sum-newline \
   mknod \
@@ -80,7 +86,6 @@ TESTS = \
   pwd-long \
   readlink-fp-loop \
   runcon-no-reorder \
-  seq \
   sha1sum \
   sha1sum-vec \
   sha224sum \