aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-05-08 20:21:04 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2021-05-13 11:03:10 +0300
commit0b2a7300c039e30d3a7430d6f77dc204876eac4b (patch)
tree8bb98754ec9535e81ca2f5dec7cec0c5ebf2a14d /run_unittests.py
parent204abd0e859debe93b95d53b59e7f4038d2d0354 (diff)
downloadmeson-0b2a7300c039e30d3a7430d6f77dc204876eac4b.zip
meson-0b2a7300c039e30d3a7430d6f77dc204876eac4b.tar.gz
meson-0b2a7300c039e30d3a7430d6f77dc204876eac4b.tar.bz2
Set up VS environment automatically when run.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 256a408..fe664cb 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-# Copyright 2016-2017 The Meson development team
+# Copyright 2016-2021 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -69,7 +69,7 @@ import mesonbuild.modules.pkgconfig
from mesonbuild.scripts import destdir_join
from mesonbuild.mtest import TAPParser, TestResult
-
+from mesonbuild.mesonmain import setup_vsenv
from mesonbuild.wrap.wrap import PackageDefinition, WrapException
from run_tests import (
@@ -10066,6 +10066,7 @@ def main():
return unittest.main(defaultTest=cases, buffer=True)
if __name__ == '__main__':
+ setup_vsenv()
print('Meson build system', mesonbuild.coredata.version, 'Unit Tests')
start = time.monotonic()
try: