summaryrefslogtreecommitdiff
path: root/qpid/cpp/examples/Makefile.am
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-02-08 15:01:30 +0000
committerAlan Conway <aconway@apache.org>2008-02-08 15:01:30 +0000
commit56be271a9b61a7baec92b81ba84b9e9e2c51255d (patch)
tree61bf333f8b68de7365590e54ef2e53c767d6c2d0 /qpid/cpp/examples/Makefile.am
parentb70fba9bd0fbc69f6892d576a3c70f9ee7af563b (diff)
downloadqpid-python-56be271a9b61a7baec92b81ba84b9e9e2c51255d.tar.gz
Refactored verify scripts, added verify for python Examples.
To verify an example: <qpid-trunk>/bin/verify <example-dir> See comments in bin/verify for more details. Changes: - Each example dir has its own verify script and verify.in. - Added sys.stdout.flush() to som python examples so verify can tell when they're ready. - Made python examples svn:executable. - C++ examples/Makefile.am runs python examples git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@619903 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples/Makefile.am')
-rw-r--r--qpid/cpp/examples/Makefile.am20
1 files changed, 17 insertions, 3 deletions
diff --git a/qpid/cpp/examples/Makefile.am b/qpid/cpp/examples/Makefile.am
index 933a6de26a..f4882d2c7d 100644
--- a/qpid/cpp/examples/Makefile.am
+++ b/qpid/cpp/examples/Makefile.am
@@ -17,7 +17,11 @@ nobase_pkgdata_DATA= \
examples/direct/listener.cpp \
examples/direct/declare_queues.cpp
-VERIFY_SCRIPT=verify \
+VERIFY_SCRIPT= \
+ examples/request-response/verify \
+ examples/fanout/verify \
+ examples/pub-sub/verify \
+ examples/direct/verify \
examples/request-response/verify.in \
examples/fanout/verify.in \
examples/pub-sub/verify.in \
@@ -35,7 +39,17 @@ clean-local:
abs_top_builddir=@abs_top_builddir@
abs_top_srcdir=@abs_top_srcdir@
-VERIFY=$(abs_top_srcdir)/examples/verify
+VERIFY=$(top_srcdir)/../bin/verify
+PYTHON_EXAMPLES=$(top_srcdir)/../python/examples
+EXAMPLES= \
+ examples/pub-sub \
+ examples/fanout \
+ examples/direct \
+ examples/request-response \
+ $(PYTHON_EXAMPLES)/pubsub \
+ $(PYTHON_EXAMPLES)/fanout \
+ $(PYTHON_EXAMPLES)/direct \
+ $(PYTHON_EXAMPLES)/request-response
# Build the examples in the source tree.
all-local:
@@ -43,7 +57,7 @@ all-local:
# Verify the examples in the buid tree.
check-local: all-local
- cd examples && QPID_DATA_DIR= QPIDD=$(abs_top_builddir)/src/qpidd $(VERIFY)
+ QPID_DATA_DIR= QPIDD=$(top_builddir)/src/qpidd $(VERIFY) $(EXAMPLES)
# Build and verify the installed examples, then clean up to avoid rpmbuild warnings.
EXAMPLE_FLAGS=-I$(DESTDIR)$(includedir) -L$(DESTDIR)$(libdir) -Wl,-rpath,$(DESTDIR)$(libdir)