tests/make: Add 0084-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 d0fb80726024f3921651e219456375bbdef5cfab
 (DIR) parent e6541b99b90986a746c9e8a2bacc08af39fc13bb
 (HTM) Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
       Date:   Sun, 21 Jan 2024 00:10:14 +0100
       
       tests/make: Add 0084-rule test
       
       Diffstat:
         A tests/make/execute/0084-rule.sh     |      19 +++++++++++++++++++
       
       1 file changed, 19 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/tests/make/execute/0084-rule.sh b/tests/make/execute/0084-rule.sh
       @@ -0,0 +1,19 @@
       +#!/bin/sh
       +
       +trap 'rm -f $tmp1 $tmp2 f f1 f2 f3' EXIT INT TERM QUIT HUP
       +
       +tmp1=tmp1.$$
       +tmp2=tmp2.$$
       +
       +echo f3 > $tmp2
       +
       +touch -t 200711121015 f1 f2
       +touch -t 200711121016 f 
       +touch -t 200711121017 f3 
       +
       +scc-make -f- <<'EOF' > $tmp1 2>&1
       +f: f1 f2 f3
       +        @echo $?
       +EOF
       +
       +diff $tmp1 $tmp2