summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-02-21 14:24:24 +0000
committerAlan Conway <aconway@apache.org>2008-02-21 14:24:24 +0000
commit6e8de0252bf736addca80056075ae2cc1066e4b9 (patch)
tree1441159267e1562a64d3a1fa620881cabb8f1ea0
parente210317267eccbce31a25396f49f6c8688812f11 (diff)
downloadqpid-python-6e8de0252bf736addca80056075ae2cc1066e4b9.tar.gz
Fix verify script problem
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@629796 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--cpp/examples/Makefile.am8
-rwxr-xr-xcpp/examples/verify (renamed from bin/verify)0
-rwxr-xr-xcpp/examples/verify_all15
3 files changed, 8 insertions, 15 deletions
diff --git a/cpp/examples/Makefile.am b/cpp/examples/Makefile.am
index df7fe4dfc7..21363ea8e4 100644
--- a/cpp/examples/Makefile.am
+++ b/cpp/examples/Makefile.am
@@ -44,12 +44,6 @@ VERIFY_FILES= verify verify_all \
EXTRA_DIST=$(nobase_pkgdata_DATA) $(VERIFY_FILES)
-force:
-
-VERIFY_SCRIPT=$(top_srcdir)/../bin/verify
-verify: force
- if [ -f $(VERIFY_SCRIPT) ] ; then cp $(VERIFY_SCRIPT) $@; fi
-
# Note: we don't use normal automake SUBDIRS because the example
# makefiles don't understand all the recursive automake targets.
@@ -67,7 +61,7 @@ all-local:
# Verify the examples in the buid tree.
check-local: all-local verify
- $(srcdir)/verify_all $(abs_top_srcdir) $(abs_top_builddir)
+ $(srcdir)/verify_all $(abs_top_srcdir)/..
# TODO:
# create a tarball for testing installed examples.
diff --git a/bin/verify b/cpp/examples/verify
index 251097930e..251097930e 100755
--- a/bin/verify
+++ b/cpp/examples/verify
diff --git a/cpp/examples/verify_all b/cpp/examples/verify_all
index e6d75929b2..5501239021 100755
--- a/cpp/examples/verify_all
+++ b/cpp/examples/verify_all
@@ -2,20 +2,19 @@
# Verify all C++/python example combinations.
#
-src=$1 ; build=$2
-
-verify=./verify
-qpidd=$build/src/qpidd
-cpp=$build/examples/examples
-python=$src/../python
+srcdir=$1 ;
+verify=`dirname $0`/verify
+qpidd=../src/qpidd
+python=$srcdir/python
trap "$qpidd -q" exit
export QPID_PORT=`$qpidd -dp0 --data-dir ""`
export PYTHON_EXAMPLES=$python/examples
export PYTHONPATH=$python:$PYTHONPATH
-export AMQP_SPEC=$src/../specs/amqp.0-10-preview.xml
+export AMQP_SPEC=$srcdir/specs/amqp.0-10-preview.xml
-find="find $cpp"
+test -d $PYTHON_EXAMPLES || echo "Warning: not verifying python examples, $PYTHON_EXAMPLES not found"
+find="find examples"
test -d $PYTHON_EXAMPLES && find="$find $PYTHON_EXAMPLES"
find="$find -name verify"
test -d $PYTHON_EXAMPLES && \