From cedf1ef98970b2b949a09c5f9c09fce6cb3a60c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Nordmoen?= Date: Mon, 10 May 2021 18:43:49 +0200 Subject: [PATCH] Run tests in build directory Change the 'workdir' variable (the folder where tests are run) to the current build directory. This necessitates a copy of the 'limits' configuration file as well. --- tests/fuk95/meson.build | 6 +++++- tests/single_column/meson.build | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/fuk95/meson.build b/tests/fuk95/meson.build index f57d9780..9a1751ea 100644 --- a/tests/fuk95/meson.build +++ b/tests/fuk95/meson.build @@ -5,6 +5,10 @@ dimension_fuk95 = configure_file( '-k', '12', '-d', meson.source_root() / 'bld'/ 'fuk95']) +configure_file(input: 'limits', + output: 'limits', + copy: true) + fuk95 = executable('fuk95_blom', sources, dimension_fuk95, include_directories: includes, @@ -15,7 +19,7 @@ fuk95 = executable('fuk95_blom', test('run fuk95', fuk95, is_parallel: false, should_fail: false, - workdir: meson.current_source_dir(), + workdir: meson.current_build_dir(), suite: 'fuk95', timeout: 900) diff --git a/tests/single_column/meson.build b/tests/single_column/meson.build index bd26d8f9..c3c23e51 100644 --- a/tests/single_column/meson.build +++ b/tests/single_column/meson.build @@ -15,5 +15,5 @@ single_column = executable('single_column_blom', test('run single_column', single_column, is_parallel: false, should_fail: true, - workdir: meson.current_source_dir(), + workdir: meson.current_build_dir(), suite: 'single_column')