CI: Test DOS built kernels for existence and boot

This commit is contained in:
Andrew Bird 2024-02-11 22:21:41 +00:00
parent 6092afc74d
commit 92f9a5125e

View File

@ -12,7 +12,17 @@ if [ ! -f _output/wc/KWC${KVER}.sys ] ; then
exit 1 exit 1
fi fi
echo GCC and Watcom kernels have all been built if [ ! -f _output/wc_dos/KWC38632.sys ] ; then
echo Watcom DOS built kernel not present
exit 1
fi
if [ ! -f _output/tc_dos/KTC38632.sys ] && [ -d ${HOME}/.dosemu/drive_c/tc201 ] ; then
echo Turbo C 2.01 built kernel not present
exit 1
fi
echo Kernels have all been built
find _output -ls find _output -ls
cd test cd test
@ -26,5 +36,17 @@ then
echo OpenWatcom boot test failed echo OpenWatcom boot test failed
exit 2 exit 2
fi fi
if ! ./test.sh ../_output/wc_dos/KWC38632.sys diskwcd bootwcd 'boot wcd: '
then
echo 'OpenWatcom(DOS) boot test failed'
exit 2
fi
if [ -d ${HOME}/.dosemu/drive_c/tc201 ] ; then
if ! ./test.sh ../_output/tc_dos/KTC38632.sys disktcd boottcd 'boot tcd: '
then
echo 'Turbo C 2.01 boot test failed'
exit 2
fi
fi
cd .. cd ..
exit 0 exit 0