From 155eceadcf4e89e03c701c5c36dfd80358a24f28 Mon Sep 17 00:00:00 2001 From: Philip Zembrod Date: Sat, 19 Mar 2022 22:37:33 +0100 Subject: [PATCH] Set up block tests --- 8086/msdos/Makefile | 8 ++++++++ 8086/msdos/tests/empty.fb | 1 + 8086/msdos/tests/test-blk.fth | 18 +++++++++--------- 3 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 8086/msdos/tests/empty.fb diff --git a/8086/msdos/Makefile b/8086/msdos/Makefile index 3d447a0..c0a7b58 100644 --- a/8086/msdos/Makefile +++ b/8086/msdos/Makefile @@ -84,6 +84,14 @@ test-std.log: \ "include logprep.fth include test-std.fth") dos2unix -n dosfiles/OUTPUT.LOG $@ +test-blk.log: \ + $(patsubst %, dosfiles/%, v4th.com $(prepsrcs)) \ + $(patsubst tests/%, dosfiles/%, $(wildcard tests/*.*)) + rm -f dosfiles/OUTPUT.LOG + (cd dosfiles && ../emulator/run-in-dosbox.sh v4th.com \ + "include logprep.fth include test-blk.fth") + dos2unix -n dosfiles/OUTPUT.LOG $@ + incltest-volks4th.log: v4thfile.com tests/log2file.fb tests/incltest.fth rm -f OUTPUT.LOG diff --git a/8086/msdos/tests/empty.fb b/8086/msdos/tests/empty.fb new file mode 100644 index 0000000..f5b7445 --- /dev/null +++ b/8086/msdos/tests/empty.fb @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/8086/msdos/tests/test-blk.fth b/8086/msdos/tests/test-blk.fth index ed2799d..3f8ac53 100644 --- a/8086/msdos/tests/test-blk.fth +++ b/8086/msdos/tests/test-blk.fth @@ -1,25 +1,25 @@ include log2file.fth -logopen test.log +logopen output.log include ans-shim.fth : \vf [compile] \ ; immediate -include prelimtest.fth +include prelim.fth include tester.fth \ 1 verbose ! include core.fr -include coreplustest.fth +include coreplus.fth -include utilities.fth -include errorreport.fth +include util.fth +include errorrep.fth -include coreexttest.fth -include doubletest.fth -1 drive include blocktest.fth +include coreext.fth +include doubltst.fth +use empty.fb +include block.fth REPORT-ERRORS logclose -dos s0:notdone