commit 93439757a0fddb65cda02ffe6ff97365cdc68583 parent 706a8652c01e980c1e2be2673306c6341fcceb60 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Fri, 19 Jan 2024 13:22:11 +0100 tests/make: Add 0055-rule test Diffstat:
A | tests/make/execute/0055-rule.sh | | | 25 | +++++++++++++++++++++++++ |
1 file changed, 25 insertions(+), 0 deletions(-)
diff --git a/tests/make/execute/0055-rule.sh b/tests/make/execute/0055-rule.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +cat > $tmp2 <<EOF +Hello World! +bye +fail +EOF + +(set -e + scc-make -if- <<'EOF' +.POSIX: + +all: + @echo Hello World!;\ + false;\ + echo bye +EOF +echo fail) > $tmp1 2> /dev/null + +diff $tmp1 $tmp2