scc

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

commit c976ebaa3bd1bfe38ed7c7871b1d37e94a856345
parent 64c3c3e286e916ac2dc2d16812b21165b012f9f0
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 12 Nov 2024 22:30:49 +0100

tests/size: Use new scc wrapper in the tests

This make easier to use scc-size from other directories.

Diffstat:
Mtests/size/execute/0001-z80.sh | 2+-
Mtests/size/execute/0002-z80-t.sh | 2+-
Mtests/size/execute/Makefile | 6+++---
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/size/execute/0001-z80.sh b/tests/size/execute/0001-z80.sh @@ -6,7 +6,7 @@ trap 'rm -f $tmp1 $tmp2' EXIT HUP INT QUIT TERM tmp1=`mktemp` tmp2=`mktemp` -scc-size z80.out >$tmp1 +scc size z80.out >$tmp1 cat > $tmp2 <<EOF text data bss dec hex filename diff --git a/tests/size/execute/0002-z80-t.sh b/tests/size/execute/0002-z80-t.sh @@ -6,7 +6,7 @@ trap 'rm -f $tmp1 $tmp2' EXIT HUP INT QUIT TERM tmp1=`mktemp` tmp2=`mktemp` -scc-size -t z80.out z80.out>$tmp1 +scc size -t z80.out z80.out>$tmp1 cat > $tmp2 <<EOF text data bss dec hex filename diff --git a/tests/size/execute/Makefile b/tests/size/execute/Makefile @@ -1,12 +1,12 @@ .POSIX: -ROOT=../../.. +BINDIR = ../../../bin/ AS = z80-unknown-coff-as OUT = z80.out all: $(OUT) - @PATH=$(ROOT)/bin:$$PATH:. chktest.sh + PATH=$(BINDIR):$$PATH ./chktest.sh tests: @if command -v $(AS) >/dev/null;\ @@ -21,7 +21,7 @@ tests: printf '\tsize/execute\n' z80.out: master.s - z80-unknown-coff-as -o $@ master.s + $(AS) -o $@ master.s clean: rm -f *.a *.out test.log