Add --test-environment

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18763 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-21 17:17:34 +00:00
parent ad88468d2f
commit cf65c5f49e

View File

@@ -109,6 +109,10 @@ do
prependpath="$2" prependpath="$2"
shift 2 shift 2
;; ;;
--test-environment)
testenvironment="$2"
shift 2
;;
--no-email) --no-email)
noemail="yes" noemail="yes"
shift shift
@@ -211,6 +215,11 @@ fi
cd ${hversion} || exit 1 cd ${hversion} || exit 1
makecheckenv=
if [ X"${testenvironment}" != X ] ; then
makecheckenv="${makecheckenv} TESTS_ENVIRONMENT=\"${testenvironment}\""
fi
mkdir socket_wrapper_dir mkdir socket_wrapper_dir
SOCKET_WRAPPER_DIR=`pwd`/socket_wrapper_dir SOCKET_WRAPPER_DIR=`pwd`/socket_wrapper_dir
export SOCKET_WRAPPER_DIR export SOCKET_WRAPPER_DIR
@@ -229,7 +238,7 @@ if [ $? != 0 ] ; then
status=${status:-make all} status=${status:-make all}
fi fi
echo make check >> ab.txt echo make check >> ab.txt
make check >> ab.txt 2>&1 eval env $makecheckenv make check >> ab.txt 2>&1
if [ $? != 0 ] ; then if [ $? != 0 ] ; then
echo Make check failed echo Make check failed
status=${status:-make check} status=${status:-make check}