commit 7bbc5bd716eb3099105659ce33cfc02448e723d2 parent f37faf6eeaf000fb678c27317798429ee65353df Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Thu, 18 Jan 2024 21:00:46 +0100 tests/make: Add 0044-macro test Diffstat:
A | tests/make/execute/0044-macro.sh | | | 22 | ++++++++++++++++++++++ |
1 file changed, 22 insertions(+), 0 deletions(-)
diff --git a/tests/make/execute/0044-macro.sh b/tests/make/execute/0044-macro.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT TERM QUIT HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo Hello World! > $tmp2 + +scc-make -f - <<'EOF' > $tmp1 2>&1 +# Generic rules +.SUFFIXES: +.SUFFIXES: .c .map .dump .elf .bin\ + .i .a .o .s .S .ko .ld .tmpl\ + .pdf .ps .eps .puml\ + .ms .1 .2 .3 .4 .5 .6 .7\ + +all: + @echo Hello World! +EOF + +diff $tmp1 $tmp2