diff options
Diffstat (limited to 'tools/ci/scripts/runtests.sh')
-rwxr-xr-x | tools/ci/scripts/runtests.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tools/ci/scripts/runtests.sh b/tools/ci/scripts/runtests.sh new file mode 100755 index 000000000..80809fc55 --- /dev/null +++ b/tools/ci/scripts/runtests.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +export SDL_VIDEODRIVER="dummy" +ulimit -c unlimited -S +ulimit -c unlimited +rm -rf core* + +echo "clean config runs" +n=0 +while true; do + echo "run test ${n}" + rm "${HOME}/.config/mana/mana/config.xml" + rm "/root/.config/mana/mana/config.xml" + ./tools/ci/scripts/runtest.sh + if [ "$?" != 0 ]; then + exit 1 + fi + if [[ $n -ge 5 ]]; then + exit 0 + fi + sleep 5s + n=$((n+1)) +done + +echo "existing config runs" +n=0 +while true; do + echo "run test ${n}" + ./tools/ci/scripts/runtest.sh + if [ "$?" != 0 ]; then + exit 1 + fi + if [[ $n -ge 5 ]]; then + exit 0 + fi + sleep 5s + n=$((n+1)) +done |