summaryrefslogtreecommitdiff
path: root/tests/scripts
diff options
context:
space:
mode:
authorpsmith <>2009-09-28 23:08:49 +0000
committerpsmith <>2009-09-28 23:08:49 +0000
commited64fa1384faff908eec6d3f64762aa96d71702f (patch)
tree7cdf72982c9359faa1843d61d45d433ae2ce85f6 /tests/scripts
parenta73dbcd6cc9fdf5ffce6d6ed215d3f49c8fbdf34 (diff)
downloadmake-ed64fa1384faff908eec6d3f64762aa96d71702f.tar.gz
- Update manual description for pattern rule search algorithm
- Add new "-all" flag to the test suite to run tests that don't pass yet - Add some non-passing tests - Fix from Andreas Buening for OS/2.
Diffstat (limited to 'tests/scripts')
-rw-r--r--tests/scripts/features/se_explicit27
-rw-r--r--tests/scripts/functions/shell9
2 files changed, 36 insertions, 0 deletions
diff --git a/tests/scripts/features/se_explicit b/tests/scripts/features/se_explicit
index adf6b33f..1b514749 100644
--- a/tests/scripts/features/se_explicit
+++ b/tests/scripts/features/se_explicit
@@ -130,5 +130,32 @@ endef
!,
'', "#MAKE#: *** prerequisites cannot be defined in recipes. Stop.\n", 512);
+
+if ($all_tests) {
+ # Automatic $$+ variable expansion issue. Savannah bug #25780
+ run_make_test(q!
+all : foo foo
+.SECONDEXPANSION:
+all : $$+ ; @echo '$+'
+foo : ;
+!,
+ '', "foo foo foo foo\n");
+
+}
+
+if ($all_tests) {
+ # Automatic $$+ variable expansion issue. Savannah bug #25780
+ run_make_test(q!
+all : bar bar
+bar : ;
+q%x : ;
+.SECONDEXPANSION:
+a%l: q1x $$+ q2x ; @echo '$+'
+!,
+ '', "q1x bar bar q2x bar bar\n");
+
+}
+
+
# This tells the test driver that the perl test script executed properly.
1;
diff --git a/tests/scripts/functions/shell b/tests/scripts/functions/shell
index ecea4cf6..723cd0ed 100644
--- a/tests/scripts/functions/shell
+++ b/tests/scripts/functions/shell
@@ -11,6 +11,15 @@ all: ; @echo $(shell echo hi)
','','hi');
+# Test unescaped comment characters in shells. Savannah bug #20513
+if ($all_tests) {
+ run_make_test(q!
+FOO := $(shell echo '#')
+foo: ; echo '$(FOO)'
+!,
+ '', "#\n");
+}
+
# Test shells inside exported environment variables.
# This is the test that fails if we try to put make exported variables into
# the environment for a $(shell ...) call.