Add golden result verification for inctest

This commit is contained in:
Philip Zembrod 2023-07-02 11:47:08 +02:00
parent 5761bf7c9e
commit c188248df4
2 changed files with 13 additions and 1 deletions

View File

@ -32,15 +32,22 @@ tests/%.fth: tests/%.fb ../../tools/fb2fth.py
inctest.log: \
$(patsubst %, $(cpmfilesdir)/%, volks4th.com) \
$(patsubst src/%, $(cpmfilesdir)/%, src/include.fb) \
$(patsubst tests/%, $(cpmfilesdir)/%, tests/log2file.fb) \
$(patsubst tests/%, $(cpmfilesdir)/%, tests/inctest.fth) \
| emu
./emulator/run-in-runcpm.sh \
"volks4th" \
"include include.fb" \
"include log2file.fb" \
"logopen" \
"include inctest.fth" \
"logclose" \
"bye" \
"exit"
cp $(runcpmdir)/output.log $@
cp $(runcpmdir)/output.log output.log
../../tools/trunc-ctrl-z.py $(runcpmdir)/A/0/LOGFILE.TXT \
$(runcpmdir)/logfile.txt
dos2unix -n $(runcpmdir)/logfile.txt $@
logtest.log: \
$(patsubst %, $(cpmfilesdir)/%, volks4th.com) \

View File

@ -0,0 +1,5 @@
ok
include inctest.fth
INCTEST.FTH included from stream file: "1 2 + 4 * .": 12
ok
logclose