aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-12-03 22:35:19 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2014-12-03 22:37:06 +0200
commit08ef881c86a6cd0fe1dd4ad0fd8efc0440275f04 (patch)
treeabd77d492ebc9cbc89a5418cd40976decca085dd /run_tests.py
parent3979e27a78cc84b78a6ec122284d38cc596165e0 (diff)
downloadmeson-08ef881c86a6cd0fe1dd4ad0fd8efc0440275f04.zip
meson-08ef881c86a6cd0fe1dd4ad0fd8efc0440275f04.tar.gz
meson-08ef881c86a6cd0fe1dd4ad0fd8efc0440275f04.tar.bz2
Extracted compiler definitions to their own file.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/run_tests.py b/run_tests.py
index 366de28..c572257 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -17,7 +17,7 @@
from glob import glob
import os, subprocess, shutil, sys, platform, signal
import environment
-from environment import is_windows
+import mesonlib
passing_tests = 0
failing_tests = 0
@@ -47,7 +47,7 @@ if msbuild_exe is not None:
compile_commands = ['msbuild']
test_commands = ['msbuild', 'RUN_TESTS.vcxproj']
install_commands = []
-elif environment.is_osx():
+elif mesonlib.is_osx():
backend_flags = ['--backend=xcode']
compile_commands = ['xcodebuild']
test_commands = ['xcodebuild', '-target', 'RUN_TESTS']
@@ -186,22 +186,22 @@ def run_tests():
commontests = gather_tests('test cases/common')
failtests = gather_tests('test cases/failing')
objtests = gather_tests('test cases/prebuilt object')
- if environment.is_linux():
+ if mesonlib.is_linux():
cpuid = platform.machine()
if cpuid != 'x86_64' and cpuid != 'i386' and cpuid != 'i686':
# Don't have a prebuilt object file for those so skip.
objtests = []
- if environment.is_osx():
+ if mesonlib.is_osx():
platformtests = gather_tests('test cases/osx')
- elif environment.is_windows():
+ elif mesonlib.is_windows():
platformtests = gather_tests('test cases/windows')
else:
platformtests = gather_tests('test cases/linuxlike')
- if not environment.is_osx() and not environment.is_windows():
+ if not mesonlib.is_osx() and not mesonlib.is_windows():
frameworktests = gather_tests('test cases/frameworks')
else:
frameworktests = []
- if not environment.is_osx() and shutil.which('javac'):
+ if not mesonlib.is_osx() and shutil.which('javac'):
javatests = gather_tests('test cases/java')
else:
javatests = []
@@ -217,7 +217,7 @@ def run_tests():
rusttests = gather_tests('test cases/rust')
else:
rusttests = []
- if not environment.is_windows():
+ if not mesonlib.is_windows():
objctests = gather_tests('test cases/objc')
else:
objctests = []
@@ -308,7 +308,7 @@ def generate_prebuilt_object():
objectfile = objectbase + 'obj'
cmd = ['cl', '/nologo', '/Fo'+objectfile, '/c', source]
else:
- if is_windows():
+ if mesonlib.is_windows():
objectfile = objectbase + 'obj'
else:
objectfile = objectbase + 'o'