add retro-compiler test to automated testing builds

FossilOrigin-Name: c5fbfd6ffa76c67cef92c896bbe37b7f52082dda8dc083e74a5ededa04bb54d5
This commit is contained in:
crc 2021-05-18 13:01:44 +00:00
parent c45816157f
commit 7b0d5cf069
2 changed files with 10 additions and 2 deletions

View file

@ -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

View file

@ -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)