scc

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

commit 90cc009d1d473175d358045e53deddbe8be1ad9f
parent 8e8f9d38ce98752aaf61378ff7dcd8baddf5da41
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 19 Jan 2024 12:40:56 +0100

tests/make: Add 0048-include test

Diffstat:
Atests/make/execute/0048-include.sh | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/tests/make/execute/0048-include.sh b/tests/make/execute/0048-include.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo Hello World! > $tmp2 + +scc-make -f- hello <<'EOF' > $tmp1 2>&1 +FILE = test.mk + +include $(FILE) +EOF + +diff $tmp1 $tmp2