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

Side by Side Diff: chrome/test/kasko/kasko_integration_test.py

Issue 2621363002: Remove Kasko! (Closed)
Patch Set: Rebase Created 3 years, 10 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 2015 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 """A Windows-only end-to-end integration test for Kasko, Chrome and Crashpad.
7
8 This test ensures that the interface between Kasko and Chrome and Crashpad works
9 as expected. The test causes Kasko to set certain crash keys and invoke a crash
10 report, which is in turn delivered to a locally hosted test crash server. If the
11 crash report is received intact with the expected crash keys then all is well.
12
13 Note that this test only works against non-component Release and Official builds
14 of Chrome with Chrome branding, and attempting to use it with anything else will
15 most likely lead to constant failures.
16
17 Typical usage (assuming in root 'src' directory):
18
19 - generate project files with the following GYP variables:
20 branding=Chrome syzyasan=1 win_z7=0 chromium_win_pch=0
21 - build the release Chrome binaries:
22 ninja -C out\Release chrome.exe chromedriver.exe
23 - run the test:
24 python chrome/test/kasko/kasko_integration_test.py
25 """
26
27 import logging
28 import os
29 import sys
30
31 # Bring in the Kasko module.
32 KASKO_DIR = os.path.join(os.path.dirname(__file__), 'py')
33 sys.path.append(KASKO_DIR)
34 import kasko
35
36
37 _LOGGER = logging.getLogger(os.path.basename(__file__))
38
39
40 def Main():
41 try:
42 options = kasko.config.ParseCommandLine()
43
44 kasko.integration_test.RunTest(
45 options,
46 'chrome://kasko/send-report',
47 10,
48 {'kasko-set-crash-key-value-impl': 'SetCrashKeyValueImpl'})
49
50 _LOGGER.info('Test passed successfully!')
51 except Exception as e:
52 _LOGGER.error(e)
53 return 1
54
55
56 if __name__ == '__main__':
57 sys.exit(Main())
OLDNEW
« no previous file with comments | « chrome/test/kasko/hang_watcher_integration_test.py ('k') | chrome/test/kasko/py/kasko/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698