commit aa53f2a92c4ff4e2dab1c7af4f35c8745c78873b parent 9a7ef2546be69f5b6d054eb0811df839749f618d Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Tue, 12 Nov 2024 22:30:49 +0100 tests/strip: Use new scc wrapper in the tests This make easier to use scc-strip from other directories. Diffstat:
M | tests/strip/execute/0001-z80.sh | | | 6 | +++--- |
M | tests/strip/execute/Makefile | | | 4 | ++-- |
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/strip/execute/0001-z80.sh b/tests/strip/execute/0001-z80.sh @@ -8,11 +8,11 @@ tmp2=tmpfile2 tmp3=tmpfile3 cp z80.out $tmp1 -scc-strip $tmp1 > $tmp2 -z80-unknown-coff-nm $tmp1 >> $tmp2 2>&1 || true +scc strip $tmp1 > $tmp2 +scc nm $tmp1 >> $tmp2 2>&1 || true cat > $tmp3 <<EOF -z80-unknown-coff-nm: $tmp1: no symbols +nm: $tmp1: no symbols EOF diff $tmp2 $tmp3 diff --git a/tests/strip/execute/Makefile b/tests/strip/execute/Makefile @@ -1,12 +1,12 @@ .POSIX: -ROOT=../../.. +BINDIR = ../../../bin/ OUT = z80.out AS = z80-unknown-coff-as all: $(OUT) - @PATH=$(ROOT)/bin:$$PATH:. chktest.sh + @PATH=$(BINDIR):$$PATH ./chktest.sh tests: @if command -v $(AS) >/dev/null;\