summaryrefslogtreecommitdiff
path: root/tests/check2.test
diff options
context:
space:
mode:
authorAlexandre Duret-Lutz <adl@gnu.org>2006-04-09 13:56:33 +0000
committerAlexandre Duret-Lutz <adl@gnu.org>2006-04-09 13:56:33 +0000
commit9d0eaef6e6a5aa18194602dd0be1b0af8f8e0d1b (patch)
treef2f7618c5d0a232ce219a8e13a6c59280fad5bc0 /tests/check2.test
parentd2e347928cea947cfcf19eefea2bc975ecb6e092 (diff)
downloadautomake-9d0eaef6e6a5aa18194602dd0be1b0af8f8e0d1b.tar.gz
* lib/Automake/Variable.pm (_hash_varname, _hash_values): New functions.
(_gen_varname): Use _hash_values, and return a flag indicating whether the variable name was generated or reused. (transform_variable_recursively): Do not redefine variables that are reused, and try to reuse the variable being transformed. * tests/check2.test: Make sure TESTS hasn't been redefined. * tests/check5.test, tests/exeext4.test: Make sure variables have been reused. * tests/subst2.test: Make sure bin_PROGRAMS gets rewritten.
Diffstat (limited to 'tests/check2.test')
-rwxr-xr-xtests/check2.test10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/check2.test b/tests/check2.test
index 9975feec3..86ccef0f4 100755
--- a/tests/check2.test
+++ b/tests/check2.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -33,7 +33,8 @@ mkdir dir
cat > Makefile.am << 'END'
SUBDIRS = dir
-TESTS = subrun.sh
+TESTS = \
+ subrun.sh
subrun.sh:
(echo '#! /bin/sh'; echo 'dir/echo.sh') > $@
chmod +x $@
@@ -60,3 +61,8 @@ grep 'PASS: subrun.sh' stdout
# in check.test and check3.test).
grep 'check: check-recursive' Makefile.in
grep 'check: check-am' dir/Makefile.in
+
+# Make sure subrun.sh is still on its line as above. This means Automake
+# hasn't rewritten the TESTS line unnecessarily (we can tell, because all
+# Automake variables are reformatted by VAR_PRETTY).
+grep ' subrun.sh' Makefile.in