scc

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

commit 0325336505de073f10979b102a4c839416c4b049
parent 3782dbc2a5a821c157fe707a6ca33306d8be4b34
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 18 Jan 2024 11:40:21 +0100

tests/make: Add 0025-sflag test

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

diff --git a/tests/make/execute/0025-sflag.sh b/tests/make/execute/0025-sflag.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +cat >$tmp2 <<EOF +-s +Hello World! +EOF + +MAKEFLAGS=-s scc-make -f test.mk print-makeflags echo-hello > $tmp1 2>&1 + +diff $tmp1 $tmp2