1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-27 06:08:04 +11:00
collapseos/tools/tests/unit/runtests.sh
Virgil Dupras 253674ea05 Fix broken tests
Also, make tests run in a *BSD environment
2019-07-19 14:24:35 -04:00

21 lines
368 B
Bash
Executable File

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