diff options
author | Gordon Sim <gsim@apache.org> | 2006-12-11 10:41:13 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2006-12-11 10:41:13 +0000 |
commit | a52120056649103af256f1f34b5bc574582a7d96 (patch) | |
tree | 76f9272f53ba390e08c2498a4e3d6d5db5330feb /cpp/tests/run-python-tests | |
parent | e9ab6e310a67297d2fc537131868c482fd8b21a6 (diff) | |
download | qpid-python-a52120056649103af256f1f34b5bc574582a7d96.tar.gz |
Patch posted to dev listed:
2006-12-08 Jim Meyering <meyering@redhat.com>
Move each test into a script of its own, as Automake requires.
* tests/Makefile.am (TESTS): List test script names here,
rather than listing rules as dependents of "check".
(EXTRA_DIST): Add $(TESTS).
(run-unit-tests, run-python-tests): Remove rules, putting their
contents in the following new scripts.
* tests/run-unit-tests: New one-line script.
* tests/run-python-tests: New script, containing the script
from Makefile.am.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@485592 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/tests/run-python-tests')
-rwxr-xr-x | cpp/tests/run-python-tests | 15 |
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 |