From 92f9a5125ebd84e2cf1020e7b8a43ff6ca5cae78 Mon Sep 17 00:00:00 2001 From: Andrew Bird Date: Sun, 11 Feb 2024 22:21:41 +0000 Subject: [PATCH] CI: Test DOS built kernels for existence and boot --- ci_test.sh | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/ci_test.sh b/ci_test.sh index 8e511a8..6f0b639 100755 --- a/ci_test.sh +++ b/ci_test.sh @@ -12,7 +12,17 @@ if [ ! -f _output/wc/KWC${KVER}.sys ] ; then exit 1 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 cd test @@ -26,5 +36,17 @@ then echo OpenWatcom boot test failed exit 2 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 .. exit 0