scc

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

commit 4274f31af2f875122d6cba33338633bb81b62ed3
parent 615f2e2509a94bd67cf4992cb9418a39a637b96f
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 19 Jan 2024 11:34:17 +0100

tests/make: Add 0046-makefile test

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

diff --git a/tests/make/execute/0046-makefile.sh b/tests/make/execute/0046-makefile.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo Bye world! > $tmp2 + +scc-make -f test.mk -f - hello <<EOF > $tmp1 2>&1 +hello: + @echo Bye world! +EOF + +diff $tmp1 $tmp2