scc

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

commit 158be47131784180dcf84ee34dfc22865e94796b
parent beee845f2a6137122af399900b10ca514371b454
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 19 Jan 2024 18:18:50 +0100

tests/make: Add 0059-macro test

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

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