mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-27 20:58:05 +11:00
d9db0a824e
It's no longer required to use `gmake` under OpenBSD and shell scripts no longer require bash.
28 lines
431 B
Bash
Executable File
28 lines
431 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
BASE=../../..
|
|
TOOLS=../..
|
|
ZASM="${TOOLS}/zasm.sh"
|
|
RUNBIN="${TOOLS}/emul/runbin/runbin"
|
|
KERNEL="${BASE}/kernel"
|
|
APPS="${BASE}/apps"
|
|
|
|
chk() {
|
|
echo "Running test $1"
|
|
if ! ${ZASM} "${KERNEL}" "${APPS}" < $1 | ${RUNBIN}; then
|
|
echo "failed with code ${PIPESTATUS[1]}"
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
if [ ! -z $1 ]; then
|
|
chk $1
|
|
exit 0
|
|
fi
|
|
|
|
for fn in *.asm; do
|
|
chk "${fn}"
|
|
done
|
|
|
|
echo "All tests passed!"
|