summaryrefslogtreecommitdiff
path: root/tests/scripts/features/se_explicit
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-09-21 18:10:08 -0400
committerPaul Smith <psmith@gnu.org>2013-09-21 18:10:08 -0400
commit300d1296fb0f8f1b6bd16f977e2167442338343d (patch)
treee1e413420a68a278295562e5a7c4233d2c737c4f /tests/scripts/features/se_explicit
parent822f8dae415cb5da2ad27ab7e26033f6b9ad5b48 (diff)
downloadgunmake-300d1296fb0f8f1b6bd16f977e2167442338343d.tar.gz
Create a target that tests alternative configurations.
Diffstat (limited to 'tests/scripts/features/se_explicit')
-rw-r--r--tests/scripts/features/se_explicit5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/scripts/features/se_explicit b/tests/scripts/features/se_explicit
index c3cade4..790017a 100644
--- a/tests/scripts/features/se_explicit
+++ b/tests/scripts/features/se_explicit
@@ -6,6 +6,9 @@ $details = "";
# TEST #0: Test handing of '$' in prerequisites with and without second
# expansion.
+# If we don't support archives then the prerequisite is different
+my $prereq = exists $FEATURES{'archives'} ? '$' : '$(PRE)';
+
run_make_test(q!
ifdef SE
.SECONDEXPANSION:
@@ -18,7 +21,7 @@ PRE = three four
.DEFAULT: ; @echo '$@'
!,
'',
- "\$\nbar\$biz\nfoo\$bar : bar\$baz bar\$biz");
+ "$prereq\nbar\$biz\nfoo\$bar : bar\$baz bar\$biz");
run_make_test(undef, 'SE=1', "three\nfour\nbariz\nfoo\$bar : baraz bariz");