summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/run_header_test
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-10-24 11:33:40 +0000
committerGordon Sim <gsim@apache.org>2008-10-24 11:33:40 +0000
commit7e04e141dfb61fd0477c06a0e77d3c7e7be05761 (patch)
treeeb3451c6d7fca9a3afac7a082d28fe99e46f8281 /qpid/cpp/src/tests/run_header_test
parentd33da71d0e2dbf23345c6bd45895eb918739c0c5 (diff)
downloadqpid-python-7e04e141dfb61fd0477c06a0e77d3c7e7be05761.tar.gz
Fix for bug in encoding/decoding of floats and doubles.
Added test to verify double/float headers set by c++ are correctly read by python [TODO: add wider range of header types, add bidirectional tests, add tests against other languages] [Also fixed one or two SSL related files missing from distribution list] git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@707604 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/run_header_test')
-rwxr-xr-xqpid/cpp/src/tests/run_header_test13
1 files changed, 13 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/run_header_test b/qpid/cpp/src/tests/run_header_test
new file mode 100755
index 0000000000..aedd2619a6
--- /dev/null
+++ b/qpid/cpp/src/tests/run_header_test
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Simple test of encode/decode of a double in application headers
+# TODO: this should be expanded to cover a wider set of types and go
+# in both directions
+
+srcdir=`dirname $0`
+PYTHON_DIR=$srcdir/../../../python
+test -f qpidd.port && QPID_PORT=`cat qpidd.port`
+
+./header_test -p $QPID_PORT
+export PYTHONPATH=$PYTHON_DIR:$PYTHONPATH
+$srcdir/header_test.py "localhost" $QPID_PORT
+