diff options
| author | Alan Conway <aconway@apache.org> | 2008-02-18 17:27:11 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-02-18 17:27:11 +0000 |
| commit | 4c5b3df9b7ed8fe10f9f36cc488b75592a9ac68d (patch) | |
| tree | 15784ae622520a4eb323502e4f0296713e5e235f | |
| parent | cd4c82be19c4472052ab6254f6ea223feb436432 (diff) | |
| download | qpid-python-4c5b3df9b7ed8fe10f9f36cc488b75592a9ac68d.tar.gz | |
Added sleep to verify script to avoid startup races.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@628827 13f79535-47bb-0310-9956-ffa450edef68
| -rwxr-xr-x | qpid/bin/verify | 4 | ||||
| -rw-r--r-- | qpid/cpp/examples/Makefile.am | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/qpid/bin/verify b/qpid/bin/verify index 96fe1df9b3..652f83b83f 100755 --- a/qpid/bin/verify +++ b/qpid/bin/verify @@ -38,6 +38,8 @@ background() { out=`outfile $*` eval "$* $ARGS > $out &" || { fail; return 1; } waitfor $out "$pattern" + # printing the ready message doesn't guarnatee we're ready, so sleep a bit. + sleep 1 } name() { @@ -79,7 +81,7 @@ if [ -n "$QPIDD" ] ; then fi for example in "$@"; do - echo -n "$example : " + echo -n "== $example " if ( verify $example; ) then echo "PASS"; else echo "FAIL"; RET=1; fi done exit $RET diff --git a/qpid/cpp/examples/Makefile.am b/qpid/cpp/examples/Makefile.am index 9b41b130e9..d633f995a9 100644 --- a/qpid/cpp/examples/Makefile.am +++ b/qpid/cpp/examples/Makefile.am @@ -44,7 +44,9 @@ VERIFY_FILES= verify verify_all \ EXTRA_DIST=$(nobase_pkgdata_DATA) $(VERIFY_FILES) -verify: +force: + +verify: force cp $(top_srcdir)/../bin/verify $@ # Note: we don't use normal automake SUBDIRS because the example |
