summaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-06-10 13:04:00 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-06-10 18:55:50 +0530
commit9308a6d923ecdfabb40d88e1590226172ea95e43 (patch)
tree26ffa6a115fcacb1ee0741c6d946f8a43d6abbbb /run_unittests.py
parentc1e9c757ebbe7a26b126ee8cb2106f6f8dffa322 (diff)
downloadmeson-9308a6d923ecdfabb40d88e1590226172ea95e43.tar.gz
tests: Add Boost unit tests and project tests on Windows
Boost tests are disabled on Windows for now because the detection is actually completely broken. Once that's fixed (after the release) we can enable it again.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index bcb55a230..dbfd63864 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1316,6 +1316,19 @@ class FailureTests(BasePlatformTests):
self.assertMesonRaises("dependency('llvm', modules : 'fail')",
"(required.*fail|{})".format(self.dnf))
+ def test_boost_notfound_dependency(self):
+ # Can be run even if Boost is found or not
+ self.assertMesonRaises("dependency('boost', modules : 1)",
+ "module.*not a string")
+ self.assertMesonRaises("dependency('boost', modules : 'fail')",
+ "(fail.*not found|{})".format(self.dnf))
+
+ def test_boost_BOOST_ROOT_dependency(self):
+ # Test BOOST_ROOT; can be run even if Boost is found or not
+ os.environ['BOOST_ROOT'] = 'relative/path'
+ self.assertMesonRaises("dependency('boost')",
+ "(BOOST_ROOT.*absolute|{})".format(self.dnf))
+
class WindowsTests(BasePlatformTests):
'''