mirror of
https://github.com/forth-ev/VolksForth.git
synced 2024-11-22 05:32:28 +00:00
Add golden result verification for inctest
This commit is contained in:
parent
5761bf7c9e
commit
c188248df4
@ -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) \
|
||||
|
5
8080/CPM/tests/golden/inctest.golden
Normal file
5
8080/CPM/tests/golden/inctest.golden
Normal file
@ -0,0 +1,5 @@
|
||||
ok
|
||||
include inctest.fth
|
||||
INCTEST.FTH included from stream file: "1 2 + 4 * .": 12
|
||||
ok
|
||||
logclose
|
Loading…
Reference in New Issue
Block a user