diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-23 21:53:10 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-23 21:53:10 +0000 |
commit | 0e546a79b205124d7b95b89e4a2e9cc520a4fc10 (patch) | |
tree | 791ae964c0dd4aba79cc9a3a6537db49c594cedf /script | |
parent | 2c97a42455edb338a4ffeb529c9dd08bdf2864e0 (diff) | |
parent | 000a4b3bc2858124301eb36553b018266cfe2cae (diff) |
Merge branch 'release/0.5' into develop
Diffstat (limited to 'script')
-rwxr-xr-x | script/spec-all-pairs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/script/spec-all-pairs b/script/spec-all-pairs new file mode 100755 index 000000000..0d83f5837 --- /dev/null +++ b/script/spec-all-pairs @@ -0,0 +1,20 @@ +#!/bin/bash + +# Try all ordered pairs of spec files, +# to winkle out order-dependent failures. + +specs=spec/*/*.rb + +for spec1 in $specs +do + seen=false + for spec2 in $specs + do + rake db:test:purge > /dev/null + rake db:test:clone_structure > /dev/null + if ! ( script/spec "$spec1" "$spec2" ) > /dev/null 2>&1 + then + echo "FAILED: $spec1 $spec2" + fi + done +done |