commit 394c0bab075bbaf9cadf42294d84925112b7ddc6 parent eb68bbe29a886cb65e6cb9c53526c7424ca5590b Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Thu, 18 Jan 2024 13:54:04 +0100 tests/make: Add 0035-macro test Diffstat:
A | tests/make/execute/0035-macro.sh | | | 12 | ++++++++++++ |
M | tests/make/execute/test.mk | | | 3 | +++ |
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/tests/make/execute/0035-macro.sh b/tests/make/execute/0035-macro.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo > $tmp2 + +MAKEFLAGS='-S CC=pcc' scc-make -f test.mk print-env-cc > $tmp1 2>&1 + +diff $tmp1 $tmp2 diff --git a/tests/make/execute/test.mk b/tests/make/execute/test.mk @@ -22,6 +22,9 @@ ignored-error: print-cc: @echo $(CC) +print-env-cc: + @echo $$CC + print-makeflags: @echo $(MAKEFLAGS)