2019-05-17 09:33:20 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -o pipefail
|
|
|
|
|
2019-06-02 19:54:37 -04:00
|
|
|
BASE=../../..
|
|
|
|
TOOLS=../..
|
|
|
|
ZASM="${TOOLS}/zasm.sh"
|
|
|
|
RUNBIN="${TOOLS}/emul/runbin/runbin"
|
|
|
|
KERNEL="${BASE}/kernel"
|
|
|
|
APPS="${BASE}/apps"
|
2019-05-17 09:33:20 -04:00
|
|
|
|
|
|
|
for fn in *.asm; do
|
|
|
|
echo "Running test ${fn}"
|
2019-06-02 19:54:37 -04:00
|
|
|
if ! ${ZASM} "${KERNEL}" "${APPS}" < ${fn} | ${RUNBIN}; then
|
2019-05-17 09:33:20 -04:00
|
|
|
echo "failed with code ${PIPESTATUS[1]}"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "All tests passed!"
|