diff options
Diffstat (limited to 'test/meson.build')
-rw-r--r-- | test/meson.build | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/meson.build b/test/meson.build index 69af767..5c5c2e6 100644 --- a/test/meson.build +++ b/test/meson.build @@ -19,6 +19,12 @@ td += custom_target('test_scripts', input: test_scripts, '@INPUT@', 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) + +if meson.is_subproject() + test('libfuse is a subproject, skipping tests', executable('wrong_command', + 'wrong_command.c', install: false, + c_args: [ '-DMESON_IS_SUBPROJECT' ])) +else + test('wrong_command', executable('wrong_command', 'wrong_command.c', + install: false)) +endif |