summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/ci/jobs/gcc5_sanitize_tests.sh2
-rwxr-xr-xtools/ci/jobs/gcc5_sdl2_tests.sh2
-rwxr-xr-xtools/ci/jobs/gcc5_tests.sh2
-rwxr-xr-xtools/ci/jobs/gcc6_tests.sh2
-rwxr-xr-xtools/ci/scripts/init.sh12
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" != "" ];