scc

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

commit 7a5a58bec720c990d2d960a9c9a16ecb7e44447b
parent 15eec4b240540a2f71f776e40435721e0a840708
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 18 Jan 2024 14:22:55 +0100

tests/make: Add 0040-makefile test

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

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