diff --git a/test cases/fortran/5 static/meson.build b/test cases/fortran/5 static/meson.build index bd74a2990..ab9d3c4b4 100644 --- a/test cases/fortran/5 static/meson.build +++ b/test cases/fortran/5 static/meson.build @@ -2,4 +2,5 @@ project('try-static-library', 'fortran') static_hello = static_library('static_hello', 'static_hello.f90') -executable('test_exe', 'main.f90', link_with : static_hello) +exe = executable('test_exe', 'main.f90', link_with : static_hello) +test('static-fortran', exe) diff --git a/test cases/fortran/6 dynamic/meson.build b/test cases/fortran/6 dynamic/meson.build index c791dac9f..e5e259fc8 100644 --- a/test cases/fortran/6 dynamic/meson.build +++ b/test cases/fortran/6 dynamic/meson.build @@ -1,4 +1,5 @@ project('dynamic_fortran', 'fortran') dynamic = shared_library('dynamic', 'dynamic.f90') -executable('test_exe', 'main.f90', link_with : dynamic) +exe = executable('test_exe', 'main.f90', link_with : dynamic) +test('dynamic-fortran', exe)