commit 74e34db36ae8cabd3e102449f22be0b1ae702b14 parent 5aaed79b4831707fb38c38a89c7d3a6f39364658 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Thu, 18 Jan 2024 09:20:12 +0100 tests/make: Add 0016-qflag test Diffstat:
A | tests/make/execute/0016-qflag.sh | | | 16 | ++++++++++++++++ |
M | tests/make/execute/test.mk | | | 3 | +++ |
2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/tests/make/execute/0016-qflag.sh b/tests/make/execute/0016-qflag.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp3.$$ + +cat > $tmp2 <<EOF +pass +EOF + +(set -e + scc-make -qf test.mk test.mk + echo pass) > $tmp1 2>&1 + +diff $tmp1 $tmp2 diff --git a/tests/make/execute/test.mk b/tests/make/execute/test.mk @@ -20,3 +20,6 @@ print-makeflags: print-hidden-hello: +@echo Hello World! + +test.mk: + touch $@