OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 # 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 |
3 # found in the LICENSE file. | 4 # found in the LICENSE file. |
4 '''This script builds and runs the Chrome Frame unit and integration tests, | 5 """Builds and runs the Chrome Frame unit and integration tests, |
5 the exit status of the scrip is the number of failed tests. | 6 the exit status of the scrip is the number of failed tests. |
6 ''' | 7 """ |
| 8 |
7 import os.path | 9 import os.path |
8 import sys | 10 import sys |
9 import win32com.client | 11 import win32com.client |
10 | 12 |
11 | 13 |
12 # The top-level source directory. | 14 # The top-level source directory. |
13 # All other paths in this file are relative to this directory. | 15 # All other paths in this file are relative to this directory. |
14 _SRC_DIR = os.path.abspath(os.path.join( | 16 _SRC_DIR = os.path.abspath(os.path.join( |
15 os.path.dirname(__file__), '../..')) | 17 os.path.dirname(__file__), '../..')) |
16 | 18 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 exit_status = os.system(test_path) | 95 exit_status = os.system(test_path) |
94 if exit_status != 0: | 96 if exit_status != 0: |
95 failed_tests += 1 | 97 failed_tests += 1 |
96 print "Test \"%s\" failed with status %d" % (test, exit_status) | 98 print "Test \"%s\" failed with status %d" % (test, exit_status) |
97 | 99 |
98 return failed_tests | 100 return failed_tests |
99 | 101 |
100 | 102 |
101 if __name__ == "__main__": | 103 if __name__ == "__main__": |
102 sys.exit(Main()) | 104 sys.exit(Main()) |
OLD | NEW |