-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: run also fortran and cxx tests
Signed-off-by: Adrian Reber <[email protected]>
- Loading branch information
1 parent
98be98f
commit 35cb103
Showing
1 changed file
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |