summaryrefslogtreecommitdiff
path: root/test cases/common
diff options
context:
space:
mode:
authorFredericHamel <frederic.hamel123@gmail.com>2017-07-20 05:25:59 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2017-07-20 12:25:59 +0300
commit6f4e5e96d87b4f28b0f2fc92edb854d1fd81cfdc (patch)
tree647e6bf291ccb7cb4e8df06e1c693e592935eb2b /test cases/common
parente89b6cdd1037d4c7cfdcb37555f2cbaf66f6ae05 (diff)
downloadmeson-6f4e5e96d87b4f28b0f2fc92edb854d1fd81cfdc.tar.gz
Allow test to depend on executable target in cross build. (#2007)
* Add a crossbuild case in 'test case/common/1 trivial/meson.build' * Add native flags for crossbuild tests.
Diffstat (limited to 'test cases/common')
-rw-r--r--test cases/common/1 trivial/meson.build5
1 files changed, 5 insertions, 0 deletions
diff --git a/test cases/common/1 trivial/meson.build b/test cases/common/1 trivial/meson.build
index a93de75da..67d6ed6a3 100644
--- a/test cases/common/1 trivial/meson.build
+++ b/test cases/common/1 trivial/meson.build
@@ -11,6 +11,11 @@ if meson.get_compiler('c').get_id() == 'intel'
add_project_arguments('-diag-error', '10159', language : 'c')
endif
+if meson.is_cross_build()
+ native_exe = executable('native-trivialprog', sources : sources, native : true)
+ test('native exe in cross build', native_exe)
+endif
+
exe = executable('trivialprog', sources : sources)
test('runtest', exe) # This is a comment