Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / native_client_sdk / src / test_all.py
blobc91e64e59c98eafa0aec8aef9da2c029b367b956
1 #!/usr/bin/env python
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
4 # found in the LICENSE file.
6 import os
7 import sys
8 import unittest
10 # add tools folder to sys.path
11 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
12 sys.path.append(os.path.join(SCRIPT_DIR, 'tools', 'tests'))
13 sys.path.append(os.path.join(SCRIPT_DIR, 'tools', 'lib', 'tests'))
14 sys.path.append(os.path.join(SCRIPT_DIR, 'build_tools', 'tests'))
16 TEST_MODULES = [
17 'create_html_test',
18 'create_nmf_test',
19 'easy_template_test',
20 'elf_test',
21 'fix_deps_test',
22 'getos_test',
23 'get_shared_deps_test',
24 'httpd_test',
25 'nacl_config_test',
26 'oshelpers_test',
27 'parse_dsc_test',
28 'quote_test',
29 'sdktools_commands_test',
30 'sdktools_config_test',
31 'sdktools_test',
32 'sel_ldr_test',
33 'update_nacl_manifest_test',
34 'verify_filelist_test',
35 'verify_ppapi_test',
38 def main():
39 suite = unittest.TestSuite()
40 for module_name in TEST_MODULES:
41 module = __import__(module_name)
42 suite.addTests(unittest.defaultTestLoader.loadTestsFromModule(module))
44 result = unittest.TextTestRunner(verbosity=2).run(suite)
45 return int(not result.wasSuccessful())
47 if __name__ == '__main__':
48 sys.exit(main())