OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
6 # | 6 # |
7 | 7 |
8 """Test driver for the Dart project used by continuous build and developers.""" | 8 """Test driver for the Dart project used by continuous build and developers.""" |
9 | 9 |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 import utils | 23 import utils |
24 | 24 |
25 | 25 |
26 TIMEOUT_SECS = 60 | 26 TIMEOUT_SECS = 60 |
27 ARCH_GUESS = utils.GuessArchitecture() | 27 ARCH_GUESS = utils.GuessArchitecture() |
28 OS_GUESS = utils.GuessOS() | 28 OS_GUESS = utils.GuessOS() |
29 BUILT_IN_TESTS = ['dartc', 'vm', 'standalone', 'corelib', 'language', 'co19', | 29 BUILT_IN_TESTS = ['dartc', 'vm', 'standalone', 'corelib', 'language', 'co19', |
30 'samples', 'isolate', 'stub-generator', 'client'] | 30 'samples', 'isolate', 'stub-generator', 'client'] |
31 | 31 |
32 # Patterns for matching test options in .dart files. | 32 # Patterns for matching test options in .dart files. |
| 33 VM_OPTIONS_PATTERN = re.compile(r'// VMOptions=(.*)') |
33 DART_OPTIONS_PATTERN = re.compile(r'// DartOptions=(.*)') | 34 DART_OPTIONS_PATTERN = re.compile(r'// DartOptions=(.*)') |
34 ISOLATE_STUB_PATTERN = re.compile(r'// IsolateStubs=(.*)') | 35 ISOLATE_STUB_PATTERN = re.compile(r'// IsolateStubs=(.*)') |
35 | 36 |
36 # --------------------------------------------- | 37 # --------------------------------------------- |
37 # --- P r o g r e s s I n d i c a t o r s --- | 38 # --- P r o g r e s s I n d i c a t o r s --- |
38 # --------------------------------------------- | 39 # --------------------------------------------- |
39 | 40 |
40 | 41 |
41 class Error(Exception): | 42 class Error(Exception): |
42 pass | 43 pass |
(...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1481 for entry in timed_tests[:20]: | 1482 for entry in timed_tests[:20]: |
1482 t = FormatTime(entry.duration) | 1483 t = FormatTime(entry.duration) |
1483 print '%4i (%s) %s' % (index, t, entry.GetLabel()) | 1484 print '%4i (%s) %s' % (index, t, entry.GetLabel()) |
1484 index += 1 | 1485 index += 1 |
1485 | 1486 |
1486 return result | 1487 return result |
1487 | 1488 |
1488 | 1489 |
1489 if __name__ == '__main__': | 1490 if __name__ == '__main__': |
1490 sys.exit(Main()) | 1491 sys.exit(Main()) |
OLD | NEW |