scc

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

commit 47ef2cb414d5489deb043fc384e3c5bfa5718666
parent 2b3526f500867870af206358eb014b3294032e4d
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 18 Jan 2024 11:32:12 +0100

tests/make: Add 0022-Sflag test

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

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