commit 37b28e14233a2645ff26f47b8058bf1b1ab11b91 parent f4623582a14fc328f981ba2c31437048fd24c7e3 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Fri, 19 Jan 2024 18:40:43 +0100 tests/make: Add 0064-macro test Diffstat:
A | tests/make/execute/0064-macro.sh | | | 18 | ++++++++++++++++++ |
1 file changed, 18 insertions(+), 0 deletions(-)
diff --git a/tests/make/execute/0064-macro.sh b/tests/make/execute/0064-macro.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT TERM QUIT HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo Hello World!> $tmp2 + +scc-make -f- all <<'EOF' > $tmp1 2>&1 +VAR = guy + +all: + @echo Hello $(VAR)! +VAR = World +EOF + +diff $tmp1 $tmp2