mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 22:25:32 -04:00
Docker: Ignore errors in install_regtest.sh
This commit is contained in:
parent
9b854928f9
commit
3feea2ff1f
1 changed files with 16 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue