summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2007-11-30 10:25:09 +0100
committerJim Meyering <meyering@redhat.com>2007-11-30 10:25:09 +0100
commitd7ed3bcb8dd785f1404d6f68f53c6b5668ac56f8 (patch)
treeef31eef0f102234b05571f2c1e15f4c920239f48
parent688073771da95df0d7551b8361e264180bfffe5f (diff)
downloadcoreutils-d7ed3bcb8dd785f1404d6f68f53c6b5668ac56f8.tar.xz
Define `tst', for CU_TEST_NAME.
* build-aux/check.mk (am__check_pre): Set `tst', for CU_TEST_NAME in tests/check.mk.
-rw-r--r--ChangeLog4
-rw-r--r--build-aux/check.mk1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a080b1dc..4965e64e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2007-11-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Define `tst', for CU_TEST_NAME.
+ * build-aux/check.mk (am__check_pre): Set `tst', for
+ CU_TEST_NAME in tests/check.mk.
+
* tests/CuTmpdir.pm (END): Do not do the cleanup if $dir is not
defined, because it then goes wild and changes the mode of all
directories below $HOME. Undefined $dir can happen if the test
diff --git a/build-aux/check.mk b/build-aux/check.mk
index 9f63b6d17..95f56cb5f 100644
--- a/build-aux/check.mk
+++ b/build-aux/check.mk
@@ -94,6 +94,7 @@ SH_E_WORKAROUND = case $$- in *e*) set +e;; esac
# containing $src, and passes TESTS_ENVIRONMENT.
am__check_pre = \
$(SH_E_WORKAROUND); \
+tst=`echo "$$src" | sed 's|^.*/||'`; \
$(mkdir_p) "$$(dirname $@)" || exit; \
if test -f "./$$src"; then dir=./; \
elif test -f "$$src"; then dir=; \