summaryrefslogtreecommitdiff
path: root/cpp/src/tests/run_header_test
blob: bd19ed669e3f1882651e291a2bdb34f06a5628fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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`

if test -d ${PYTHON_DIR} ;  then
    ./header_test -p $QPID_PORT
    export PYTHONPATH=$PYTHON_DIR:$PYTHONPATH
    $srcdir/header_test.py "localhost" $QPID_PORT
else 
    echo "Skipping header test as python libs not found"
fi