mirror of
https://github.com/open-simh/simtools.git
synced 2026-01-13 15:27:18 +00:00
.BLKB and .BLKW should have an argument, but if missing it is 1. .ODD and .EVEN are not allowed to have an argument.
42 lines
781 B
Bash
Executable File
42 lines
781 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Run some regression test cases.
|
|
#
|
|
# If there is a .lst.ok file, it compares the listing.
|
|
# If there is a .objd.ok file, it compares the result of dumpobj.
|
|
#
|
|
|
|
TESTS="test-asciz \
|
|
test-backpatch \
|
|
test-blkb \
|
|
test-bsl-mac-arg \
|
|
test-complex-reloc \
|
|
test-endm \
|
|
test-impword \
|
|
test-include \
|
|
test-jmp \
|
|
test-listing \
|
|
test-locals \
|
|
test-macro-comma \
|
|
test-prec \
|
|
test-psect \
|
|
test-rad50 \
|
|
test-undef \
|
|
test-word-comma"
|
|
|
|
for t in $TESTS
|
|
do
|
|
../macro11 -l "$t".lst -o "$t".obj "$t".mac 2>/dev/null
|
|
|
|
if [ -e "$t".lst.ok ]
|
|
then
|
|
diff -u "$t".lst.ok "$t".lst
|
|
fi
|
|
|
|
if [ -e "$t".objd.ok ]
|
|
then
|
|
../dumpobj "$t".obj >"$t".objd
|
|
diff -u "$t".objd.ok "$t".objd
|
|
fi
|
|
done
|