scc

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

commit ea47e52aeaaba2344c48d98e87691f083dd69186
parent 98db42fa6b98511c3705583498a831fedda06d9e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 19 Jan 2024 13:15:38 +0100

tests/make: Add 0051-rule test

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

diff --git a/tests/make/execute/0051-rule.sh b/tests/make/execute/0051-rule.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo Hello World! > $tmp2 + +(set -e + scc-make -f- <<'EOF' +.POSIX: + +all: + @echo Hello World!;\ + false;\ + echo bye +EOF +echo fail) > $tmp1 2> /dev/null + +diff $tmp1 $tmp2