diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-11-21 23:01:27 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-12-13 14:03:22 +0200 |
commit | 3df064484a09ef9a1ece98ea74e9c87855994d63 (patch) | |
tree | 26e1a40f965282743ede5182884660363120d653 | |
parent | f390d227879512c87a7ddd83fe3b649ba45b5442 (diff) | |
download | meson-3df064484a09ef9a1ece98ea74e9c87855994d63.zip meson-3df064484a09ef9a1ece98ea74e9c87855994d63.tar.gz meson-3df064484a09ef9a1ece98ea74e9c87855994d63.tar.bz2 |
Add unit test.
-rwxr-xr-x | run_unittests.py | 10 |
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): |