aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-06-21 13:37:02 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2019-06-22 00:09:30 +0300
commit9c68d8f3f245d84cc442a6a9f3fbd92ea7b6a3ed (patch)
tree170ed2c3389ed1bb0e4ce7561780b54447ce4a1d /test cases
parent94ca81b2289aa83af248d5127842e6f5e244e930 (diff)
downloadmeson-9c68d8f3f245d84cc442a6a9f3fbd92ea7b6a3ed.zip
meson-9c68d8f3f245d84cc442a6a9f3fbd92ea7b6a3ed.tar.gz
meson-9c68d8f3f245d84cc442a6a9f3fbd92ea7b6a3ed.tar.bz2
Run Rust shared library test via rustup to get the environment right.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/rust/2 sharedlib/meson.build9
1 files changed, 8 insertions, 1 deletions
diff --git a/test cases/rust/2 sharedlib/meson.build b/test cases/rust/2 sharedlib/meson.build
index 8f741aa..42f6e23 100644
--- a/test cases/rust/2 sharedlib/meson.build
+++ b/test cases/rust/2 sharedlib/meson.build
@@ -2,4 +2,11 @@ project('rust shared library', 'rust')
l = shared_library('stuff', 'stuff.rs', install : true)
e = executable('prog', 'prog.rs', link_with : l, install : true)
-test('linktest', e)
+
+if build_machine.system() == 'windows'
+ rustup = find_program('rustup')
+ test('linktest', rustup,
+ args: ['run', 'stable', e])
+else
+ test('linktest', e)
+endif