From cb8103d112837038cb9d41bf2e313373515a36f5 Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Sun, 16 May 2021 14:04:43 +0200 Subject: [PATCH] Run tests in both RSX11 and RT11 format. This is possible since our reference files are output from dumpobj, and that does not depend on the format. --- tests/RunTests | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/tests/RunTests b/tests/RunTests index fe34880..0ef50e4 100755 --- a/tests/RunTests +++ b/tests/RunTests @@ -38,9 +38,10 @@ TESTS="test-asciz \ status=0 assemble() { - t="$1" + fmt="$1" + t="$2" - ../macro11 -l "$t".lst -o "$t".obj "$t".mac 2>/dev/null + ../macro11 $fmt -l "$t".lst -o "$t".obj "$t".mac 2>/dev/null # Ignore error status and messages from the assembler. # We check the listing file to see what we expect. @@ -53,15 +54,23 @@ assemble() { if [ -e "$t".objd.ok ] then - ../dumpobj "$t".obj >"$t".objd + ../dumpobj $fmt "$t".obj >"$t".objd diff -u "$t".objd.ok "$t".objd status=$((status + $?)) fi } +assemble_both() { + t=$1 + + assemble -rsx "$t" + assemble -rt11 "$t" +} + + for t in $TESTS do - assemble "$t" + assemble_both "$t" done for t in 2.11BSD/m11/*.m11 @@ -78,7 +87,7 @@ debug = 1 .include "${t}" EOF - assemble "$fn" + assemble_both "$fn" done exit $status