commit 22fcd3f1b1079aa8bc8a2c22e6f2be731428e83c parent 0325336505de073f10979b102a4c839416c4b049 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Thu, 18 Jan 2024 11:43:58 +0100 tests/make: Add 0026-silent test Diffstat:
A | tests/make/execute/0026-silent.sh | | | 14 | ++++++++++++++ |
M | tests/make/execute/test.mk | | | 4 | ++++ |
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/tests/make/execute/0026-silent.sh b/tests/make/execute/0026-silent.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +cat > $tmp2 <<EOF +Hello World! +EOF + +scc-make -f test.mk silent-echo-hello >$tmp1 2>&1 + +diff $tmp1 $tmp2 diff --git a/tests/make/execute/test.mk b/tests/make/execute/test.mk @@ -1,11 +1,15 @@ .IGNORE: ignored-error +.SILENT: silent-echo-hello follow: error hello hello: @echo Hello World! +silent-echo-hello: + echo Hello World! + echo-hello: echo Hello World!