summaryrefslogtreecommitdiff
path: root/qpid/cpp/examples/verify_all
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-05-14 20:49:00 +0000
committerAlan Conway <aconway@apache.org>2008-05-14 20:49:00 +0000
commitcc156604be043fea4a195198e8a9f6dcb7233a6f (patch)
tree69cac29565459471e7d8230f58594a08efa8c497 /qpid/cpp/examples/verify_all
parent4e8f8379172e827e7c68a741abe6c9c7f987c588 (diff)
downloadqpid-python-cc156604be043fea4a195198e8a9f6dcb7233a6f.tar.gz
Fix example check in rpmbuild.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@656427 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples/verify_all')
-rwxr-xr-xqpid/cpp/examples/verify_all13
1 files changed, 6 insertions, 7 deletions
diff --git a/qpid/cpp/examples/verify_all b/qpid/cpp/examples/verify_all
index 0fc1625355..9db2214903 100755
--- a/qpid/cpp/examples/verify_all
+++ b/qpid/cpp/examples/verify_all
@@ -3,18 +3,17 @@
#
verify=`dirname $0`/verify
-topdir=$1
-exclude_regexp=$2
+topsrcdir=$1
+qpidd=$2
+exclude_regexp=$3
-
-qpidd=$topdir/cpp/src/qpidd
-python=$topdir/python
+python=$topsrcdir/python
trap "$qpidd -q" exit
-export QPID_PORT=`$qpidd -dp0 --data-dir "" --auth no`
+export QPID_PORT=`$qpidd -dp0 --data-dir "" --auth no` || { echo "Can't run qpidd" ; exit 1; }
export PYTHON_EXAMPLES=$python/examples
export PYTHONPATH=$python:$PYTHONPATH
-export AMQP_SPEC=$topdir/specs/amqp.0-10.xml
+export AMQP_SPEC=$topsrcdir/specs/amqp.0-10.xml
test -d $PYTHON_EXAMPLES || echo "Warning: not verifying python examples, $PYTHON_EXAMPLES not found"
find="find examples"