From 6c3ec454d3732528bab14c17b54aa4892ae7e527 Mon Sep 17 00:00:00 2001 From: marcobaye Date: Fri, 16 Feb 2024 10:15:12 +0000 Subject: [PATCH] more automatic testing git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@338 4df02467-bbd4-4a76-a152-e7ce94205b78 --- testing/Makefile | 9 +++++++-- testing/auto/Makefile | 15 +++++++++++++++ testing/{math1.a => auto/math.a} | 0 testing/{ => auto}/numberflags.a | 0 testing/bugfixes/executed-quotes.a | 1 + 5 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 testing/auto/Makefile rename testing/{math1.a => auto/math.a} (100%) rename testing/{ => auto}/numberflags.a (100%) diff --git a/testing/Makefile b/testing/Makefile index 4653004..6eff973 100644 --- a/testing/Makefile +++ b/testing/Makefile @@ -1,9 +1,14 @@ .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: echo "Testing bugfixes..." diff --git a/testing/auto/Makefile b/testing/auto/Makefile new file mode 100644 index 0000000..0418560 --- /dev/null +++ b/testing/auto/Makefile @@ -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 diff --git a/testing/math1.a b/testing/auto/math.a similarity index 100% rename from testing/math1.a rename to testing/auto/math.a diff --git a/testing/numberflags.a b/testing/auto/numberflags.a similarity index 100% rename from testing/numberflags.a rename to testing/auto/numberflags.a diff --git a/testing/bugfixes/executed-quotes.a b/testing/bugfixes/executed-quotes.a index 48bd51e..e7568d7 100644 --- a/testing/bugfixes/executed-quotes.a +++ b/testing/bugfixes/executed-quotes.a @@ -2,4 +2,5 @@ ; the "skip code" function did not honor quotes, so stuff after ':' was ; executed. !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".