From c188248df4ab4b06423135788e7e469b23964d24 Mon Sep 17 00:00:00 2001 From: Philip Zembrod Date: Sun, 2 Jul 2023 11:47:08 +0200 Subject: [PATCH] Add golden result verification for inctest --- 8080/CPM/Makefile | 9 ++++++++- 8080/CPM/tests/golden/inctest.golden | 5 +++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 8080/CPM/tests/golden/inctest.golden diff --git a/8080/CPM/Makefile b/8080/CPM/Makefile index bcdf131..ede32b4 100644 --- a/8080/CPM/Makefile +++ b/8080/CPM/Makefile @@ -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) \ diff --git a/8080/CPM/tests/golden/inctest.golden b/8080/CPM/tests/golden/inctest.golden new file mode 100644 index 0000000..a66156a --- /dev/null +++ b/8080/CPM/tests/golden/inctest.golden @@ -0,0 +1,5 @@ + ok +include inctest.fth +INCTEST.FTH included from stream file: "1 2 + 4 * .": 12 + ok +logclose