From ac91bc3e391836d11dfbe433cf78948e2fca5fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Sch=C3=BCtt?= Date: Fri, 16 Aug 2019 23:03:18 +0200 Subject: [PATCH] Docker: Make test_ase.sh, test_i-pi.sh, and test_aiida.sh less noisy --- tools/docker/scripts/test_aiida.sh | 10 +++++++++- tools/docker/scripts/test_ase.sh | 11 +++++++++-- tools/docker/scripts/test_i-pi.sh | 10 +++++++++- 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/tools/docker/scripts/test_aiida.sh b/tools/docker/scripts/test_aiida.sh index 428ae8739f..117a34e46e 100755 --- a/tools/docker/scripts/test_aiida.sh +++ b/tools/docker/scripts/test_aiida.sh @@ -7,7 +7,15 @@ source /opt/cp2k-toolchain/install/setup echo -e "\n========== Compiling CP2K ==========" cd /workspace/cp2k -make -j VERSION=pdbg cp2k +echo -n "Compiling cp2k... " +if make -j VERSION=pdbg &> /dev/null ; then + echo "done." +else + echo -e "failed.\n\n" + echo "Summary: Compilation failed." + echo "Status: FAILED" + exit +fi echo -e "\n========== Installing CP2K ==========" cat > /usr/bin/cp2k << EndOfMessage diff --git a/tools/docker/scripts/test_ase.sh b/tools/docker/scripts/test_ase.sh index 9f7b603f34..9632a5b88a 100755 --- a/tools/docker/scripts/test_ase.sh +++ b/tools/docker/scripts/test_ase.sh @@ -5,9 +5,16 @@ # shellcheck disable=SC1091 source /opt/cp2k-toolchain/install/setup -echo -e "\n========== Compiling CP2K ==========" cd /workspace/cp2k -make -j VERSION=pdbg +echo -n "Compiling cp2k... " +if make -j VERSION=pdbg &> /dev/null ; then + echo "done." +else + echo -e "failed.\n\n" + echo "Summary: Compilation failed." + echo "Status: FAILED" + exit +fi echo -e "\n========== Installing CP2K ==========" # The cp2k main binary is used by ase/test/cp2k/cp2k_dcd.py. diff --git a/tools/docker/scripts/test_i-pi.sh b/tools/docker/scripts/test_i-pi.sh index 01bcc22d63..b87ecddb4b 100755 --- a/tools/docker/scripts/test_i-pi.sh +++ b/tools/docker/scripts/test_i-pi.sh @@ -7,7 +7,15 @@ source /opt/cp2k-toolchain/install/setup echo -e "\n========== Compiling CP2K ==========" cd /workspace/cp2k -make -j VERSION=pdbg cp2k +echo -n "Compiling cp2k... " +if make -j VERSION=pdbg &> /dev/null ; then + echo "done." +else + echo -e "failed.\n\n" + echo "Summary: Compilation failed." + echo "Status: FAILED" + exit +fi echo -e "\n========== Installing i-Pi ==========" cd /opt/i-pi