summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/run_cluster_tests
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-11-09 16:03:06 +0000
committerAlan Conway <aconway@apache.org>2009-11-09 16:03:06 +0000
commit995dc6c144c2f59c633cf90df2bbeee27f8b6223 (patch)
treef78e4c27e875f0baa6c815fd300ed950521402b6 /qpid/cpp/src/tests/run_cluster_tests
parentcf3e4e93199f7ebcc3040d54a944d21e44075a65 (diff)
downloadqpid-python-995dc6c144c2f59c633cf90df2bbeee27f8b6223.tar.gz
Filled out process management in python brokertest framework.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@834124 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/run_cluster_tests')
-rwxr-xr-xqpid/cpp/src/tests/run_cluster_tests51
1 files changed, 14 insertions, 37 deletions
diff --git a/qpid/cpp/src/tests/run_cluster_tests b/qpid/cpp/src/tests/run_cluster_tests
index d6eeed33ea..71a1a1781b 100755
--- a/qpid/cpp/src/tests/run_cluster_tests
+++ b/qpid/cpp/src/tests/run_cluster_tests
@@ -19,21 +19,12 @@
# under the License.
#
-# Check that top_builddir and srcdir are set
-# If not, assume local run from test dir
-if [ -z ${top_builddir} -o -z ${srcdir} ]; then
- srcdir=`dirname $0`
- top_builddir=${srcdir}/../../
-fi
-TEST_DIR=${top_builddir}/src/tests
-. $srcdir/python_env.sh
+absdir() { echo `cd $1; pwd`; }
-if test -z $1; then
- CLUSTER_TEST="$PYTHON_COMMANDS/qpid-python-test -m cluster_tests cluster_tests.NewTests.*"
-else
- CLUSTER_TEST="$PYTHON_COMMANDS/qpid-python-test -m cluster_tests cluster_tests.LongTests.\*"
- echo "Running $1..."
-fi
+srcdir=$(absdir $(dirname $0))
+top_builddir=$(absdir ../..)
+
+. $srcdir/python_env.sh
# Check AIS requirements
. $srcdir/ais_check
@@ -65,29 +56,15 @@ if test ! -x ${top_builddir}/../python/commands/qpid-config; then
fi
fi
+# Delete old cluster test data
+OUTDIR=brokertest.tmp
+rm -rf $OUTDIR
+mkdir -p $OUTDIR
-# Make sure temp dir exists if this is the first to use it
-TMP_DATA_DIR=${TEST_DIR}/test_tmp
-if ! test -d ${TMP_DATA_DIR} ; then
- mkdir -p ${TMP_DATA_DIR}/cluster
-else
- # Delete old cluster test dirs
- rm -rf ${TMP_DATA_DIR}/cluster
- mkdir -p ${TMP_DATA_DIR}/cluster
-fi
-export TMP_DATA_DIR
-
+# FIXME aconway 2009-11-06: pass OUTDIR to test.
# Run the test
-with_ais_group ${CLUSTER_TEST}
-RETCODE=$?
-
-if test x${RETCODE} != x0; then
- exit 1;
-fi
-
-
-# Delete cluster store dir if test was successful.
-rm -rf ${TMP_DATA_DIR}
-
-exit 0
+with_ais_group $PYTHON_COMMANDS/qpid-python-test -m cluster_tests
+## || exit 1
+#rm -rf $OUTDIR
+#exit 0