summaryrefslogtreecommitdiff
path: root/tests/exeext4.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/exeext4.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/exeext4.test')
-rwxr-xr-xtests/exeext4.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/exeext4.test b/tests/exeext4.test
index 6e31a9af2..bb820128e 100755
--- a/tests/exeext4.test
+++ b/tests/exeext4.test
@@ -78,3 +78,8 @@ grep 'prg1.bin prg3.bin prg4 baz.bin bar.bin' output
$MAKE print-barbaz > output
cat output
grep 'bar baz bar' output
+
+# Only two am__EXEEXT_* variables are needed here: one for BAR, and one
+# BAZ. The latter must use the former.
+test 2 = `grep '__EXEEXT_. =' Makefile.in | wc -l`
+grep 'am__EXEEXT_2 = .*am__EXEEXT_1' Makefile.in