diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2017-04-10 16:46:35 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-04-10 16:57:32 -0700 |
commit | 3e1436683402ca285522e05423ea0705707d987d (patch) | |
tree | a3e9e76cf67f619545418f27d3e23df83bea9989 /test | |
parent | 001b7dc1943e612763fd0ad59485631ba5637cbe (diff) |
Build tests by default.
Diffstat (limited to 'test')
-rw-r--r-- | test/meson.build | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/meson.build b/test/meson.build index 7f07e65..44c0eb4 100644 --- a/test/meson.build +++ b/test/meson.build @@ -14,13 +14,12 @@ td += executable('test_syscalls', 'test_syscalls.c', include_directories: include_dirs, install: false) -# Actual tests are written in Python and can simply be copied. -foreach fname : [ 'conftest.py', 'pytest.ini', 'test_examples.py', - 'util.py' ] - td += custom_target(fname, input: fname, output: fname, - command: ['cp', '-fPu', '--preserve=mode', - '@INPUT@', '@OUTPUT@']) -endforeach +test_scripts = [ 'conftest.py', 'pytest.ini', 'test_examples.py', + 'util.py' ] +td += custom_target('test_scripts', input: test_scripts, + output: test_scripts, build_by_default: true, + command: ['cp', '-fPu', '--preserve=mode', + '@INPUT@', meson.current_build_dir() ]) # Create a new 'tests' target that we can run with Ninja run_target('tests', depends: td, |