scc

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

commit 68f804cc91244bbde095066f12350f479a2b8676
parent 8522e25a5878046fa67777cdb7ad65325a5d1d1b
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 17 Jan 2024 19:15:08 +0100

tests/make: Add 0014-nflag test

Diffstat:
Atests/make/execute/0014-nflag.sh | 15+++++++++++++++
Mtests/make/execute/test.mk | 3+++
2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/tests/make/execute/0014-nflag.sh b/tests/make/execute/0014-nflag.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT QUIT INT HUP TERM + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +cat <<EOF > $tmp2 +echo Hello World! +Hello World! +EOF + +scc-make -nf test.mk print-hidden-hello > $tmp1 2>&1 + +diff $tmp1 $tmp2 diff --git a/tests/make/execute/test.mk b/tests/make/execute/test.mk @@ -17,3 +17,6 @@ print-cc: print-makeflags: @echo $(MAKEFLAGS) + +print-hidden-hello: + +@echo Hello World!