diff options
| author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-07-31 15:38:26 -0400 |
|---|---|---|
| committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-08-04 20:07:08 -0400 |
| commit | edb260b4f4e79433f38bdda11bc84fa5ee56b080 (patch) | |
| tree | d27b0f958319e46f5487b328019b34b704c1e809 /test cases/frameworks/17 mpi/meson.build | |
| parent | 4cbfb9a08dd8b89aaec7fffd4efbe3a542a67a3d (diff) | |
| download | meson-edb260b4f4e79433f38bdda11bc84fa5ee56b080.tar.gz | |
Move MPI tests into frameworks.
This prevents them being cross-compiled (which wouldn't work without MPI
cross-compilers) and disables Windows builds (will need to be fixed
later.)
Diffstat (limited to 'test cases/frameworks/17 mpi/meson.build')
| -rw-r--r-- | test cases/frameworks/17 mpi/meson.build | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test cases/frameworks/17 mpi/meson.build b/test cases/frameworks/17 mpi/meson.build new file mode 100644 index 000000000..5e9bc563d --- /dev/null +++ b/test cases/frameworks/17 mpi/meson.build @@ -0,0 +1,33 @@ +project('mpi', 'c', 'cpp') + +cc = meson.get_compiler('c') + +if build_machine.system() == 'windows' and cc.get_id() != 'msvc' + error('MESON_SKIP_TEST: MPI not available on Windows without MSVC.') +endif + +mpic = dependency('mpi', language : 'c') +exec = executable('exec', + 'main.c', + dependencies : [mpic]) + +test('MPI C', exec) + +if build_machine.system() != 'windows' + # C++ MPI not supported by MS-MPI used on AppVeyor. + mpicpp = dependency('mpi', language : 'cpp') + execpp = executable('execpp', + 'main.cpp', + dependencies : [mpicpp]) + + test('MPI C++', execpp) +endif + +if add_languages('fortran', required : false) + mpifort = dependency('mpi', language : 'fortran') + exef = executable('exef', + 'main.f90', + dependencies : [mpifort]) + + test('MPI Fortran', exef) +endif |
