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=(.*)') | |
34 DART_OPTIONS_PATTERN = re.compile(r'// DartOptions=(.*)') | 33 DART_OPTIONS_PATTERN = re.compile(r'// DartOptions=(.*)') |
35 ISOLATE_STUB_PATTERN = re.compile(r'// IsolateStubs=(.*)') | 34 ISOLATE_STUB_PATTERN = re.compile(r'// IsolateStubs=(.*)') |
36 | 35 |
37 # --------------------------------------------- | 36 # --------------------------------------------- |
38 # --- P r o g r e s s I n d i c a t o r s --- | 37 # --- P r o g r e s s I n d i c a t o r s --- |
39 # --------------------------------------------- | 38 # --------------------------------------------- |
40 | 39 |
41 | 40 |
42 class Error(Exception): | 41 class Error(Exception): |
43 pass | 42 pass |
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1481 for entry in timed_tests[:20]: | 1480 for entry in timed_tests[:20]: |
1482 t = FormatTime(entry.duration) | 1481 t = FormatTime(entry.duration) |
1483 print '%4i (%s) %s' % (index, t, entry.GetLabel()) | 1482 print '%4i (%s) %s' % (index, t, entry.GetLabel()) |
1484 index += 1 | 1483 index += 1 |
1485 | 1484 |
1486 return result | 1485 return result |
1487 | 1486 |
1488 | 1487 |
1489 if __name__ == '__main__': | 1488 if __name__ == '__main__': |
1490 sys.exit(Main()) | 1489 sys.exit(Main()) |
OLD | NEW |