mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-10 02:18:04 +11:00
9a72f10221
This makes for a much more usable zasm linux binary that doesn't have to be rebuilt every time apps or kernel change.
22 lines
384 B
Bash
Executable File
22 lines
384 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
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!"
|