| OLD | NEW |
| (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 rc = common.run_runtest(args, [ | |
| 16 os.path.join(common.SRC_DIR, 'tools', 'valgrind', 'chrome_tests.sh'), | |
| 17 '--tool', 'memcheck', | |
| 18 '--build-dir', os.path.join(common.SRC_DIR, 'out', args.build_config_fs), | |
| 19 ] + args.args) | |
| 20 | |
| 21 json.dump({ | |
| 22 'valid': True, | |
| 23 'failures': ['failed'] if rc else [] | |
| 24 }, args.output) | |
| 25 | |
| 26 return rc | |
| 27 | |
| 28 | |
| 29 def main_compile_targets(args): | |
| 30 json.dump(['$name'], args.output) | |
| 31 | |
| 32 | |
| 33 if __name__ == '__main__': | |
| 34 funcs = { | |
| 35 'run': main_run, | |
| 36 'compile_targets': main_compile_targets, | |
| 37 } | |
| 38 sys.exit(common.run_script(sys.argv[1:], funcs)) | |
| OLD | NEW |