commit b347bfce72d92adf46a6b668ecfc49e45fd3fd7d parent d30bca4027e65467bea90ef5a78a21e8c27ac34e Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Thu, 18 Jan 2024 13:37:59 +0100 tests/make: Add 0028-tflag test Diffstat:
A | tests/make/execute/0028-tflag.sh | | | 14 | ++++++++++++++ |
M | tests/make/execute/test.mk | | | 3 | +++ |
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/tests/make/execute/0028-tflag.sh b/tests/make/execute/0028-tflag.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2 file1' EXIT INT TERM QUIT HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +cat > $tmp2 <<EOF +touch file1 +EOF + +scc-make -tf test.mk file1 > $tmp1 2>&1 + +diff $tmp1 $tmp2 && test -f file1 diff --git a/tests/make/execute/test.mk b/tests/make/execute/test.mk @@ -31,6 +31,9 @@ print-makeflags-always: print-hidden-hello: +@echo Hello World! +file1: + echo > file1 + file.o: test.mk: