p4est, p4est-sc: fix checks with OpenMPI

Setting environment variables in preCheck to make MPI tests run.
This is one commit for two packages in order not to break the dependency.
This commit is contained in:
Carsten Burstedde 2021-07-05 19:59:57 +02:00
parent 94982e6f87
commit 65e659f0f4
No known key found for this signature in database
GPG key ID: 94563D7C039E3390
2 changed files with 11 additions and 5 deletions

View file

@ -42,12 +42,18 @@ stdenv.mkDerivation {
++ lib.optional mpiSupport "--enable-mpi" ++ lib.optional mpiSupport "--enable-mpi"
; ;
makeFlags = [ "V=0" ];
checkFlags = lib.optional isOpenmpi "-j1";
dontDisableStatic = true; dontDisableStatic = true;
enableParallelBuilding = true; enableParallelBuilding = true;
doCheck = !stdenv.isAarch64 && stdenv.hostPlatform == stdenv.buildPlatform; makeFlags = [ "V=0" ];
preCheck = ''
export OMPI_MCA_rmaps_base_oversubscribe=1
export HYDRA_IFACE=lo
'';
# disallow Darwin checks due to prototype incompatibility of qsort_r
# to be fixed in a future version of the source code
doCheck = !stdenv.isDarwin && stdenv.hostPlatform == stdenv.buildPlatform;
meta = { meta = {
branch = "prev3-develop"; branch = "prev3-develop";

View file

@ -40,7 +40,7 @@ stdenv.mkDerivation {
++ lib.optional withMetis "--with-metis" ++ lib.optional withMetis "--with-metis"
; ;
inherit (p4est-sc) makeFlags checkFlags dontDisableStatic enableParallelBuilding doCheck; inherit (p4est-sc) makeFlags dontDisableStatic enableParallelBuilding preCheck doCheck;
meta = { meta = {
branch = "prev3-develop"; branch = "prev3-develop";