summaryrefslogtreecommitdiff
path: root/test cases/unit
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-06-29 17:12:49 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-07-01 13:59:48 +0000
commitae8d044cb6dca20c1d6504a27660bcbed16db438 (patch)
tree9e014e61387e087c5e7efc09499efff1f4af7306 /test cases/unit
parent6bdacba001739983a9e5b7f78ba9d33ac7ebe6c9 (diff)
downloadmeson-ae8d044cb6dca20c1d6504a27660bcbed16db438.tar.gz
Allow command lists for find_program cross file overrides
This is accepted by all other binaries in the cross file. With this change, we also don't check whether the specified command exists at configure time, but that's probably a feature anyway. Fixes https://github.com/mesonbuild/meson/issues/3737
Diffstat (limited to 'test cases/unit')
-rw-r--r--test cases/unit/12 cross prog/meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/test cases/unit/12 cross prog/meson.build b/test cases/unit/12 cross prog/meson.build
index e62870130..a7adeb284 100644
--- a/test cases/unit/12 cross prog/meson.build
+++ b/test cases/unit/12 cross prog/meson.build
@@ -2,11 +2,15 @@ project('cross find program', 'c')
native_exe = find_program('sometool.py', native : true)
cross_exe = find_program('sometool.py')
+cross_other_exe = find_program('someothertool.py')
native_out = run_command(native_exe).stdout().strip()
cross_out = run_command(cross_exe).stdout().strip()
+cross_other_out = run_command(cross_other_exe).stdout().strip()
assert(native_out == 'native',
'Native output incorrect:' + native_out)
assert(cross_out == 'cross',
'Cross output incorrect:' + cross_out)
+assert(cross_out == cross_other_out,
+ 'Cross output incorrect:' + cross_other_out)