2019-05-17 09:33:20 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -o pipefail
|
|
|
|
|
2019-05-20 07:50:23 -04:00
|
|
|
ZASM=../../emul/zasm/zasm
|
2019-05-17 09:33:20 -04:00
|
|
|
RUNBIN=../../emul/runbin/runbin
|
|
|
|
|
|
|
|
for fn in *.asm; do
|
|
|
|
echo "Running test ${fn}"
|
2019-05-20 07:50:23 -04:00
|
|
|
if ! ${ZASM} < ${fn} | ${RUNBIN}; then
|
2019-05-17 09:33:20 -04:00
|
|
|
echo "failed with code ${PIPESTATUS[1]}"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "All tests passed!"
|