scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 706a8652c01e980c1e2be2673306c6341fcceb60
parent 93f3285b49ac69eda411ebf2e19e81f59fc53d00
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 19 Jan 2024 13:21:52 +0100

tests/make: Add 0054-rule test

Diffstat:
Atests/make/execute/0054-rule.sh | 27+++++++++++++++++++++++++++
1 file changed, 27 insertions(+), 0 deletions(-)

diff --git a/tests/make/execute/0054-rule.sh b/tests/make/execute/0054-rule.sh @@ -0,0 +1,27 @@ +#!/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 -f- <<'EOF' +.POSIX: + +.IGNORE: + +all: + @echo Hello World!;\ + false;\ + echo bye +EOF +echo fail) > $tmp1 2> /dev/null + +diff $tmp1 $tmp2