From 7b0d5cf069ee214f053f8ead1ad6318cfc605fc3 Mon Sep 17 00:00:00 2001 From: crc Date: Tue, 18 May 2021 13:01:44 +0000 Subject: [PATCH] add retro-compiler test to automated testing builds FossilOrigin-Name: c5fbfd6ffa76c67cef92c896bbe37b7f52082dda8dc083e74a5ededa04bb54d5 --- .builds/debian-arm.yml | 10 +++++++++- GNUmakefile | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.builds/debian-arm.yml b/.builds/debian-arm.yml index 32a47e7..1a9a557 100644 --- a/.builds/debian-arm.yml +++ b/.builds/debian-arm.yml @@ -6,9 +6,12 @@ tasks: - build: | cd retroforth make -- optional: | +- repl: | cd retroforth make bin/retro-repl +- compiler: | + cd retroforth + make bin/retro-compiler - install: | cd retroforth sudo make install @@ -16,6 +19,11 @@ tasks: cd retroforth retro example/1D-Cellular-Automota.retro retro example/sea-level-rise.retro +- test-compiler: | + cd retroforth + echo "~~~\n:hello 'hello_s:put_nl_;\n~~~" >hello.retro + ./bin/retro-compiler hello.retro hello + ./a.out - check-missing: | cd retroforth retro tools/glossary.retro missing diff --git a/GNUmakefile b/GNUmakefile index bc1bcb1..c0ed553 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -152,7 +152,7 @@ bin/retro: vm/nga-c/image.c vm/nga-c/retro.c package/list.forth package/load-ext # optional targets -bin/retro-compiler: bin/retro-extend vm/nga-c/retro-compiler.c vm/nga-c/retro-runtime.c vm/nga-c/bsd-strl.c vm/nga-c/config.h vm/nga-c/dev-clock.c vm/nga-c/dev-files.c vm/nga-c/dev-floatingpoint.c vm/nga-c/dev-image.c vm/nga-c/dev-rng.c vm/nga-c/dev-sockets.c vm/nga-c/dev-unix.c vm/nga-c/prototypes.h +bin/retro-compiler: bin/retro-extend vm/nga-c/retro-compiler.c vm/nga-c/retro-runtime.c cp ngaImage runtime.image ./bin/retro-extend runtime.image interface/scripting.retro interface/filesystem.retro interface/floatingpoint.retro interface/unix.retro interface/rng.retro interface/retro-unix.retro interface/clock.retro cd vm/nga-c && $(CC) $(OPTIONS) $(CFLAGS) $(LDFLAGS) -o ../../retro-runtime retro-runtime.c $(LIBM)