commit 160edb9d551eb16f47c04ba87b0e0a30abc2cfeb parent aa53f2a92c4ff4e2dab1c7af4f35c8745c78873b Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Tue, 12 Nov 2024 22:30:49 +0100 tests/as: Use new scc wrapper in the tests This make easier to use scc-as from other directories. Diffstat:
M | tests/as/execute/Makefile | | | 3 | ++- |
M | tests/as/execute/test.sh | | | 4 | ++-- |
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/as/execute/Makefile b/tests/as/execute/Makefile @@ -1,9 +1,10 @@ .POSIX: ROOT=../../../ +BINDIR=$(ROOT)/bin all: - @PATH=$(ROOT)/libexec/scc/:$(ROOT)/bin:$$PATH ./chktest.sh + @BINDIR=$(BINDIR) ./chktest.sh tests: @$(MAKE) |\ diff --git a/tests/as/execute/test.sh b/tests/as/execute/test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -e -cpu=${1?} +cpu=${1?'missed cpu argument'} exec >>test.log exec 2>&1 @@ -11,7 +11,7 @@ file=$cpu.s trap "rm -f a.out $tmp1 $tmp2" 0 2 3 -as-$cpu $file +$(BINDIR)scc-as -m $cpu $file sed -n '/^\#/ ! { /\#/ ! d