scc

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

commit 61d2c4a237f7382611c30f613ec9862150c28abf
parent 90cc009d1d473175d358045e53deddbe8be1ad9f
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 19 Jan 2024 12:48:51 +0100

tests/make: Add 0049-rule test

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

diff --git a/tests/make/execute/0049-rule.sh b/tests/make/execute/0049-rule.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +cat >$tmp2 <<EOF +Hello World! +Bye World! +EOF + +scc-make -f- <<EOF > $tmp1 2>&1 +hello: + @echo Hello World!;\ +echo Bye World! +EOF + +diff $tmp1 $tmp2