commit 3782dbc2a5a821c157fe707a6ca33306d8be4b34 parent f3e886acde2dffc291eea88e0d0b94266a7b0299 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Thu, 18 Jan 2024 11:40:05 +0100 tests/make: Add 0024-sflag test Diffstat:
A | tests/make/execute/0024-sflag.sh | | | 15 | +++++++++++++++ |
M | tests/make/execute/test.mk | | | 3 | +++ |
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/tests/make/execute/0024-sflag.sh b/tests/make/execute/0024-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 + +scc-make -sf test.mk print-makeflags echo-hello > $tmp1 2>&1 + +diff $tmp1 $tmp2 diff --git a/tests/make/execute/test.mk b/tests/make/execute/test.mk @@ -6,6 +6,9 @@ follow: error hello hello: @echo Hello World! +echo-hello: + echo Hello World! + error: no-valid-program