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