Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: tools/test.py

Issue 8274034: Make the sample tests run using the standard test configuration (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « samples/tests/src/chat/http_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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())
OLDNEW
« no previous file with comments | « samples/tests/src/chat/http_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698