Skip to content

Commit

Permalink
Docker: Redirect build log in test_coverage.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Oct 29, 2021
1 parent d67e3fe commit a1e222f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tools/docker/scripts/test_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,23 @@ VERSION=$1
# shellcheck disable=SC1091
source /opt/cp2k-toolchain/install/setup

echo -e "\n========== Running Regtests =========="
cd /workspace/cp2k || exit 1
CP2K_REVISION=$(./tools/build_utils/get_revision_number ./src)
rm -rf "obj/${ARCH}/${VERSION}"/*.gcda # remove old gcov statistics

# Compile cp2k.
echo -en "\nCompiling cp2k... "
if make -j ARCH="${ARCH}" VERSION="${VERSION}" &> make.out; then
echo "done."
else
echo -e "failed.\n\n"
tail -n 100 make.out
echo -e "\nSummary: Compilation failed."
echo -e "Status: FAILED\n"
exit 0
fi

echo -e "\n========== Running Regtests =========="
make ARCH="${ARCH}" VERSION="${VERSION}" TESTOPTS="${TESTOPTS}" test

# gcov gets stuck on some files...
Expand Down

0 comments on commit a1e222f

Please sign in to comment.