Fix minimal regression test (#4093)

This commit is contained in:
Matthias Krack 2025-03-23 07:14:19 +01:00 committed by GitHub
parent 9754b872e6
commit 89b733dd1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 3 deletions

View file

@ -26,7 +26,7 @@ cd dbcsr-${DBCSR_ver}
mkdir build
cd build
if [[ "${PROFILE}" == "toolchain" ]]; then
if [[ "${PROFILE}" =~ ^toolchain ]]; then
if [[ -f "${TOOLCHAIN_DIR}/install/setup" ]]; then
# shellcheck disable=SC1091
source "${TOOLCHAIN_DIR}/install/setup"

View file

@ -34,9 +34,9 @@ export OMP_STACKSIZE=64m
export COSMA_DIM_THRESHOLD=0
# Load Spack or Toolchain environment.
if [[ "${PROFILE}" == "spack" ]]; then
if [[ "${PROFILE}" =~ ^spack ]]; then
eval "$(spack env activate myenv --sh)"
elif [[ "${PROFILE}" == "toolchain" ]]; then
elif [[ "${PROFILE}" =~ ^toolchain ]]; then
# shellcheck disable=SC1091
source /opt/cp2k-toolchain/install/setup
fi