skip CI for HDF5 where HDF5 is not available"

This commit is contained in:
Michael Hirsch, Ph.D 2019-01-31 10:49:36 -05:00
parent 4d54a22b49
commit bd82d3702a
No known key found for this signature in database
GPG Key ID: 6D23CDADAB0294F9
3 changed files with 19 additions and 12 deletions

View File

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

View File

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

View File

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