aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-12-26 20:56:04 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-01-02 23:52:50 +0200
commitee8a6e6fc5b58b5756f4e01271e77399f2d973bb (patch)
treeb10b93b2b28e1135a3e87b4f127198786e596896 /mesonbuild/build.py
parent776b0d9a5f425d0363b8b71933f990183ca4a281 (diff)
downloadmeson-ee8a6e6fc5b58b5756f4e01271e77399f2d973bb.zip
meson-ee8a6e6fc5b58b5756f4e01271e77399f2d973bb.tar.gz
meson-ee8a6e6fc5b58b5756f4e01271e77399f2d973bb.tar.bz2
Can specify test setups and run them with mesontest.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 449afe7..f895531 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -98,6 +98,7 @@ class Build:
self.dep_manifest_name = None
self.dep_manifest = {}
self.cross_stdlibs = {}
+ self.test_setups = {}
def add_compiler(self, compiler):
if self.static_linker is None and compiler.needs_static_linker():
@@ -1507,3 +1508,10 @@ class RunScript(dict):
assert(isinstance(args, list))
self['exe'] = script
self['args'] = args
+
+class TestSetup:
+ def __init__(self, *, exe_wrapper=None, gdb=None, timeout_multiplier=None, env=None):
+ self.exe_wrapper = exe_wrapper
+ self.gdb = gdb
+ self.timeout_multiplier = timeout_multiplier
+ self.env = env