mirror of
https://github.com/forth-ev/VolksForth.git
synced 2025-02-16 21:30:59 +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: \
|
inctest.log: \
|
||||||
$(patsubst %, $(cpmfilesdir)/%, volks4th.com) \
|
$(patsubst %, $(cpmfilesdir)/%, volks4th.com) \
|
||||||
$(patsubst src/%, $(cpmfilesdir)/%, src/include.fb) \
|
$(patsubst src/%, $(cpmfilesdir)/%, src/include.fb) \
|
||||||
|
$(patsubst tests/%, $(cpmfilesdir)/%, tests/log2file.fb) \
|
||||||
$(patsubst tests/%, $(cpmfilesdir)/%, tests/inctest.fth) \
|
$(patsubst tests/%, $(cpmfilesdir)/%, tests/inctest.fth) \
|
||||||
| emu
|
| emu
|
||||||
./emulator/run-in-runcpm.sh \
|
./emulator/run-in-runcpm.sh \
|
||||||
"volks4th" \
|
"volks4th" \
|
||||||
"include include.fb" \
|
"include include.fb" \
|
||||||
|
"include log2file.fb" \
|
||||||
|
"logopen" \
|
||||||
"include inctest.fth" \
|
"include inctest.fth" \
|
||||||
|
"logclose" \
|
||||||
"bye" \
|
"bye" \
|
||||||
"exit"
|
"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: \
|
logtest.log: \
|
||||||
$(patsubst %, $(cpmfilesdir)/%, volks4th.com) \
|
$(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…
x
Reference in New Issue
Block a user