summaryrefslogtreecommitdiff
path: root/tools/ci/scripts/separateunittests.sh
blob: 6e69069e839540dea83d0db97ab3d7578308afff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

export LIST=./logs/testslist.txt

./tools/ci/scripts/gettests.py >${LIST} || exit 1

IFS='
'

export HOME="logs/home"

for str in $(cat ${LIST})
do
    unset IFS
    declare -a "arr=($str)"
    rm -rf "${HOME}"
    mkdir "${HOME}"
    echo ./src/manaplustests --test-case=\"${arr[0]}\" --subcase=\"${arr[1]}\"
    ./src/manaplustests --test-case="${arr[0]}" --subcase="${arr[1]}" || exit 1
done