mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-27 06:08:04 +11:00
253674ea05
Also, make tests run in a *BSD environment
21 lines
368 B
Bash
Executable File
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!"
|