summaryrefslogtreecommitdiff
path: root/test cases/native
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/native')
-rw-r--r--test cases/native/9 override with exe/subprojects/sub/meson.build10
1 files changed, 9 insertions, 1 deletions
diff --git a/test cases/native/9 override with exe/subprojects/sub/meson.build b/test cases/native/9 override with exe/subprojects/sub/meson.build
index f0343b2c0..74deaeadc 100644
--- a/test cases/native/9 override with exe/subprojects/sub/meson.build
+++ b/test cases/native/9 override with exe/subprojects/sub/meson.build
@@ -1,3 +1,11 @@
-project('sub', 'c', version : '1.0')
+project('sub', 'c', version : '1.0', meson_version: '>= 1.9.0')
foobar = executable('foobar', 'foobar.c', native : true)
meson.override_find_program('foobar', foobar)
+
+found_foobar = find_program('foobar')
+if found_foobar.version() != meson.project_version()
+ error('Overriden Executable had incorrect version: got @0@, expected @1@'.format(found_foobar.version(), meson.project_version()))
+endif
+
+test('foobar executable', foobar, args : [ meson.current_build_dir() / 'test-output.c' ])
+test('overriden foobar executable', found_foobar, args : [ meson.current_build_dir() / 'test-output.c' ])