]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Rename file to avoid bugs with VPATH builds and Solaris 'make'.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 5 Jun 2006 20:05:00 +0000 (20:05 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 5 Jun 2006 20:05:00 +0000 (20:05 +0000)
tests/misc/Makefile.in
tests/misc/false-status [moved from tests/misc/false with 100% similarity]
tests/misc/pwd-long [moved from tests/misc/pwd with 100% similarity]
tests/misc/sort-merge [moved from tests/misc/sort with 89% similarity]
tests/misc/test-diag [moved from tests/misc/test with 100% similarity]

index 7894a2f901e0ce2d39bf53dc5e8962cba5b83a28..87e775fa73103b1338240074e949321a4a0a4fda 100644 (file)
@@ -311,8 +311,14 @@ TESTS_ENVIRONMENT = \
   PERL="$(PERL)" \
   BUILD_SRC_DIR="`pwd`/../../src" \
   PATH="`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
-  PROG=$$tst
+  PROG=`../../src/basename -- "$$tst"`
 
+
+# Do not choose a name that is a shell keyword like 'if', or a
+# commonly-used utility like 'cat' or 'test', as the name of a test.
+# Otherwise, VPATH builds will fail on hosts like Solaris, since they
+# will expand 'if test ...' to 'if .../test ...', and the '.../test'
+# will execute the test script rather than the standard utility.
 TESTS = \
   base64 \
   basename \
@@ -322,7 +328,7 @@ TESTS = \
   date-sec \
   dirname \
   expand \
-  false \
+  false-status \
   fold \
   head-c \
   head-elide-tail \
@@ -335,12 +341,12 @@ TESTS = \
   pathchk1 \
   printf \
   printf-hex \
-  pwd \
+  pwd-long \
   sha224sum \
   sha256sum \
   sha384sum \
   sha512sum \
-  sort \
+  sort-merge \
   sort-rand \
   split-a \
   split-fail \
@@ -348,7 +354,7 @@ TESTS = \
   stat-fmt \
   stat-printf \
   tac-continue \
-  test \
+  test-diag \
   tty-eof
 
 all: all-am
similarity index 100%
rename from tests/misc/false
rename to tests/misc/false-status
similarity index 100%
rename from tests/misc/pwd
rename to tests/misc/pwd-long
similarity index 89%
rename from tests/misc/sort
rename to tests/misc/sort-merge
index 6cc6ed2521161fae8079645b94d6125781bd894b..d27f42ea1e0305dd4ec7d3240f86a520e98ac4ba 100755 (executable)
@@ -26,7 +26,7 @@ my @Tests =
 my $save_temps = $ENV{DEBUG};
 my $verbose = $ENV{VERBOSE};
 
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
+my $prog = 'sort';
 my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
 exit $fail;
 EOF
similarity index 100%
rename from tests/misc/test
rename to tests/misc/test-diag