Created
October 31, 2011 23:33
-
-
Save ekoontz/1329407 to your computer and use it in GitHub Desktop.
repeat a given Zookeeper test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# TODO: fold into ant (current) or maven (future). | |
# example usage (run from top-level zookeeper directory) : | |
# | |
# src/repeat.sh ZooKeeperTest | |
test_output=yes | |
testcase=$1 | |
i=0 | |
ant test-init | |
while [ "$?" -eq "0" ] ; do | |
i=`expr $i + 1` | |
ant -Dtest.output="$test_output" -Dtestcase="$testcase" junit.run | |
done | |
echo "test:' $testcase ' failed on iteration $i." | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment