From a64e33f79b80e142325faa3937cc4c27a56ec4ae Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 21 Oct 2007 12:44:32 +0200 Subject: Reorder tests to run more basic ones earlier. * tests/misc/Makefile.am (TESTS): Reorder. * tests/Makefile.am (SUBDIRS): Reorder. Signed-off-by: Jim Meyering --- tests/Makefile.am | 12 ++++++++++-- tests/misc/Makefile.am | 9 +++++++-- 2 files changed, 17 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/Makefile.am b/tests/Makefile.am index fa2ff29be..a3fd21a6f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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. diff --git a/tests/misc/Makefile.am b/tests/misc/Makefile.am index 7425a6b07..5f256cfa2 100644 --- a/tests/misc/Makefile.am +++ b/tests/misc/Makefile.am @@ -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 \ -- cgit v1.2.3-54-g00ecf