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

Side by Side Diff: testing/scripts/check_gn_headers.py

Issue 2510303002: Add check_gn_headers.py to find missing headers in GN (Closed)
Patch Set: add linux and android files from tryjob runs Created 3 years, 11 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 #!/usr/bin/env python
2 # Copyright 2016 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import json
7 import os
8 import sys
9
10
11 import common
12
13
14 def main_run(args):
15 with common.temporary_file() as tempfile_path:
16 rc = common.run_command([
17 sys.executable,
18 os.path.join(common.SRC_DIR, 'build', 'check_gn_headers.py'),
19 '--out-dir',
20 os.path.join(args.paths['checkout'], 'out', args.build_config_fs),
21 '--deps-file',
22 os.path.join(common.SRC_DIR, 'DEPS'),
23 '--whitelist',
24 os.path.join(common.SRC_DIR, 'build', 'gn_missing_headers.txt'),
25 '--json', tempfile_path
26 ], cwd=common.SRC_DIR)
27
28 with open(tempfile_path) as f:
29 failures = json.load(f)
30
31 json.dump({
32 'valid': True,
33 'failures': failures,
34 }, args.output)
35
36 return rc
37
38
39 def main_compile_targets(args):
40 json.dump([], args.output)
41
42
43 if __name__ == '__main__':
44 funcs = {
45 'run': main_run,
46 'compile_targets': main_compile_targets,
47 }
48 sys.exit(common.run_script(sys.argv[1:], funcs))
OLDNEW
« testing/buildbot/chromium.linux.json ('K') | « testing/buildbot/chromium.linux.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698