aboutsummaryrefslogtreecommitdiff
path: root/test cases/frameworks/17 mpi
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-10-29 00:07:44 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2017-10-29 00:07:44 +0300
commite292369ee20ed84337a52832d765ca544513dba3 (patch)
tree2aadd378721d25a3e86c1bd1ea2f694cc77f3b1d /test cases/frameworks/17 mpi
parenta4db467669dcbc2e0501d9062eb359f0949895c4 (diff)
downloadmeson-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-xtest cases/frameworks/17 mpi/is_artful.py9
-rw-r--r--test cases/frameworks/17 mpi/meson.build10
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',