Skip to content

Commit

Permalink
Run tests in build directory
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Jørgen Nordmoen committed May 10, 2021
1 parent da774cb commit cedf1ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tests/fuk95/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)

2 changes: 1 addition & 1 deletion tests/single_column/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit cedf1ef

Please sign in to comment.