aboutsummaryrefslogtreecommitdiffstats
path: root/test/meson.build
diff options
context:
space:
mode:
authorAhmed Masud <ahmed.masud@trustifier.com>2018-10-19 17:17:48 -0400
committerNikolaus Rath <Nikolaus@rath.org>2018-10-19 14:17:48 -0700
commit078ef6641c3c36946fab22d0d4c8e330d2b4d518 (patch)
tree3f67ca5c656a0852a2d8aea2d2fec4aacee53ec0 /test/meson.build
parente469e1f8d19408e83d30aa1cfab06dd133304ad8 (diff)
downloadlibfuse-078ef6641c3c36946fab22d0d4c8e330d2b4d518.tar.gz
Do not fail "ninja test" when running as subproject
Diffstat (limited to 'test/meson.build')
-rw-r--r--test/meson.build12
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