more automatic testing

git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@338 4df02467-bbd4-4a76-a152-e7ce94205b78
This commit is contained in:
marcobaye 2024-02-16 10:15:12 +00:00
parent 5e365a8723
commit 6c3ec454d3
5 changed files with 23 additions and 2 deletions

View File

@ -1,9 +1,14 @@
.SILENT: .SILENT:
.PHONY: cpus errors warnings .PHONY: auto bugfixes cpus errors warnings
all: bugfixes cpus errors warnings all: auto bugfixes cpus errors warnings
auto:
echo "Performing self-tests..."
echo
make -C auto
bugfixes: bugfixes:
echo "Testing bugfixes..." echo "Testing bugfixes..."

15
testing/auto/Makefile Normal file
View File

@ -0,0 +1,15 @@
ACMEFLAGS = -v0
FILES := $(wildcard *.a)
TESTS = $(subst .a,.test,$(FILES))
.SILENT:
%.test: %.a
echo "Test:" $<
acme $(ACMEFLAGS) $<
echo "Ok."
all: $(TESTS)
echo
echo "Self-tests: PASSED"
echo

View File

@ -2,4 +2,5 @@
; the "skip code" function did not honor quotes, so stuff after ':' was ; the "skip code" function did not honor quotes, so stuff after ':' was
; executed. ; executed.
!ifdef UNDEFINED !tx " dummy : older versions tried to parse this!" !ifdef UNDEFINED !tx " dummy : older versions tried to parse this!"
!ifdef UNDEFINED !tx ' dummy : older versions tried to parse this!'
; fixing this supersedes two older fixes for "!to" and "!sl". ; fixing this supersedes two older fixes for "!to" and "!sl".