From 0e3d6b91e330a1f2c2f54031b87db9474da4e45c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 27 Apr 2017 21:51:13 +0300 Subject: Add script for run manaplus binary many times until error detected. --- tools/ci/scripts/runtest.sh | 5 ----- tools/ci/scripts/runtests.sh | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 5 deletions(-) create mode 100755 tools/ci/scripts/runtests.sh (limited to 'tools/ci/scripts') diff --git a/tools/ci/scripts/runtest.sh b/tools/ci/scripts/runtest.sh index 2c5a8a012..80b54a0ff 100755 --- a/tools/ci/scripts/runtest.sh +++ b/tools/ci/scripts/runtest.sh @@ -1,10 +1,5 @@ #!/bin/bash -export SDL_VIDEODRIVER="dummy" -ulimit -c unlimited -S -ulimit -c unlimited -rm -rf core* - ./src/manaplus --renderer=0 >logs/run.log 2>&1 & export PID=$! sleep 12s 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 -- cgit v1.2.3-70-g09d2