commit 1c6b69955c1fbe9c58d9bbb82419984ecc027614 parent 7bd351d98f3310f4f77be3357fbd35cb65bbe493 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Thu, 9 Jan 2025 18:33:14 +0100 tests/make: Add checker for 0097-rule.sh Diffstat:
M | tests/make/execute/0097-rule.sh | | | 15 | +++++++++++++-- |
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/tests/make/execute/0097-rule.sh b/tests/make/execute/0097-rule.sh @@ -1,8 +1,16 @@ #!/bin/sh -trap "rm -f f1.?" EXIT INT TERM HUP +trap 'rm -f f1.? $tmp1 $tmp2' EXIT INT TERM HUP -scc-make -df- <<'EOF' +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +cat > $tmp1 <<EOF +touch f1.c +touch f1.o +EOF + +scc-make -f- <<'EOF' > $tmp2 2>&1 all: f1.o f1.o: f1.c @@ -10,3 +18,6 @@ f1.o: f1.c f1.c: touch $@ +EOF + +diff $tmp1 $tmp2