Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: slave/skia_slave_scripts/flavor_utils/valgrind_build_step_utils.py

Issue 648353002: Remove Skia's forked buildbot code (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Fix launch_slaves, remove more stuff Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 """ Utilities for Valgrind build steps. """
6
7 from default_build_step_utils import DefaultBuildStepUtils
8 from py.utils import shell_utils
9
10 import os
11
12
13 class ValgrindBuildStepUtils(DefaultBuildStepUtils):
14 def __init__(self, build_step_instance):
15 DefaultBuildStepUtils.__init__(self, build_step_instance)
16 self._suppressions_file = os.path.join('tools', 'valgrind.supp')
17
18 def RunFlavoredCmd(self, app, args):
19 """ Override this in new BuildStep flavors. """
20 cmd = ['valgrind', '--gen-suppressions=all', '--leak-check=no',
21 '--track-origins=yes', '--error-exitcode=1']
22 if self._suppressions_file:
23 cmd.append('--suppressions=%s' % self._suppressions_file)
24
25 cmd.append(self._PathToBinary(app))
26 cmd.extend(args)
27 return shell_utils.run(cmd)
28
29 def Compile(self, target):
30 os.environ['GYP_DEFINES'] = self._step.args['gyp_defines']
31 print 'GYP_DEFINES="%s"' % os.environ['GYP_DEFINES']
32 make_cmd = 'make'
33 if os.name == 'nt':
34 make_cmd = 'make.bat'
35 cmd = [make_cmd,
36 target,
37 'BUILDTYPE=%s' % self._step.configuration,
38 ]
39 cmd.extend(self._step.default_make_flags)
40 cmd.extend(self._step.make_flags)
41 shell_utils.run(cmd)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698