Commit 12b025c6e1e2b740bd5d6a814749a38cef290bfd

Thomas de Grivel 2024-07-24T23:52:00

launch all tests in parallel

diff --git a/test/ikc3_test b/test/ikc3_test
index 6db0875..d275dbb 100755
--- a/test/ikc3_test
+++ b/test/ikc3_test
@@ -41,8 +41,6 @@ fi
 rm -f *.diff *.out *.ret
 rm -f .test .test_ko .test_ok
 touch .test .test_ko .test_ok
-TARGET_COUNT=8
-TARGET_I=0
 for TARGET in $TARGETS; do
     (
         RESULT=test_ok
@@ -65,11 +63,7 @@ for TARGET in $TARGETS; do
             test_ko ${TARGET}
         fi
     ) &
-    TARGET_I=$(($TARGET_I + 1))
-    if [ "x$TARGET_I" = "x$TARGET_COUNT" ]; then
-        wait
-        TARGET_I=0
-    fi
+    sleep 2
 done
 wait
 TEST_COUNT=$(echo $(wc -l .test) | cut -f 1 -d ' ')