mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 10:18:05 +11:00
20 lines
354 B
Bash
Executable File
20 lines
354 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
SCAS=scas
|
|
PARTS=../../../parts/z80
|
|
ZASMDIR=../../../apps/zasm
|
|
RUNBIN=../../emul/runbin/runbin
|
|
|
|
for fn in *.asm; do
|
|
echo "Running test ${fn}"
|
|
if ! ${SCAS} -I ${PARTS} -I ${ZASMDIR} -o - ${fn} | ${RUNBIN}; then
|
|
echo "failed with code ${PIPESTATUS[1]}"
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
echo "All tests passed!"
|