OLD | NEW |
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 import os | 6 import os |
7 import subprocess | 7 import subprocess |
8 import sys | 8 import sys |
9 import unittest | 9 import unittest |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 PKG_VER_DIR = os.path.join(build_paths.NACL_DIR, 'build', 'package_version') | 24 PKG_VER_DIR = os.path.join(build_paths.NACL_DIR, 'build', 'package_version') |
25 TAR_DIR = os.path.join(build_paths.NACL_DIR, 'toolchain', '.tars') | 25 TAR_DIR = os.path.join(build_paths.NACL_DIR, 'toolchain', '.tars') |
26 | 26 |
27 PKG_VER = os.path.join(PKG_VER_DIR, 'package_version.py') | 27 PKG_VER = os.path.join(PKG_VER_DIR, 'package_version.py') |
28 | 28 |
29 EXTRACT_PACKAGES = ['nacl_x86_glibc'] | 29 EXTRACT_PACKAGES = ['nacl_x86_glibc'] |
30 TOOLCHAIN_OUT = os.path.join(build_paths.OUT_DIR, 'sdk_tests', 'toolchain') | 30 TOOLCHAIN_OUT = os.path.join(build_paths.OUT_DIR, 'sdk_tests', 'toolchain') |
31 | 31 |
32 TEST_MODULES = [ | 32 TEST_MODULES = [ |
| 33 'build_version_test', |
33 'create_html_test', | 34 'create_html_test', |
34 'create_nmf_test', | 35 'create_nmf_test', |
35 'easy_template_test', | 36 'easy_template_test', |
36 'elf_test', | 37 'elf_test', |
37 'fix_deps_test', | 38 'fix_deps_test', |
38 'getos_test', | 39 'getos_test', |
39 'get_shared_deps_test', | 40 'get_shared_deps_test', |
40 'httpd_test', | 41 'httpd_test', |
41 'nacl_config_test', | 42 'nacl_config_test', |
42 'oshelpers_test', | 43 'oshelpers_test', |
(...skipping 22 matching lines...) Expand all Loading... |
65 suite = unittest.TestSuite() | 66 suite = unittest.TestSuite() |
66 for module_name in TEST_MODULES: | 67 for module_name in TEST_MODULES: |
67 module = __import__(module_name) | 68 module = __import__(module_name) |
68 suite.addTests(unittest.defaultTestLoader.loadTestsFromModule(module)) | 69 suite.addTests(unittest.defaultTestLoader.loadTestsFromModule(module)) |
69 | 70 |
70 result = unittest.TextTestRunner(verbosity=2).run(suite) | 71 result = unittest.TextTestRunner(verbosity=2).run(suite) |
71 return int(not result.wasSuccessful()) | 72 return int(not result.wasSuccessful()) |
72 | 73 |
73 if __name__ == '__main__': | 74 if __name__ == '__main__': |
74 sys.exit(main()) | 75 sys.exit(main()) |
OLD | NEW |