013a3b74c8
Will be much much easier to tests new core routines without having to re-create their context first. Also, extract parse.asm from core.asm
19 lines
313 B
Bash
Executable File
19 lines
313 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
SCAS=scas
|
|
PARTS=../../../parts/z80
|
|
RUNBIN=../../emul/runbin/runbin
|
|
|
|
for fn in *.asm; do
|
|
echo "Running test ${fn}"
|
|
if ! ${SCAS} -I ${PARTS} -o - ${fn} | ${RUNBIN}; then
|
|
echo "failed with code ${PIPESTATUS[1]}"
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
echo "All tests passed!"
|