cp2k/tools/docker/scripts/test_build.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
393 B
Bash
Raw Permalink Normal View History

2022-03-19 21:30:22 +01:00
#!/bin/bash
# author: Ole Schuett
if (($# != 2)); then
echo "Usage: test_build.sh <PROFILE> <VERSION>"
2022-03-19 21:30:22 +01:00
exit 1
fi
VERSION=$2
if [ -f build/bin/cp2k."${VERSION}" ]; then
2022-03-19 21:30:22 +01:00
echo -e "\nSummary: Compilation works fine."
echo -e "Status: OK\n"
else
echo -e "\nSummary: Compilation failed."
echo -e "Status: FAILED\n"
fi
exit 0 # Prevent CI from overwriting our summary message.
#EOF