diff options
Diffstat (limited to 'qpid/cpp/src/tests/test_env.sh.in')
| -rw-r--r-- | qpid/cpp/src/tests/test_env.sh.in | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/qpid/cpp/src/tests/test_env.sh.in b/qpid/cpp/src/tests/test_env.sh.in deleted file mode 100644 index 1c4c117e4b..0000000000 --- a/qpid/cpp/src/tests/test_env.sh.in +++ /dev/null @@ -1,100 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -absdir() { echo `cd $1 && pwd`; } - -# Environment variables substituted by cmake. -export srcdir=`absdir @abs_srcdir@` -export builddir=`absdir @abs_builddir@` -export top_srcdir=`absdir @abs_top_srcdir@` -export top_builddir=`absdir @abs_top_builddir@` -export moduledir=$top_builddir/src@builddir_lib_suffix@ -export pythonswigdir=$top_builddir/bindings/qpid/python/ -export pythonswiglibdir=$top_builddir/bindings/qpid/python@builddir_lib_suffix@ -export 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 -export SASL_PW=@SASLPASSWD2_EXECUTABLE@ -export PYTHON=@PYTHON_EXECUTABLE@ - -# Python paths and directories -export PYTHON_DIR=$builddir/python -export QPID_PYTHON_TEST=$PYTHON_DIR/commands/qpid-python-test -if [ ! -d $PYTHON_DIR -a -d $top_srcdir/../python ]; then - export PYTHON_DIR=$top_srcdir/../python - export QPID_PYTHON_TEST=$PYTHON_DIR/qpid-python-test -fi -export QPID_TESTS=$top_srcdir/../tests -export QPID_TESTS_PY=$QPID_TESTS/src/py -export QPID_TOOLS=$top_srcdir/../tools -export QMF_LIB=$top_srcdir/../extras/qmf/src/py -export PYTHON_COMMANDS=$QPID_TOOLS/src/py -export PYTHONPATH_SWIG=$pythonswigdir:$pythonswiglibdir -export PYTHONPATH=$srcdir:$PYTHON_DIR:$PYTHON_COMMANDS:$QPID_TESTS_PY:$QMF_LIB:$PYTHONPATH_SWIG:$PYTHONPATH -export QPID_CONFIG_EXEC=$PYTHON_COMMANDS/qpid-config -export QPID_ROUTE_EXEC=$PYTHON_COMMANDS/qpid-route -export QPID_HA_EXEC=$PYTHON_COMMANDS/qpid-ha -export PYTHONSWIGMODULE=$pythonswigdir/qpid_messaging.py -# Executables -export QPIDD_EXEC=$top_builddir/src/qpidd - -# Test executables -export QPID_TEST_EXEC_DIR=$builddir -export QPID_TEST_SRC_DIR=$srcdir -export RECEIVER_EXEC=$QPID_TEST_EXEC_DIR/receiver -export SENDER_EXEC=$QPID_TEST_EXEC_DIR/sender - -# Path -export PATH=$top_builddir/src:$builddir:$srcdir:$PYTHON_COMMANDS:$QPID_TEST_EXEC_DIR:$PYTHON_DIR/commands:$PATH - -# Modules -export TEST_STORE_LIB=$testmoduledir/test_store.so - -exportmodule() { test -f $moduledir/$2 && eval "export $1=$moduledir/$2"; } -exportmodule HA_LIB ha.so -exportmodule XML_LIB xml.so -test "$STORE_LIB" || exportmodule STORE_LIB linearstore.so -test "$STORE_LIB" || exportmodule STORE_LIB legacystore.so -exportmodule AMQP_LIB amqp.so - -# Qpid options -export QPID_NO_MODULE_DIR=1 # Don't accidentally load installed modules -export QPID_DATA_DIR= -export QPID_CONFIG=$srcdir/qpidd-empty.conf - -# Use temporary directory if $HOME does not exist -if [ ! -e "$HOME" ]; then - export QPID_DATA_DIR=/tmp/qpid - export QPID_PID_DIR=/tmp/qpid -fi - -# Options for boost test framework -test -z "$BOOST_TEST_SHOW_PROGRESS" && export BOOST_TEST_SHOW_PROGRESS=yes -test -z "$BOOST_TEST_CATCH_SYSTEM_ERRORS" && export BOOST_TEST_CATCH_SYSTEM_ERRORS=no - -# Source this for useful common testing functions -export QPID_TEST_COMMON=$srcdir/test_env_common.sh - -# Proton configuration -export QPID_PROTON_VERSION=@Proton_VERSION@ |
