diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2017-04-10 17:08:58 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-04-10 17:08:58 -0700 |
commit | e372d610badaf9ca017a749765faa07312a92c55 (patch) | |
tree | 7fa8c8fa8278dc0cbe33610295d29caf5e1488bb /test | |
parent | 3e1436683402ca285522e05423ea0705707d987d (diff) |
Remove 'tests' target in favor of calling py.test directly.
Together with the previous commit, this fixes #156.
Diffstat (limited to 'test')
-rw-r--r-- | test/meson.build | 7 | ||||
-rw-r--r-- | test/wrong_command.c | 5 |
2 files changed, 2 insertions, 10 deletions
diff --git a/test/meson.build b/test/meson.build index 44c0eb4..c5b940f 100644 --- a/test/meson.build +++ b/test/meson.build @@ -21,14 +21,7 @@ td += custom_target('test_scripts', input: test_scripts, 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, - command: [ 'python3', '-m', 'pytest', - meson.current_build_dir() ]) - - # Provide something helpful when running 'ninja test' wrong_cmd = executable('wrong_command', 'wrong_command.c', install: false) test('wrong_cmd', wrong_cmd) - diff --git a/test/wrong_command.c b/test/wrong_command.c index ef835b3..8366a98 100644 --- a/test/wrong_command.c +++ b/test/wrong_command.c @@ -3,8 +3,7 @@ int main(void) { fprintf(stderr, "\x1B[31m\e[1m" "This is not the command you are looking for.\n" - "You probably want to run 'ninja tests' instead " - "(note the 's' at the end).\n" - "\e[0m"); + "You probably want to run 'python3 -m pytest test/' instead" + "\e[0m\n"); return 1; } |