[Assorted-commits] SF.net SVN: assorted:[1179] ydb/trunk/tools/test.bash
Brought to you by:
yangzhang
From: <yan...@us...> - 2009-02-13 20:57:39
|
Revision: 1179 http://assorted.svn.sourceforge.net/assorted/?rev=1179&view=rev Author: yangzhang Date: 2009-02-13 20:57:32 +0000 (Fri, 13 Feb 2009) Log Message: ----------- added p2 harness Modified Paths: -------------- ydb/trunk/tools/test.bash Modified: ydb/trunk/tools/test.bash =================================================================== --- ydb/trunk/tools/test.bash 2009-02-13 20:57:05 UTC (rev 1178) +++ ydb/trunk/tools/test.bash 2009-02-13 20:57:32 UTC (rev 1179) @@ -195,6 +195,7 @@ cd ~/ydb/src make clean PPROF=1 OPT=1 make WTF= + PPROF=1 OPT=1 make WTF= p2 } init-setup() { @@ -511,6 +512,28 @@ } # +# Prototype 2 +# + +p2-helper() { + local leader="$1" + shift + tagssh "$leader" "ydb/src/p2 -l | tail" & + sleep .1 + { + while (( $# > 0 )) ; do + tagssh "$1" "ydb/src/p2 -H $leader | tail" & + shift + done + time wait + } 2>&1 | fgrep real +} + +p2() { + hostargs p2-helper +} + +# # Main # This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |