summaryrefslogtreecommitdiff
path: root/test cases/frameworks
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/frameworks')
-rw-r--r--test cases/frameworks/25 hdf5/meson.build35
1 files changed, 11 insertions, 24 deletions
diff --git a/test cases/frameworks/25 hdf5/meson.build b/test cases/frameworks/25 hdf5/meson.build
index 903335467..20bc5cdc8 100644
--- a/test cases/frameworks/25 hdf5/meson.build
+++ b/test cases/frameworks/25 hdf5/meson.build
@@ -1,40 +1,27 @@
-project('hdf5_test', 'c', 'cpp')
-
-if build_machine.system() == 'darwin'
- error('MESON_SKIP_TEST: HDF5 CI image not setup for OSX.')
-endif
-
-if build_machine.system() == 'cygwin'
- error('MESON_SKIP_TEST: HDF5 CI image not setup for Cygwin.')
-endif
+project('hdf5_framework', 'c')
+# NOTE: all HDF5 languages must have HDF5 C library working.
# --- C tests
h5c = dependency('hdf5', language : 'c', required : false)
if not h5c.found()
- error('MESON_SKIP_TEST: HDF5 C library not found, skipping HDF5 framework tests.')
+ error('MESON_SKIP_TEST: HDF5 C library not found.')
endif
exec = executable('exec', 'main.c', dependencies : h5c)
-
-test('HDF5 C', exec)
+test('HDF5 C', exec, timeout: 30)
# --- C++ tests
-h5cpp = dependency('hdf5', language : 'cpp', required : false)
-if h5cpp.found()
+if add_languages('cpp')
+ h5cpp = dependency('hdf5', language : 'cpp', required : false, disabler: true)
execpp = executable('execpp', 'main.cpp', dependencies : h5cpp)
- test('HDF5 C++', execpp)
+ test('HDF5 C++', execpp, timeout: 30)
endif
# --- Fortran tests
-if build_machine.system() != 'windows'
- add_languages('fortran')
-
- h5f = dependency('hdf5', language : 'fortran', required : false)
- if h5f.found()
- exef = executable('exef', 'main.f90', dependencies : h5f)
-
- test('HDF5 Fortran', exef)
- endif
+if add_languages('fortran')
+ h5f = dependency('hdf5', language : 'fortran', required : false, disabler: true)
+ exef = executable('exef', 'main.f90', dependencies : h5f)
+ test('HDF5 Fortran', exef, timeout: 30)
endif
# Check we can apply a version constraint