commit 85cf54d2654505031ba905f21e46f4fd8a258d29 parent aaa9094f0b94bf9f62f7c7c3fa860137830356fa Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Thu, 18 Jan 2024 14:05:16 +0100 tests/make: Add 0037-macro.sh test Diffstat:
A | tests/make/execute/0037-macro.sh | | | 12 | ++++++++++++ |
M | tests/make/execute/test.mk | | | 3 | +++ |
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/tests/make/execute/0037-macro.sh b/tests/make/execute/0037-macro.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo ../../../bin/scc-make > $tmp2 + +../../../bin/scc-make -f test.mk print-make > $tmp1 2>&1 + +diff $tmp1 $tmp2 diff --git a/tests/make/execute/test.mk b/tests/make/execute/test.mk @@ -19,6 +19,9 @@ error: ignored-error: no-valid-program +print-make: + @echo $(MAKE) + print-cc: @echo $(CC)