Permalink
Browse files

Add testloop script

  • Loading branch information...
1 parent 6b2d3ba commit 610ff1aa2990c7e8e3b698d4b16c634a83a3468a @andreyvit andreyvit committed Aug 8, 2010
Showing with 11 additions and 0 deletions.
  1. +11 −0 testloop
View
@@ -0,0 +1,11 @@
+#! /bin/bash
+N=20
+test -n "$1" && N=$1
+: >/tmp/failures
+for (( i = 1; i <= N; i++ )); do
+ echo "*** ATTEMP $i ***"
+ rake test || echo "failed $i" >>/tmp/failures
+done
+cat /tmp/failures
+F=$(cat /tmp/failures | wc -l)
+echo "Failed $F of $N test runs ($(( F*100/N ))%)"

0 comments on commit 610ff1a

Please sign in to comment.