diff options
author | Paul Smith <psmith@gnu.org> | 2004-09-22 04:36:17 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2004-09-22 04:36:17 +0000 |
commit | 29d78ddb2842d75956fb9b2f50fa7032f6a28416 (patch) | |
tree | 18e57d8b1de21618a9f7071fa9f24879a2fc1e97 /tests/scripts/features/patternrules | |
parent | 73e7767ffc14fad98dd2e78791a1237bcb3d6fe3 (diff) | |
download | gunmake-29d78ddb2842d75956fb9b2f50fa7032f6a28416.tar.gz |
Update the test template. A few fixes in run_make_test().
Rename implicit_prereq_eval to patternrules, to be the start of a suite
of tests of pattern rules.
Diffstat (limited to 'tests/scripts/features/patternrules')
-rw-r--r-- | tests/scripts/features/patternrules | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/scripts/features/patternrules b/tests/scripts/features/patternrules new file mode 100644 index 0000000..926695a --- /dev/null +++ b/tests/scripts/features/patternrules @@ -0,0 +1,40 @@ +# -*-perl-*- + +$description = "Test pattern rules."; + +$details = ""; + +# Make sure that multiple patterns where the same target can be built are +# searched even if the first one fails to match properly. + +run_make_test(' +.PHONY: all + +all: case.1 case.2 case.3 +a: void + +# 1 - existing file +%.1: void + @false +%.1: #MAKEFILE# + @true + +# 2 - phony +%.2: void + @false +%.2: 2.phony + @true +.PHONY: 2.phony + +# 3 - implicit-phony +%.3: void + @false +%.3: 3.implicit-phony + @true + +3.implicit-phony: +', '', ''); + + +# This tells the test driver that the perl test script executed properly. +1; |