Set env vars so MS-MPI tests are run

Import MS-MPI env vars set by installer in registry to environment

Skip testing we can apply a version constraint to MPI when version isn't
known (as is the case for MS-MPI)

(These tests have never worked in appveyor)
pull/4340/head
Jon Turney 6 years ago
parent 9717fb8164
commit efa55c9e1c
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81
  1. 6
      ci/azure-steps.yml
  2. 4
      test cases/frameworks/17 mpi/meson.build

@ -39,6 +39,12 @@ steps:
Start-Process msiexec.exe -ArgumentList '/i msmpisdk.msi /quiet' -Wait
Start-Process .\MSMpiSetup.exe -ArgumentList '-unattend -full' -Wait
# import ms-mpi env vars (set by installer)
foreach ($p in "MSMPI_INC", "MSMPI_LIB32", "MSMPI_LIB64") {
$v = [Environment]::GetEnvironmentVariable($p, "Machine")
Set-Content "env:$p" "$v"
}
# add downloads to PATH
$env:Path = "$env:SYSTEM_WORKFOLDER;$env:Path"

@ -44,4 +44,6 @@ if uburesult.returncode() != 0 and add_languages('fortran', required : false)
endif
# Check we can apply a version constraint
dependency('mpi', version: '>=@0@'.format(mpic.version()))
if mpic.version() != 'unknown'
dependency('mpi', version: '>=@0@'.format(mpic.version()))
endif

Loading…
Cancel
Save