1#! /bin/sh 2 3PATH=.:$PATH # just to get recho/zecho/printenv if not run via `make tests' 4export PATH 5 6# unset BASH_ENV only if it is set 7[ "${BASH_ENV+set}" = "set" ] && unset BASH_ENV 8# ditto for SHELLOPTS 9#[ "${SHELLOPTS+set}" = "set" ] && unset SHELLOPTS 10 11: ${THIS_SH:=../bash} 12export THIS_SH 13 14${THIS_SH} ./version 15 16rm -f /tmp/xx 17 18echo Any output from any test, unless otherwise noted, indicates a possible anomaly 19 20for x in run-* 21do 22 case $x in 23 $0|run-minimal|run-gprof) ;; 24 *.orig|*~) ;; 25 run-test|run-read) 26 if stty < /dev/tty >/dev/null; then 27 echo $x; sh $x && echo [PASS] $x || echo [FAIL] $x 28 fi 29 ;; 30 *) echo $x ; sh $x && echo [PASS] $x || echo [FAIL] $x;; 31 esac 32done 33 34exit 0 35