diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-10 19:29:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-10 19:29:39 +0300 |
commit | 6524f86be0e1d05ac27a3cb64b163713304d30d8 (patch) | |
tree | 09aa0d21dddf312418b70f371da313b9588e472b /tools/ci | |
parent | 556e081363da7255fd8c0fea65aeab887b6aa5f8 (diff) | |
download | manaverse-6524f86be0e1d05ac27a3cb64b163713304d30d8.tar.gz manaverse-6524f86be0e1d05ac27a3cb64b163713304d30d8.tar.bz2 manaverse-6524f86be0e1d05ac27a3cb64b163713304d30d8.tar.xz manaverse-6524f86be0e1d05ac27a3cb64b163713304d30d8.zip |
Improve error checks in tests ci scripts.
Diffstat (limited to 'tools/ci')
-rwxr-xr-x | tools/ci/jobs/gcc5_sanitize_tests.sh | 2 | ||||
-rwxr-xr-x | tools/ci/jobs/gcc5_sdl2_tests.sh | 2 | ||||
-rwxr-xr-x | tools/ci/jobs/gcc5_tests.sh | 2 | ||||
-rwxr-xr-x | tools/ci/jobs/gcc6_tests.sh | 2 | ||||
-rwxr-xr-x | tools/ci/scripts/init.sh | 12 |
5 files changed, 16 insertions, 4 deletions
diff --git a/tools/ci/jobs/gcc5_sanitize_tests.sh b/tools/ci/jobs/gcc5_sanitize_tests.sh index 18e29e7ad..05f1a93f0 100755 --- a/tools/ci/jobs/gcc5_sanitize_tests.sh +++ b/tools/ci/jobs/gcc5_sanitize_tests.sh @@ -57,7 +57,7 @@ do_init run_configure --enable-unittests=yes export SDL_VIDEODRIVER=dummy export ASAN_OPTIONS=detect_leaks=0 -run_make check +run_make_check source ./tools/ci/scripts/exit.sh diff --git a/tools/ci/jobs/gcc5_sdl2_tests.sh b/tools/ci/jobs/gcc5_sdl2_tests.sh index 36bce38cd..cf38a9e60 100755 --- a/tools/ci/jobs/gcc5_sdl2_tests.sh +++ b/tools/ci/jobs/gcc5_sdl2_tests.sh @@ -47,7 +47,7 @@ export CXXFLAGS="-ggdb3 -O2 -pipe -ffast-math \ do_init run_configure --with-sdl2 --enable-unittests=yes export SDL_VIDEODRIVER=dummy -run_make check +run_make_check source ./tools/ci/scripts/exit.sh diff --git a/tools/ci/jobs/gcc5_tests.sh b/tools/ci/jobs/gcc5_tests.sh index c0cf89176..e21b2b33c 100755 --- a/tools/ci/jobs/gcc5_tests.sh +++ b/tools/ci/jobs/gcc5_tests.sh @@ -47,7 +47,7 @@ export CXXFLAGS="-ggdb3 -O2 -pipe -ffast-math \ do_init run_configure --enable-unittests=yes export SDL_VIDEODRIVER=dummy -run_make check +run_make_check source ./tools/ci/scripts/exit.sh diff --git a/tools/ci/jobs/gcc6_tests.sh b/tools/ci/jobs/gcc6_tests.sh index e9a315db6..b93d56a6b 100755 --- a/tools/ci/jobs/gcc6_tests.sh +++ b/tools/ci/jobs/gcc6_tests.sh @@ -20,7 +20,7 @@ source ./tools/ci/flags/gcc6.sh do_init run_configure --enable-unittests=yes export SDL_VIDEODRIVER=dummy -run_make check +run_make_check source ./tools/ci/scripts/exit.sh diff --git a/tools/ci/scripts/init.sh b/tools/ci/scripts/init.sh index 7f48bb0aa..ad086d705 100755 --- a/tools/ci/scripts/init.sh +++ b/tools/ci/scripts/init.sh @@ -146,6 +146,18 @@ function run_make { check_error $? } +function run_make_check { + rm $ERRFILE + echo "make -j2 V=0 check $*" + make -j2 V=0 check $* 2>$ERRFILE + export ERR=$? + if [ "${ERR}" != 0 ]; then + cat $ERRFILE + cat src/manaplustests.log + exit ${ERR} + fi +} + function run_check_warnings { DATA=$(cat $ERRFILE) if [ "$DATA" != "" ]; |