aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-04-02 00:15:22 +0300
committerGitHub <noreply@github.com>2017-04-02 00:15:22 +0300
commitc7f66c3a9e4f69e0bcde8819f15c9d8b972a2f75 (patch)
tree95785dfa61d2d01925f66498e16f4d4cadeb9760 /run_tests.py
parentd2548e6e839b2058aae7f242db35d6836ccbeef7 (diff)
parent8df671b6f3995ed3f31409677464fa2f8fd81af9 (diff)
downloadmeson-c7f66c3a9e4f69e0bcde8819f15c9d8b972a2f75.zip
meson-c7f66c3a9e4f69e0bcde8819f15c9d8b972a2f75.tar.gz
meson-c7f66c3a9e4f69e0bcde8819f15c9d8b972a2f75.tar.bz2
Merge pull request #1505 from centricular/dont-use-c++-for-assembly
Try harder to use the C compiler for compiling asm
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/run_tests.py b/run_tests.py
index 5025057..02aa701 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -21,6 +21,12 @@ import subprocess
import platform
from mesonbuild import mesonlib
+def using_vs_backend():
+ for arg in sys.argv[1:]:
+ if arg.startswith('--backend=vs'):
+ return True
+ return False
+
if __name__ == '__main__':
returncode = 0
# Running on a developer machine? Be nice!
@@ -32,7 +38,10 @@ if __name__ == '__main__':
units += ['LinuxlikeTests']
elif mesonlib.is_windows():
units += ['WindowsTests']
- returncode += subprocess.call([sys.executable, 'run_unittests.py', '-v'] + units)
+ # Unit tests always use the Ninja backend, so just skip them if we're
+ # testing the VS backend
+ if not using_vs_backend():
+ returncode += subprocess.call([sys.executable, 'run_unittests.py', '-v'] + units)
# Ubuntu packages do not have a binary without -6 suffix.
if shutil.which('arm-linux-gnueabihf-gcc-6') and not platform.machine().startswith('arm'):
print('Running cross compilation tests.\n')