commit 15eec4b240540a2f71f776e40435721e0a840708 parent 9298134400186e0ca22d06c1bd7fb66284491e29 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Thu, 18 Jan 2024 14:19:39 +0100 tests/make: Add 0039-rule test Diffstat:
A | tests/make/execute/0039-rules.sh | | | 15 | +++++++++++++++ |
M | tests/make/execute/test.mk | | | 3 | +++ |
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/tests/make/execute/0039-rules.sh b/tests/make/execute/0039-rules.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2 file?' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +touch $tmp2 + +touch file2 +touch file3 + +scc-make -f test.mk file3 > $tmp1 2>&1 + +diff $tmp1 $tmp2 diff --git a/tests/make/execute/test.mk b/tests/make/execute/test.mk @@ -42,6 +42,9 @@ file1: file2: +file3: file2 + touch $@ + file.o: test.mk: