blob: 5d6d84725296ee0d03c21d3fedc3d5e7681d0d5f [file] [log] [blame]
#!/usr/bin/env python
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Wrapper for the SyzyAsan integration tests."""
import json
import os
import sys
import common
# Bring in the SyzyAsan test modules.
SYZYASAN_TEST_DIR = os.path.join(os.path.dirname(__file__), os.pardir,
os.pardir, 'chrome', 'test', 'kasko')
def main_run(args):
if not sys.platform.startswith('win'):
'valid': False,
'failures': ['This script should only be called on win32.'],
}, args.output)
with common.temporary_file() as tempfile_path:
syzyasan_integration_test_res = common.run_integration_test(
['--log-to-json', tempfile_path],
tempfile_path, args.output)
return syzyasan_integration_test_res
def main_compile_targets(args):
json.dump(['chrome', 'chromedriver'], args.output)
if __name__ == '__main__':
funcs = {
'run': main_run,
'compile_targets': main_compile_targets,
sys.exit(common.run_script(sys.argv[1:], funcs))