diff options
| author | Alan Conway <aconway@apache.org> | 2008-02-08 15:01:30 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-02-08 15:01:30 +0000 |
| commit | 2b1f0e248873a041f7fe5bda724a0d7e13617372 (patch) | |
| tree | 44d734f4c475a9eada3df0dd002e79de450e3ffa /cpp/examples/Makefile.am | |
| parent | 942b577d5047b3617d00a375235400e275bfe1ff (diff) | |
| download | qpid-python-2b1f0e248873a041f7fe5bda724a0d7e13617372.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/qpid@619903 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/Makefile.am')
| -rw-r--r-- | cpp/examples/Makefile.am | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/cpp/examples/Makefile.am b/cpp/examples/Makefile.am index 933a6de26a..f4882d2c7d 100644 --- a/cpp/examples/Makefile.am +++ b/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) |
