From 3feea2ff1fee4ef9662ae1f148f7bfc2938fdc73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Sch=C3=BCtt?= Date: Wed, 24 Apr 2019 15:41:39 +0200 Subject: [PATCH] Docker: Ignore errors in install_regtest.sh --- tools/docker/scripts/install_regtest.sh | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/tools/docker/scripts/install_regtest.sh b/tools/docker/scripts/install_regtest.sh index 0b80e16c21..ff2278f309 100755 --- a/tools/docker/scripts/install_regtest.sh +++ b/tools/docker/scripts/install_regtest.sh @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash # author: Ole Schuett @@ -19,12 +19,25 @@ source /opt/cp2k-toolchain/install/setup # pre-build cp2k cd /workspace/cp2k -make -j ARCH="${ARCH}" VERSION="${VERSION}" +echo -n "Trying to compile... " +if make -j ARCH="${ARCH}" VERSION="${VERSION}" &> /dev/null ; then + echo "done." +else + echo "failed." +fi + # run regtests which lack fixed reference value # Disable LeakSanitizer during docker build as it requires ptrace capabilities. export LSAN_OPTIONS="detect_leaks=0" -make test ARCH="${ARCH}" VERSION="${VERSION}" TESTOPTS="-restrictdir QS/regtest-almo-md -restrictdir QS/regtest-almo-1 -restrictdir SE/regtest-3-4 -restrictdir QS/regtest-ot-1-vib -restrictdir Fist/regtest-5-vib -restrictdir QS/regtest-optbas -restrictdir TMC/regtest_ana_post_proc" +echo -n "Trying to run regtests which lack reference values... " +if make test ARCH="${ARCH}" VERSION="${VERSION}" TESTOPTS="-restrictdir QS/regtest-almo-md -restrictdir QS/regtest-almo-1 -restrictdir SE/regtest-3-4 -restrictdir QS/regtest-ot-1-vib -restrictdir Fist/regtest-5-vib -restrictdir QS/regtest-optbas -restrictdir TMC/regtest_ana_post_proc" &> /dev/null ; then + echo "done." +else + echo "failed." +fi + +# remove binaries to reduce image size rm -rf lib exe "regtesting/${ARCH}/${VERSION}"/TEST-* #EOF