in case Solaris make has prepended the directory.
(TESTS): Adjust to test script renamings.
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 \
date-sec \
dirname \
expand \
- false \
+ false-status \
fold \
head-c \
head-elide-tail \
pathchk1 \
printf \
printf-hex \
- pwd \
+ pwd-long \
sha224sum \
sha256sum \
sha384sum \
sha512sum \
- sort \
+ sort-merge \
sort-rand \
split-a \
split-fail \
stat-fmt \
stat-printf \
tac-continue \
- test \
+ test-diag \
tty-eof