tests/make: Add 0082-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 0611dbfed3db8f3829c2e45e3c747a898cf4de63
 (DIR) parent a4bb92d0a14f388346191cded3f8b01566d653a8
 (HTM) Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
       Date:   Sun, 21 Jan 2024 00:08:57 +0100
       
       tests/make: Add 0082-rule test
       
       Diffstat:
         A tests/make/execute/0082-rule.sh     |      24 ++++++++++++++++++++++++
       
       1 file changed, 24 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/tests/make/execute/0082-rule.sh b/tests/make/execute/0082-rule.sh
       @@ -0,0 +1,24 @@
       +#!/bin/sh
       +
       +trap 'rm -f $tmp1 $tmp2 f.c f.o f' EXIT INT QUIT TERM HUP
       +
       +tmp1=tmp1.$$
       +tmp2=tmp2.$$
       +
       +echo hello > f.c
       +
       +cat > $tmp2 <<EOF
       +make: error: don't know how to make f
       +EOF
       +
       +scc-make -sf- <<'EOF' > $tmp1 2>&1
       +
       +.SUFFIXES:
       +
       +.c:
       +        echo hello > $@
       +
       +all: f
       +EOF
       +
       +diff $tmp1 $tmp2