From cf65c5f49ee47048ffbaa9f291e95a35ddeb3af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 21 Oct 2006 17:17:34 +0000 Subject: [PATCH] Add --test-environment git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18763 ec53bebd-3082-4978-b11e-865c3cabbd6b --- tools/heimdal-build.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/heimdal-build.sh b/tools/heimdal-build.sh index 16619148e..dbe256b7d 100644 --- a/tools/heimdal-build.sh +++ b/tools/heimdal-build.sh @@ -109,6 +109,10 @@ do prependpath="$2" shift 2 ;; + --test-environment) + testenvironment="$2" + shift 2 + ;; --no-email) noemail="yes" shift @@ -211,6 +215,11 @@ fi cd ${hversion} || exit 1 +makecheckenv= +if [ X"${testenvironment}" != X ] ; then + makecheckenv="${makecheckenv} TESTS_ENVIRONMENT=\"${testenvironment}\"" +fi + mkdir socket_wrapper_dir SOCKET_WRAPPER_DIR=`pwd`/socket_wrapper_dir export SOCKET_WRAPPER_DIR @@ -229,7 +238,7 @@ if [ $? != 0 ] ; then status=${status:-make all} fi echo make check >> ab.txt -make check >> ab.txt 2>&1 +eval env $makecheckenv make check >> ab.txt 2>&1 if [ $? != 0 ] ; then echo Make check failed status=${status:-make check}