tests/make: Add 0087-rule test - scc - simple c99 compiler (HTM) git clone git://git.simple-cc.org/scc (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules (DIR) README (DIR) LICENSE --- (DIR) commit a523a8d010c6351d0a5688e7cda7702139b085b6 (DIR) parent 1c3d21168c86e5fddc2bf41dd41f6a89e62c93e9 (HTM) Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Sun, 21 Jan 2024 12:05:18 +0100 tests/make: Add 0087-rule test Diffstat: A tests/make/execute/0087-rule.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+), 0 deletions(-) --- (DIR) diff --git a/tests/make/execute/0087-rule.sh b/tests/make/execute/0087-rule.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT TERM QUIT HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo '#error line' >$tmp2 + +scc-make -f- <<'EOF' > $tmp1 2>&1 +all: + @echo '#error line' +EOF + +diff $tmp1 $tmp2