scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 700f0ef419acd8df91eb4a8cb7fd73a40e93b2d6
parent aad7b6881f9e5330d11a6e1fcdbf388506d617e9
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 19 Jan 2024 13:39:33 +0100

tests/make: Add 0058-default test

Diffstat:
Atests/make/execute/0058-default.sh | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/tests/make/execute/0058-default.sh b/tests/make/execute/0058-default.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo Hello World! > $tmp2 + +scc-make -f- no-target <<EOF > $tmp1 2>&1 +.DEFAULT: + @echo Hello World! +EOF + +diff $tmp1 $tmp2