diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-10-29 00:07:44 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-10-29 00:07:44 +0300 |
commit | e292369ee20ed84337a52832d765ca544513dba3 (patch) | |
tree | 2aadd378721d25a3e86c1bd1ea2f694cc77f3b1d /test cases/frameworks/17 mpi | |
parent | a4db467669dcbc2e0501d9062eb359f0949895c4 (diff) | |
download | meson-e292369ee20ed84337a52832d765ca544513dba3.zip meson-e292369ee20ed84337a52832d765ca544513dba3.tar.gz meson-e292369ee20ed84337a52832d765ca544513dba3.tar.bz2 |
Do not run MPI Fortran tests on Ubuntu Artful.
Diffstat (limited to 'test cases/frameworks/17 mpi')
-rwxr-xr-x | test cases/frameworks/17 mpi/is_artful.py | 9 | ||||
-rw-r--r-- | test cases/frameworks/17 mpi/meson.build | 10 |
2 files changed, 18 insertions, 1 deletions
diff --git a/test cases/frameworks/17 mpi/is_artful.py b/test cases/frameworks/17 mpi/is_artful.py new file mode 100755 index 0000000..9d4512d --- /dev/null +++ b/test cases/frameworks/17 mpi/is_artful.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python3 + +# Any exception causes return value to be not zero, which is sufficient. + +import sys + +fc = open('/etc/apt/sources.list').read() +if 'artful' not in fc: + sys.exit(1) diff --git a/test cases/frameworks/17 mpi/meson.build b/test cases/frameworks/17 mpi/meson.build index 5e9bc56..17acd71 100644 --- a/test cases/frameworks/17 mpi/meson.build +++ b/test cases/frameworks/17 mpi/meson.build @@ -23,7 +23,15 @@ if build_machine.system() != 'windows' test('MPI C++', execpp) endif -if add_languages('fortran', required : false) +# OpenMPI is broken with Fortran on Ubuntu Artful. +# Remove this once the following bug has been fixed: +# +# https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1727474 + +ubudetector = find_program('is_artful.py') +uburesult = run_command(ubudetector) + +if uburesult.returncode() != 0 and add_languages('fortran', required : false) mpifort = dependency('mpi', language : 'fortran') exef = executable('exef', 'main.f90', |