1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-27 05:08:06 +11:00
collapseos/tools/tests/unit/runtests.sh
2019-05-20 07:50:23 -04:00

18 lines
289 B
Bash
Executable File

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