# There are three problems fixed # a) our build system exports SHELLOPTS which makes testing fail # We could have set "unexport SHELLOPTS" in our Makefile, but maybe this # will be accepted by community? # b) Test for a /tmp/xx leftover from running the giant bash # test harness. This can happen in the test harness run is # interrupted with ^C. # Without this test, the test harness will start failing # for no real reason. # c) This script runs all the tests via 'sh '. The problem is that 'sh' # might not necesarily be bash. And might produce errors --- tests/run-all 2016-11-28 00:46:51.812583704 -0800 +++ tests/run-all 2016-11-28 00:45:20.302845042 -0800 @@ -17,7 +17,7 @@ export PATH # unset BASH_ENV only if it is set [ "${BASH_ENV+set}" = "set" ] && unset BASH_ENV # ditto for SHELLOPTS -#[ "${SHELLOPTS+set}" = "set" ] && unset SHELLOPTS +[ "${SHELLOPTS+set}" = "set" ] && unset SHELLOPTS : ${THIS_SH:=../bash} export THIS_SH @@ -26,6 +26,11 @@ ${THIS_SH} ./version rm -f ${BASH_TSTOUT} +if [ -f /tmp/xx ] ; then + echo "someone left a /tmp/xx around. I can't test." + exit 1 +fi + echo Any output from any test, unless otherwise noted, indicates a possible anomaly for x in run-* @@ -33,7 +38,7 @@ do case $x in $0|run-minimal|run-gprof) ;; *.orig|*~) ;; - *) echo $x ; sh $x ; rm -f ${BASH_TSTOUT} ;; + *) echo $x ; ${THIS_SH} $x ; rm -f ${BASH_TSTOUT} ;; esac done