]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/run-all
bash-4.4 rc1 release
[thirdparty/bash.git] / tests / run-all
CommitLineData
726f6388
JA
1#! /bin/sh
2
54a5fbe1
CR
3: ${TMPDIR:=/tmp}
4export TMPDIR
5
690150f9
CR
6# basic /bin/sh syntax
7SUFFIX=`${THIS_SH} -c 'echo $(( $RANDOM + $BASHPID ))'`
8
9BASH_TSTOUT=${TMPDIR}/bashtst-$SUFFIX # for now
54a5fbe1
CR
10export BASH_TSTOUT
11
12trap 'rm -f $BASH_TSTOUT' 0
13
d166f048 14PATH=.:$PATH # just to get recho/zecho/printenv if not run via `make tests'
726f6388 15export PATH
726f6388 16
d166f048
JA
17# unset BASH_ENV only if it is set
18[ "${BASH_ENV+set}" = "set" ] && unset BASH_ENV
19# ditto for SHELLOPTS
20#[ "${SHELLOPTS+set}" = "set" ] && unset SHELLOPTS
ccc6cda3
JA
21
22: ${THIS_SH:=../bash}
23export THIS_SH
24
d166f048
JA
25${THIS_SH} ./version
26
54a5fbe1 27rm -f ${BASH_TSTOUT}
bb70624e 28
d166f048
JA
29echo Any output from any test, unless otherwise noted, indicates a possible anomaly
30
726f6388
JA
31for x in run-*
32do
33 case $x in
bb70624e 34 $0|run-minimal|run-gprof) ;;
726f6388 35 *.orig|*~) ;;
690150f9 36 *) echo $x ; sh $x ; rm -f ${BASH_TSTOUT} ;;
726f6388
JA
37 esac
38done
39
40exit 0