summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/test_env.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/src/tests/test_env.sh.in')
-rw-r--r--qpid/cpp/src/tests/test_env.sh.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/test_env.sh.in b/qpid/cpp/src/tests/test_env.sh.in
index f45d3708a2..c85e1d651a 100644
--- a/qpid/cpp/src/tests/test_env.sh.in
+++ b/qpid/cpp/src/tests/test_env.sh.in
@@ -19,7 +19,7 @@
absdir() { echo `cd $1 && pwd`; }
-# Environment variables substituted by configure/cmake.
+# Environment variables substituted by cmake.
srcdir=`absdir @abs_srcdir@`
builddir=`absdir @abs_builddir@`
top_srcdir=`absdir @abs_top_srcdir@`
@@ -30,6 +30,12 @@ pythonswiglibdir=$top_builddir/bindings/qpid/python@builddir_lib_suffix@
testmoduledir=$builddir@builddir_lib_suffix@
export QPID_INSTALL_PREFIX=@prefix@
+# Tools substituted by cmake
+enable_valgrind=${enable_valgrind-@ENABLE_VALGRIND@}
+if [ "$enable_valgrind" = "ON" ] ; then
+ export VALGRIND=@VALGRIND_EXECUTABLE@
+fi
+
# Python paths and directories
export PYTHON_DIR=$builddir/python
export QPID_PYTHON_TEST=$PYTHON_DIR/commands/qpid-python-test