Skip to content

Commit 90c1a71

Browse files
mgornyeli-schwartz
authored andcommitted
hdf5: Skip failing Fortran config-tool test when h5fc is broken
Skip the hdf5 Fortran config-tool test when running on CI and h5fc looks broken. This is needed due to upstream bug that h5fc does not include include paths when built via CMake, that currently affects at least Arch Linux and Gentoo. Bug: HDFGroup/hdf5#5660 Signed-off-by: Michał Górny <[email protected]> (cherry picked from commit 23e4901)
1 parent 77eaf12 commit 90c1a71

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test cases/frameworks/25 hdf5/meson.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,18 @@ test_fortran = add_languages('fortran', required: false)
2828
if test_fortran
2929
cpp = meson.get_compiler('cpp')
3030
fc = meson.get_compiler('fortran')
31+
fs = import('fs')
3132

3233
if host_machine.system() == 'darwin' and cpp.get_id() == 'clang' and fc.get_id() == 'gcc'
3334
# Search paths don't work correctly here and -lgfortran doesn't work
3435
test_fortran = false
3536
elif host_machine.system() == 'windows' and cpp.get_id() != 'gcc' and fc.get_id() == 'gcc'
3637
# mixing gfortran with non-gcc doesn't work on windows
3738
test_fortran = false
39+
elif fs.is_dir('/ci') and '-I' not in run_command('h5fc', '-show').stdout()
40+
# h5fc does not include needed -I flags when HDF5 is built using CMake
41+
# https://github.com/HDFGroup/hdf5/issues/5660
42+
test_fortran = false
3843
endif
3944

4045
# --- Fortran tests

0 commit comments

Comments
 (0)