commit bd67025b608f18ef79bcaf18544a17fc4adfda5e parent b347bfce72d92adf46a6b668ecfc49e45fd3fd7d Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Thu, 18 Jan 2024 13:38:30 +0100 tests/make: Add 0029-tflag test Diffstat:
A | tests/make/execute/0029-tflag.sh | | | 13 | +++++++++++++ |
M | tests/make/execute/test.mk | | | 2 | ++ |
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/tests/make/execute/0029-tflag.sh b/tests/make/execute/0029-tflag.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2 file2' EXIT INT TERM QUIT HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +cat > $tmp2 <<EOF +EOF + +scc-make -tf test.mk file2 > $tmp1 2>&1 + +diff $tmp1 $tmp2 && ! test -f file2 diff --git a/tests/make/execute/test.mk b/tests/make/execute/test.mk @@ -34,6 +34,8 @@ print-hidden-hello: file1: echo > file1 +file2: + file.o: test.mk: