From 8ecc09653d70fe8df4fc9fcd7214ba85e6db9c9c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 2 Sep 2022 10:29:15 +0200 Subject: Add ability to specify `in` rule substitution as key-value pairs --- tests/in/testscript | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/in/testscript b/tests/in/testscript index c4f534c..5dce1d3 100644 --- a/tests/in/testscript +++ b/tests/in/testscript @@ -17,7 +17,9 @@ cat <=test.in; EOI cat <=buildfile; file{test}: in{test} - file{test}: foo = FOO + { + foo = FOO + } EOI $* <<>EOO; @@ -25,6 +27,27 @@ cat test >>EOO; EOO $* clean <<=test.in; + foo = $_foo$ + bar = $bar$ + EOI +cat <=buildfile; + file{test}: in{test} + { + in.substitutions = _foo@FOO + in.substitutions += bar@BAR + bar = wrong + } + EOI +$* <<>EOO; + foo = FOO + bar = BAR + EOO +$* clean <<=test.in; @@ -33,7 +56,9 @@ cat <=test.in; EOI $* <>EOO $10 -- cgit v1.1