aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-11-21 23:01:27 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-12-13 14:03:22 +0200
commit3df064484a09ef9a1ece98ea74e9c87855994d63 (patch)
tree26e1a40f965282743ede5182884660363120d653
parentf390d227879512c87a7ddd83fe3b649ba45b5442 (diff)
downloadmeson-3df064484a09ef9a1ece98ea74e9c87855994d63.zip
meson-3df064484a09ef9a1ece98ea74e9c87855994d63.tar.gz
meson-3df064484a09ef9a1ece98ea74e9c87855994d63.tar.bz2
Add unit test.
-rwxr-xr-xrun_unittests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 84719d6..819c045 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -5821,6 +5821,16 @@ class WindowsTests(BasePlatformTests):
self.init(testdir, extra_args=['-Db_vscrt=mtd'])
sanitycheck_vscrt('/MTd')
+ def test_modules(self):
+ if self.backend is not Backend.ninja:
+ raise unittest.SkipTest('C++ modules only work with the Ninja backend (not {}).'.format(self.backend.name))
+ if 'VSCMD_VER' not in os.environ:
+ raise unittest.SkipTest('C++ modules is only supported with Visual Studio.')
+ if version_compare(os.environ['VSCMD_VER'], '<16.9.0'):
+ raise unittest.SkipTest('C++ modules are only supported with VS 2019 Preview or newer.')
+ self.init(os.path.join(self.unit_test_dir, '87 cpp modules'))
+ self.build()
+
@unittest.skipUnless(is_osx(), "requires Darwin")
class DarwinTests(BasePlatformTests):