2018-03-21 11:31:31 +08:00
|
|
|
# This is not a standalone script; it is invoked by
|
|
|
|
# one or more of the main scripts
|
|
|
|
|
|
|
|
if test "x$SETX" = x1 ; then set -x ; fi
|
|
|
|
|
|
|
|
quiet=0
|
|
|
|
|
|
|
|
PARAMS="[log]"
|
|
|
|
#PARAMS="${PARAMS}[fetch=memory]"
|
|
|
|
#PARAMS="${PARAMS}[show=fetch]"
|
|
|
|
|
|
|
|
OCLOGFILE=/dev/null
|
|
|
|
|
2022-05-20 02:28:43 +08:00
|
|
|
DUMPFLAGS=
|
2018-10-02 05:51:43 +08:00
|
|
|
|
2018-03-21 11:31:31 +08:00
|
|
|
# Locate directories
|
|
|
|
testdata3="${srcdir}/testdata3"
|
|
|
|
expected3="${srcdir}/expected3"
|
|
|
|
|
|
|
|
rm -f ./.dodsrc ./.ocrc ./.daprc
|
|
|
|
|
|
|
|
passcount=0
|
|
|
|
xfailcount=0
|
|
|
|
failcount=0
|
|
|
|
|
|
|
|
# How to access local files
|
|
|
|
FILEURL="file://${testdata3}"
|
|
|
|
|
|
|
|
processstatus() {
|
|
|
|
if test "$ok" = 1 ; then
|
|
|
|
status=0 # succeed
|
|
|
|
elif test "x$isxfail" = "x0" ; then
|
|
|
|
status=1 # fail
|
|
|
|
else
|
|
|
|
status=2 # xfail
|
|
|
|
fi
|
|
|
|
case "$status" in
|
|
|
|
0)
|
|
|
|
passcount=`expr $passcount + 1`
|
|
|
|
if test "x$quiet" = "x" ; then echo "*** SUCCEED: ${x}"; fi
|
|
|
|
;;
|
|
|
|
1)
|
|
|
|
failcount=`expr $failcount + 1`
|
|
|
|
echo "*** FAIL: ${x}"
|
|
|
|
;;
|
|
|
|
2)
|
|
|
|
xfailcount=`expr $xfailcount + 1`
|
|
|
|
echo "*** XFAIL : ${x}"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
summarize() {
|
|
|
|
totalcount=`expr $passcount + $failcount + $xfailcount`
|
|
|
|
okcount=`expr $passcount + $xfailcount`
|
|
|
|
if test "$failcount" -gt 0 ; then
|
|
|
|
echo "*** FAILED: ${okcount}/${totalcount} ; ${xfailcount} expected failures ; ${failcount} unexpected failures"
|
|
|
|
else
|
|
|
|
echo "*** PASSED: ${okcount}/${totalcount} ; ${xfailcount} expected failures ; ${failcount} unexpected failures"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
cleanup() {
|
|
|
|
rm -fr ${RESULTSDIR}
|
|
|
|
}
|
|
|
|
|
|
|
|
doexit() {
|
|
|
|
if test "$failcount" -gt 0
|
|
|
|
then
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|