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 | aac76b9da472b77e3b41a8ced980ca53e3df48bc (patch) | |
tree | 797baa2612bbe366378b49532ce975310be8d962 | |
parent | c1695ab27ad7d2208a2d75a54a0066103ebf1d25 (diff) | |
download | qpid-python-aac76b9da472b77e3b41a8ced980ca53e3df48bc.tar.gz |
Added sleep to verify script to avoid startup races.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@628827 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-x | bin/verify | 4 | ||||
-rw-r--r-- | cpp/examples/Makefile.am | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/bin/verify b/bin/verify index 96fe1df9b3..652f83b83f 100755 --- a/bin/verify +++ b/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/cpp/examples/Makefile.am b/cpp/examples/Makefile.am index 9b41b130e9..d633f995a9 100644 --- a/cpp/examples/Makefile.am +++ b/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 |