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

Side by Side Diff: native_client_sdk/src/test_all.py

Issue 720233003: [NaCl SDK] Convert python scripts from optparse to argparse. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Top level script for running all python unittests in the NaCl SDK. 6 """Top level script for running all python unittests in the NaCl SDK.
7 """ 7 """
8 8
9 from __future__ import print_function 9 from __future__ import print_function
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 'fix_deps_test', 48 'fix_deps_test',
49 'getos_test', 49 'getos_test',
50 'get_shared_deps_test', 50 'get_shared_deps_test',
51 'httpd_test', 51 'httpd_test',
52 'nacl_config_test', 52 'nacl_config_test',
53 'oshelpers_test', 53 'oshelpers_test',
54 'parse_dsc_test', 54 'parse_dsc_test',
55 'quote_test', 55 'quote_test',
56 'sdktools_config_test', 56 'sdktools_config_test',
57 'sel_ldr_test', 57 'sel_ldr_test',
58 'test_projects_test',
58 'update_nacl_manifest_test', 59 'update_nacl_manifest_test',
59 'verify_filelist_test', 60 'verify_filelist_test',
60 'verify_ppapi_test', 61 'verify_ppapi_test',
61 ] 62 ]
62 63
63 64
64 # Slower tests. For example the 'sdktools' are mostly slower system tests 65 # Slower tests. For example the 'sdktools' are mostly slower system tests
65 # that longer to run. If --quick is passed then we don't run these. 66 # that longer to run. If --quick is passed then we don't run these.
66 TEST_MODULES_BIG = [ 67 TEST_MODULES_BIG = [
67 'sdktools_commands_test', 68 'sdktools_commands_test',
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 else: 103 else:
103 verbosity = 1 104 verbosity = 1
104 105
105 print('Running unittests...') 106 print('Running unittests...')
106 result = unittest.TextTestRunner(verbosity=verbosity).run(suite) 107 result = unittest.TextTestRunner(verbosity=verbosity).run(suite)
107 return int(not result.wasSuccessful()) 108 return int(not result.wasSuccessful())
108 109
109 110
110 if __name__ == '__main__': 111 if __name__ == '__main__':
111 sys.exit(main(sys.argv[1:])) 112 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « native_client_sdk/src/doc/doxygen/rst_index.py ('k') | native_client_sdk/src/tools/create_html.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698