summaryrefslogblamecommitdiff
path: root/tools/ci/scripts/separateunittests.sh
blob: 493ce4ab46f06a3a35499d9b02037f66af66302e (plain) (tree)
1
2
3
4
5
6
7
8
9
                   







                                                 

                       



                           
                           
                   



                                                                               
#!/usr/bin/env 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)"
    silent_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