collapseos/tools/tests/unit/runtests.sh
Virgil Dupras 22e990ed89 Parametrize zasm linux bin's include CFS file
... instead of embedding it in the binary itself. Additionally, add a
"zasm.sh" wrapper to faciliate zasm calls on a linux machine.
2019-06-02 15:50:59 -04:00

18 lines
282 B
Bash
Executable File

#!/bin/sh
set -e
set -o pipefail
ZASM=../../zasm.sh
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!"