scc

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

commit 8edc8451db4d5641d7a80fbce3391ab80b50273c
parent bd67025b608f18ef79bcaf18544a17fc4adfda5e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 18 Jan 2024 13:38:57 +0100

tests/make: Add 0030-tflag test

Diffstat:
Atests/make/execute/0030-tflag.sh | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/tests/make/execute/0030-tflag.sh b/tests/make/execute/0030-tflag.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2 file.o file.c' EXIT INT TERM QUIT HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +touch file.c + +cat > $tmp2 <<EOF +touch file.c +touch file.o +EOF + +scc-make -tf test.mk file.o > $tmp1 2>&1 + +diff $tmp1 $tmp2 && test -f file.c -a -f file.o