summaryrefslogtreecommitdiff
path: root/cpp/tests/run-python-tests
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/tests/run-python-tests')
-rwxr-xr-xcpp/tests/run-python-tests15
1 files changed, 15 insertions, 0 deletions
diff --git a/cpp/tests/run-python-tests b/cpp/tests/run-python-tests
new file mode 100755
index 0000000000..57be07ec1c
--- /dev/null
+++ b/cpp/tests/run-python-tests
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+log=`pwd`/qpidd.log
+# Start the daemon, recording its PID.
+../src/qpidd > $log 2>&1 & pid=$!
+
+# Arrange to kill the daemon upon any type of termination.
+trap 'status=$?; kill $pid; exit $status' 0
+trap '(exit $?); exit $?' 1 2 13 15
+
+# Run the tests.
+cd ../../python && ./run-tests -v -I cpp_failing.txt
+
+rm -f $log