scc

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

commit b161f67e72e5a9c1ac36a2197b27291dadedccb1
parent 84fddb03951b21ddf26359868261f9e3333802a2
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 20 Jan 2024 23:12:04 +0100

tests/make: Add 0079-macro test

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

diff --git a/tests/make/execute/0079-macro.sh b/tests/make/execute/0079-macro.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo SHELL=/bin/sh > $tmp2 +SHELL=foo scc-make -f- <<'EOF' +SHELL = /bin/sh + +all: + @echo $$SHELL +EOF