From cec35a3baf48a8c120be1bee8a9aa302fd3df9ea Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 29 May 2024 20:23:58 +0800 Subject: [PATCH] add repeat test script --- repeatTest.bash | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 repeatTest.bash diff --git a/repeatTest.bash b/repeatTest.bash new file mode 100755 index 0000000000..d6ad6cb21e --- /dev/null +++ b/repeatTest.bash @@ -0,0 +1,11 @@ +#!/bin/bash + +# recommended to build test binary separately and then run it in a loop (to avoid running cabal test in a loop) +# Run tests in a loop +for i in {1..500}; do + echo "Iteration $i" && + HLS_TEST_LOG_STDERR=1 TASTY_PATTERN="simple-multi-def-test" cabal test ghcide-tests \ + || { + echo "Warning: error at iteration $i" + break + }; done