summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-10-21 12:44:32 +0200
committerJim Meyering <meyering@redhat.com>2007-10-21 14:01:28 +0200
commita64e33f79b80e142325faa3937cc4c27a56ec4ae (patch)
tree0fc24feec43edaa9ed7a55735a49a4f56046ffc1 /tests
parentaf5d0c363a52e787a4311a11f035209eecdc4115 (diff)
downloadcoreutils-a64e33f79b80e142325faa3937cc4c27a56ec4ae.tar.xz
Reorder tests to run more basic ones earlier.
* tests/misc/Makefile.am (TESTS): Reorder. * tests/Makefile.am (SUBDIRS): Reorder. Signed-off-by: Jim Meyering <meyering@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am12
-rw-r--r--tests/misc/Makefile.am9
2 files changed, 17 insertions, 4 deletions
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 \