Skip to content

Commit cec35a3

Browse files
committed
add repeat test script
1 parent 4d78c0e commit cec35a3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

repeatTest.bash

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
# recommended to build test binary separately and then run it in a loop (to avoid running cabal test in a loop)
4+
# Run tests in a loop
5+
for i in {1..500}; do
6+
echo "Iteration $i" &&
7+
HLS_TEST_LOG_STDERR=1 TASTY_PATTERN="simple-multi-def-test" cabal test ghcide-tests \
8+
|| {
9+
echo "Warning: error at iteration $i"
10+
break
11+
}; done

0 commit comments

Comments
 (0)