From 89e97b05daf6fd98fce48cf3fef624e55905af46 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 30 Aug 2017 01:17:58 +0300 Subject: Add into .gitlab-ci.yml job for run separatly all unit tests. --- tools/ci/scripts/separateunittests.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tools/ci/scripts/separateunittests.sh (limited to 'tools/ci/scripts/separateunittests.sh') 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 + -- cgit v1.2.3-60-g2f50