diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-06-10 13:04:00 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-06-10 18:55:50 +0530 |
commit | 9308a6d923ecdfabb40d88e1590226172ea95e43 (patch) | |
tree | 26ffa6a115fcacb1ee0741c6d946f8a43d6abbbb /run_unittests.py | |
parent | c1e9c757ebbe7a26b126ee8cb2106f6f8dffa322 (diff) | |
download | meson-9308a6d923ecdfabb40d88e1590226172ea95e43.zip meson-9308a6d923ecdfabb40d88e1590226172ea95e43.tar.gz meson-9308a6d923ecdfabb40d88e1590226172ea95e43.tar.bz2 |
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-x | run_unittests.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index bcb55a2..dbfd638 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): ''' |