Add Media.AudioRendererEvents histogram to measure how often OnRenderError() is called.
[chromium-blink-merge.git] / native_client_sdk / src / test_all.py
blob0a1374f3dfed19a0d43d5bddaa64cdcd933be4b9
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 sys
7 import unittest
8 import os
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, 'build_tools', 'tests'))
15 TEST_MODULES = [
16 'oshelpers_test',
17 'getos_test',
18 'create_nmf_test',
19 'easy_template_test',
20 'httpd_test',
21 'sdktools_test',
22 'sdktools_commands_test',
23 'update_nacl_manifest_test',
24 'parse_dsc_test'
27 def main():
28 suite = unittest.TestSuite()
29 for module_name in TEST_MODULES:
30 __import__(module_name)
31 module = sys.modules[module_name]
32 suite.addTests(unittest.defaultTestLoader.loadTestsFromModule(module))
34 result = unittest.TextTestRunner(verbosity=2).run(suite)
35 return int(not result.wasSuccessful())
37 if __name__ == '__main__':
38 sys.exit(main())