scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit e2a8112c1693609242597b68ff4bcdd828a1ad24
parent 2bd3cd7f520670c3d50a6cf5059345055536ceb9
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 19 Jan 2024 18:34:52 +0100

tests/make: Add 0061-macro test

Diffstat:
Atests/make/execute/0061-macro.sh | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/tests/make/execute/0061-macro.sh b/tests/make/execute/0061-macro.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo hello-hello > $tmp2 + +scc-make -f- <<'EOF' > $tmp1 2>&1 +VAR = hello +all: + @echo ${VAR}-$(VAR) +EOF + +diff $tmp1 $tmp2