summaryrefslogtreecommitdiff
path: root/tools/ci/scripts/separateunittests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ci/scripts/separateunittests.sh')
-rwxr-xr-xtools/ci/scripts/separateunittests.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/ci/scripts/separateunittests.sh b/tools/ci/scripts/separateunittests.sh
new file mode 100755
index 000000000..9db32ead8
--- /dev/null
+++ b/tools/ci/scripts/separateunittests.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+export LIST=./logs/testslist.txt
+
+./tools/ci/scripts/gettests.py >${LIST} || exit 1
+
+IFS='
+'
+
+for str in $(cat ${LIST})
+do
+ unset IFS
+ declare -a "arr=($str)"
+ echo ./src/manaplustests --test-case=\"${arr[0]}\" --subcase=\"${arr[1]}\"
+ ./src/manaplustests --test-case="${arr[0]}" --subcase="${arr[1]}" || exit 1
+done
+