Skip to content

Commit

Permalink
tests: run also fortran and cxx tests
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Reber <[email protected]>
  • Loading branch information
adrianreber committed Jun 20, 2023
1 parent 98be98f commit 35cb103
Showing 1 changed file with 81 additions and 0 deletions.
81 changes: 81 additions & 0 deletions tests/libs/netcdf/ohpc-tests/netcdf_all_test_mpi_families
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#!/bin/bash
# -*-sh-*-

# shellcheck disable=SC1091

export MAKEFLAGS=""

status=0

source ./common/TEST_ENV || exit 1
source ./common/functions || exit 1

cd libs/netcdf || exit 1
export BATS_JUNIT_CLASS=NetCDF

# bootstrap the local autotools project if necessary
./bootstrap || exit 1

if [ -n "${SIMPLE_CI}" ]; then
export OMPI_MCA_btl="self,tcp"
fi

for compiler in ${COMPILER_FAMILIES} ; do
for mpi in ${MPI_FAMILIES} ; do
export PARALLEL_ENABLED=yes
export ALL_ENABLED=yes
echo " "
echo " "
echo "----------------------------------------------------------"
echo "User Libraries: NetCDF tests: ${compiler}-${mpi}"
echo "----------------------------------------------------------"

module purge || exit 1
module load prun || exit 1
module load "${compiler}" || exit 1
module load "${mpi}" || exit 1
module load netcdf || exit 1
module load netcdf-cxx || exit 1
module load netcdf-fortran || exit 1

./configure --enable-all || exit 1
make clean || exit 1
make -k check || status=1

save_logs_mpi_family tests "${compiler}" "${mpi}"
save_logs_mpi_family tests-parallel "${compiler}" "${mpi}"

make distclean
unset PARALLEL_ENABLED
unset ALL_ENABLED
done

export PARALLEL_ENABLED=no
#export ALL_ENABLED=yes
export ALL_ENABLED=no
echo " "
echo " "
echo "----------------------------------------------------------"
echo "User Libraries: NetCDF tests: ${compiler}"
echo "----------------------------------------------------------"

module purge || exit 1
module load prun || exit 1
module load "${compiler}" || exit 1
module load netcdf || exit 1
#module load netcdf-cxx || exit 1
#module load netcdf-fortran || exit 1

# --enable-all
./configure --disable-parallel || exit 1
make clean || exit 1
make -k check || status=1

save_logs_compiler_family tests "${compiler}"

make distclean
unset PARALLEL_ENABLED
unset ALL_ENABLED
done

exit "${status}"

0 comments on commit 35cb103

Please sign in to comment.