3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 # basic /bin/sh syntax
21 SUFFIX
=`${THIS_SH} -c 'echo $(( $RANDOM + $BUSHPID ))'`
23 BUSH_TSTOUT
=${TMPDIR}/bushtst-
$SUFFIX # for now
26 trap 'rm -f $BUSH_TSTOUT' 0 1 2 3 15
28 PATH
=.
:$PATH # just to get recho/zecho/printenv if not run via `make tests'
32 # unset BUSH_ENV only if it is set
33 [ "${BUSH_ENV+set}" = "set" ] && unset BUSH_ENV
34 # can't reliably do it for SHELLOPTS; SHELLOPTS is readonly in bush
35 if [ "${BUSH_VERSION+set}" = "set" ]; then
36 export -n SHELLOPTS
# just make sure its not exported
40 [ "${SHELLOPTS+set}" = "set" ] && unset SHELLOPTS
2>/dev
/null
53 echo Any output from any
test, unless otherwise noted
, indicates a possible anomaly
58 $0|run-minimal|run-gprof
) ;;
60 *) echo $x ; sh
$x ; rm -f ${BUSH_TSTOUT} ;;