2022-05-26 21:52:30 +02:00
|
|
|
#! /bin/bash
|
2019-11-12 11:19:30 +01:00
|
|
|
|
2020-02-23 12:38:00 +01:00
|
|
|
KVER=8632
|
|
|
|
|
2021-10-08 00:11:57 +02:00
|
|
|
if [ ! -f _output/gcc/KGC${KVER}.sys ] ; then
|
2020-02-23 12:38:00 +01:00
|
|
|
echo GCC built kernel not present
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2021-10-08 00:11:57 +02:00
|
|
|
if [ ! -f _output/wc/KWC${KVER}.sys ] ; then
|
2020-02-23 12:38:00 +01:00
|
|
|
echo Watcom built kernel not present
|
|
|
|
exit 1
|
2019-11-12 11:19:30 +01:00
|
|
|
fi
|
|
|
|
|
2024-02-11 23:21:41 +01:00
|
|
|
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
|
2021-10-08 00:11:57 +02:00
|
|
|
find _output -ls
|
2022-05-26 21:52:58 +02:00
|
|
|
|
|
|
|
cd test
|
|
|
|
if ! ./test.sh ../_output/gcc/KGC${KVER}.sys diskgc bootgc 'boot gcc: '
|
|
|
|
then
|
|
|
|
echo GCC boot test failed
|
|
|
|
exit 2
|
|
|
|
fi
|
|
|
|
if ! ./test.sh ../_output/wc/KWC${KVER}.sys diskwc bootwc 'boot wc: '
|
|
|
|
then
|
|
|
|
echo OpenWatcom boot test failed
|
|
|
|
exit 2
|
|
|
|
fi
|
2024-02-11 23:21:41 +01:00
|
|
|
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
|
2022-05-26 21:52:58 +02:00
|
|
|
cd ..
|
2020-02-23 12:38:00 +01:00
|
|
|
exit 0
|