aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-06-18 23:50:33 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-06-18 23:50:33 +0300
commite4b17ff3e80726d903d75161cc061820d606e0db (patch)
treeccb36770069f50b8a86a373c58d868acf268feea
parent4187b0b6c8e1b8f4af819260e1aef7878d001597 (diff)
downloadmeson-e4b17ff3e80726d903d75161cc061820d606e0db.zip
meson-e4b17ff3e80726d903d75161cc061820d606e0db.tar.gz
meson-e4b17ff3e80726d903d75161cc061820d606e0db.tar.bz2
Add Rust to main test suite.
-rwxr-xr-xrun_tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/run_tests.py b/run_tests.py
index 5820276..16f621b 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -188,6 +188,10 @@ def run_tests():
valatests = gather_tests('test cases/vala')
else:
valatests = []
+ if shutil.which('rustc'):
+ rusttests = gather_tests('test cases/rust')
+ else:
+ rusttests = []
if not environment.is_windows():
objctests = gather_tests('test cases/objc')
else:
@@ -229,6 +233,11 @@ def run_tests():
[run_and_log(logfile, t) for t in valatests]
else:
print('\nNot running Vala tests.\n')
+ if len(rusttests) > 0:
+ print('\nRunning Rust tests.\n')
+ [run_and_log(logfile, t) for t in rusttests]
+ else:
+ print('\nNot running Rust tests.\n')
if len(objctests) > 0:
print('\nRunning extra language tests.\n')
[run_and_log(logfile, t) for t in objctests]