aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-10-16 20:01:03 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2016-11-18 22:04:29 +0200
commit951262d7590343ffa9730666c427ad9d708a9fb6 (patch)
treed0ec82ffcf41ae5f30840c35a74d4da02dd26381 /mesonbuild/backend
parenta5a4c85eca95a31547e94d220c0e1a5ce4adf22d (diff)
downloadmeson-951262d7590343ffa9730666c427ad9d708a9fb6.zip
meson-951262d7590343ffa9730666c427ad9d708a9fb6.tar.gz
meson-951262d7590343ffa9730666c427ad9d708a9fb6.tar.bz2
Removed Valgrind from core.
Diffstat (limited to 'mesonbuild/backend')
-rw-r--r--mesonbuild/backend/backends.py5
-rw-r--r--mesonbuild/backend/ninjabackend.py15
2 files changed, 2 insertions, 18 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index b82227f..c37ae2a 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -50,7 +50,7 @@ class ExecutableSerialisation():
class TestSerialisation:
def __init__(self, name, suite, fname, is_cross, exe_wrapper, is_parallel, cmd_args, env,
- should_fail, valgrind_args, timeout, workdir, extra_paths):
+ should_fail, timeout, workdir, extra_paths):
self.name = name
self.suite = suite
self.fname = fname
@@ -60,7 +60,6 @@ class TestSerialisation:
self.cmd_args = cmd_args
self.env = env
self.should_fail = should_fail
- self.valgrind_args = valgrind_args
self.timeout = timeout
self.workdir = workdir
self.extra_paths = extra_paths
@@ -443,7 +442,7 @@ class Backend():
a = os.path.join(self.environment.get_build_dir(), a.rel_to_builddir(self.build_to_src))
cmd_args.append(a)
ts = TestSerialisation(t.get_name(), t.suite, fname, is_cross, exe_wrapper,
- t.is_parallel, cmd_args, t.env, t.should_fail, t.valgrind_args,
+ t.is_parallel, cmd_args, t.env, t.should_fail,
t.timeout, t.workdir, extra_paths)
arr.append(ts)
pickle.dump(arr, datafile)
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index fa4d5cf..b0a2201 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -142,7 +142,6 @@ class NinjaBackend(backends.Backend):
self.ninja_filename = 'build.ninja'
self.fortran_deps = {}
self.all_outputs = {}
- self.valgrind = environment.find_valgrind()
def detect_vs_dep_prefix(self, tempfilename):
'''VS writes its dependency in a locale dependent format.
@@ -728,13 +727,6 @@ int dummy;
elem.add_item('pool', 'console')
elem.write(outfile)
- if self.valgrind:
- velem = NinjaBuildElement(self.all_outputs, 'test-valgrind:' + s, 'CUSTOM_COMMAND', ['all', 'PHONY'])
- velem.add_item('COMMAND', cmd + ['--wrapper=' + self.valgrind, '--suite=' + s])
- velem.add_item('DESC', 'Running test suite %s under Valgrind.' % visible_name)
- velem.add_item('pool', 'console')
- velem.write(outfile)
-
def generate_tests(self, outfile):
(test_data, benchmark_data) = self.serialise_tests()
script_root = self.environment.get_script_dir()
@@ -751,13 +743,6 @@ int dummy;
elem.write(outfile)
self.write_test_suite_targets(cmd, outfile)
- if self.valgrind:
- velem = NinjaBuildElement(self.all_outputs, 'test-valgrind', 'CUSTOM_COMMAND', ['all', 'PHONY'])
- velem.add_item('COMMAND', cmd + ['--wrapper=' + self.valgrind])
- velem.add_item('DESC', 'Running test suite under Valgrind.')
- velem.add_item('pool', 'console')
- velem.write(outfile)
-
# And then benchmarks.
cmd = [sys.executable, self.environment.get_build_command(), '--internal', 'benchmark', benchmark_data]
elem = NinjaBuildElement(self.all_outputs, 'benchmark', 'CUSTOM_COMMAND', ['all', 'PHONY'])