ci: add timeout to coarray test
This commit is contained in:
parent
f6ad5d1398
commit
a911a237ad
|
@ -2,10 +2,9 @@ project('Fortran coarray', 'fortran',
|
||||||
meson_version: '>=0.50')
|
meson_version: '>=0.50')
|
||||||
|
|
||||||
fc = meson.get_compiler('fortran')
|
fc = meson.get_compiler('fortran')
|
||||||
fcid = fc.get_id()
|
|
||||||
|
|
||||||
if ['pgi', 'flang'].contains(fcid)
|
if ['pgi', 'flang'].contains(fc.get_id())
|
||||||
error('MESON_SKIP_TEST: At least through PGI 19.4 and Flang 7.1 do not support Fortran Coarrays.')
|
error('MESON_SKIP_TEST: At least through PGI 19.10 and Flang 7.1 do not support Fortran Coarrays.')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# coarray is required because single-image fallback is an intrinsic feature
|
# coarray is required because single-image fallback is an intrinsic feature
|
||||||
|
@ -15,12 +14,11 @@ coarray = dependency('coarray')
|
||||||
# for example, conflicting library/compiler versions on PATH
|
# for example, conflicting library/compiler versions on PATH
|
||||||
# this has to invoke a run of "sync all" to verify the MPI stack is functioning,
|
# this has to invoke a run of "sync all" to verify the MPI stack is functioning,
|
||||||
# particularly for dynamic linking
|
# particularly for dynamic linking
|
||||||
coarray_ok = fc.run('sync all; end', dependencies: coarray, name: 'Coarray link & run').returncode() == 0
|
if fc.run('sync all; end', dependencies: coarray, name: 'Coarray link & run').returncode() != 0
|
||||||
if not coarray_ok
|
error('The coarray stack (including MPI) did not link correctly so that a simple test could run.')
|
||||||
error('MESON_SKIP_TEST: The coarray stack (including MPI) did not link correctly so that a simple test could run.')
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
exe = executable('hello', 'main.f90',
|
exe = executable('hello', 'main.f90',
|
||||||
dependencies : coarray)
|
dependencies : coarray)
|
||||||
|
|
||||||
test('Coarray hello world', exe)
|
test('Coarray hello world', exe, timeout: 10)
|
||||||
|
|
Loading…
Reference in New Issue