summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/Makefile.am
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2013-06-18 21:09:19 +0000
committerAlan Conway <aconway@apache.org>2013-06-18 21:09:19 +0000
commitdcbe230a40f223d1e651cbd5d5626dee8d5c71b7 (patch)
tree3d295b317de94e8fc797a199d2e12867f0a3969e /qpid/cpp/src/tests/Makefile.am
parenta6db7e3f3bcac613b0ede002355b273cc1e6a8f9 (diff)
downloadqpid-python-dcbe230a40f223d1e651cbd5d5626dee8d5c71b7.tar.gz
QPID-4745: Alternative port allocation for tests, instead of 'qpidd --port=0'
qpidd-p0 script binds a new port to a socket using bind(0), and then execs qpidd using the --socket-fd option to pass the socket to qpidd. It is intended to replace /path/to/qpidd --port 0 <args...> with qpidd-p0 /path/to/qpidd <args...> Most tests do not yet use qpidd-p0, they will be updated in a future commit. Changes: - Added qpidd-p0 - Fixed qpidd port printing logic: print port only if --port=0, regardless of --transport. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1494306 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/Makefile.am')
-rw-r--r--qpid/cpp/src/tests/Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/Makefile.am b/qpid/cpp/src/tests/Makefile.am
index 92532895c5..7aa8add442 100644
--- a/qpid/cpp/src/tests/Makefile.am
+++ b/qpid/cpp/src/tests/Makefile.am
@@ -380,13 +380,19 @@ check-long:
$(MAKE) check TESTS="$(LONG_TESTS)" VALGRIND=
# Things that should be built before the check target runs.
-check-am: python_prep test_env.sh install_env.sh sasl_config
+check-am: python_prep test_env.sh install_env.sh sasl_config qpidd-p0
PYTHON_SRC_DIR=$(abs_srcdir)/../../../python
PYTHON_BLD_DIR=$(abs_builddir)/python
+# Copy qpidd-p0 to build directory so tests can find it easily.
+qpidd-p0: force
+ cp $(abs_srcdir)/qpidd-p0 .
+
+force:
+
# Generate python client as part of the all-am target so it gets built before tests.
-all-am: python_prep
+all-am: python_prep qpidd-p0
python_prep:
if test -d $(PYTHON_SRC_DIR); \