skip CI for HDF5 where HDF5 is not available"
This commit is contained in:
parent
4d54a22b49
commit
bd82d3702a
|
@ -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…
Reference in New Issue