1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-09-16 23:18:46 +10:00
collapseos/tools/tests/unit/runtests.sh

19 lines
313 B
Bash
Raw Normal View History

#!/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!"