scc

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

commit f3e886acde2dffc291eea88e0d0b94266a7b0299
parent 47ef2cb414d5489deb043fc384e3c5bfa5718666
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 18 Jan 2024 11:33:10 +0100

tests/make: Add 0023-Sflag test

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

diff --git a/tests/make/execute/0023-Sflag.sh b/tests/make/execute/0023-Sflag.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +cat > $tmp2 <<EOF +-S -k +no-valid-program +sh: 1: no-valid-program: not found +make: warning: target error: error 32512 +Hello World! +make: warning: target follow not remade because of errors +EOF + +MAKEFLAGS=-S scc-make -kf test.mk print-makeflags follow >$tmp1 2>&1 + +diff $tmp1 $tmp2