mirror of
https://github.com/open-simh/simtools.git
synced 2026-04-26 03:57:07 +00:00
Add 'crossassemblers/macro11/' from commit '2a14ffe2519589011ffc4050d5d4fd6591fb4c3c'
git-subtree-dir: crossassemblers/macro11 git-subtree-mainline:fc2c8875cagit-subtree-split:2a14ffe251command was: git subtree add --prefix=crossassemblers/macro11 git://github.com/Rhialto/macro11.git master
This commit is contained in:
39
crossassemblers/macro11/tests/RunTests
Executable file
39
crossassemblers/macro11/tests/RunTests
Executable file
@@ -0,0 +1,39 @@
|
||||
#!/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-bsl-mac-arg \
|
||||
test-complex-reloc \
|
||||
test-endm \
|
||||
test-impword \
|
||||
test-include \
|
||||
test-jmp \
|
||||
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
|
||||
Reference in New Issue
Block a user