summaryrefslogtreecommitdiff
path: root/tools/ci/scripts/init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ci/scripts/init.sh')
-rwxr-xr-xtools/ci/scripts/init.sh12
1 files changed, 12 insertions, 0 deletions
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" != "" ];