skip CI for HDF5 where HDF5 is not available"

pull/4831/head
Michael Hirsch, Ph.D 6 years ago
parent 4d54a22b49
commit bd82d3702a
No known key found for this signature in database
GPG Key ID: 6D23CDADAB0294F9
  1. 4
      test cases/frameworks/25 hdf5/main.c
  2. 4
      test cases/frameworks/25 hdf5/main.cpp
  3. 23
      test cases/frameworks/25 hdf5/meson.build

@ -6,9 +6,7 @@
int main(void)
{
herr_t ier;
unsigned maj;
unsigned min;
unsigned rel;
unsigned maj, min, rel;
ier = H5open();
if (ier) {

@ -5,9 +5,7 @@
int main(void)
{
herr_t ier;
unsigned maj;
unsigned min;
unsigned rel;
unsigned maj, min, rel;
ier = H5open();
if (ier) {

@ -1,4 +1,12 @@
project('hdf5_test', 'c', 'cpp', 'fortran')
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
# --- C tests
@ -20,12 +28,15 @@ test('HDF5 C++', execpp)
# --- Fortran tests
h5f = dependency('hdf5', language : 'fortran')
exef = executable('exef', 'main.f90',
dependencies : h5f)
test('HDF5 Fortran', exef)
if build_machine.system() != 'windows'
add_languages('fortran')
h5f = dependency('hdf5', language : 'fortran')
exef = executable('exef', 'main.f90',
dependencies : h5f)
test('HDF5 Fortran', exef)
endif
# Check we can apply a version constraint
if h5c.version() != 'unknown'

Loading…
Cancel
Save