| OLD | NEW |
| 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #!/usr/bin/python | 5 #!/usr/bin/python |
| 6 | 6 |
| 7 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 7 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 8 # Use of this source code is governed by a BSD-style license that can be | 8 # Use of this source code is governed by a BSD-style license that can be |
| 9 # found in the LICENSE file. | 9 # found in the LICENSE file. |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 """Compiles the client code to javascript for dartc tests.""" | 77 """Compiles the client code to javascript for dartc tests.""" |
| 78 return subprocess.call( | 78 return subprocess.call( |
| 79 [sys.executable, './tools/build.py', '--mode=' + mode, 'compiler']) | 79 [sys.executable, './tools/build.py', '--mode=' + mode, 'compiler']) |
| 80 | 80 |
| 81 def RunBrowserTests(component, mode, platform): | 81 def RunBrowserTests(component, mode, platform): |
| 82 """Runs the Dart client tests.""" | 82 """Runs the Dart client tests.""" |
| 83 if platform == 'linux': | 83 if platform == 'linux': |
| 84 cmd = ['xvfb-run'] | 84 cmd = ['xvfb-run'] |
| 85 else: | 85 else: |
| 86 cmd = [] | 86 cmd = [] |
| 87 cmd += [sys.executable, './tools/test.py', | 87 cmd += [sys.executable, './tools/test_wrapper.py', |
| 88 '--component=' + component, '--mode=' + mode, | 88 '--component=' + component, '--mode=' + mode, |
| 89 '--time', '--report', '--progress=buildbot', '-v'] | 89 '--time', '--report', '--progress=buildbot', '-v'] |
| 90 return subprocess.call(cmd) | 90 return subprocess.call(cmd) |
| 91 | 91 |
| 92 def GetUtils(): | 92 def GetUtils(): |
| 93 ''' | 93 ''' |
| 94 dynamically get the utils module | 94 dynamically get the utils module |
| 95 We use a dynamic import for tools/util.py because we derive its location | 95 We use a dynamic import for tools/util.py because we derive its location |
| 96 dynamically using sys.argv[0]. This allows us to run this script from | 96 dynamically using sys.argv[0]. This allows us to run this script from |
| 97 different directories. | 97 different directories. |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 status = ProcessDartClientTests(component, mode, platform, name) | 203 status = ProcessDartClientTests(component, mode, platform, name) |
| 204 | 204 |
| 205 if status: | 205 if status: |
| 206 print '@@@STEP_FAILURE@@@' | 206 print '@@@STEP_FAILURE@@@' |
| 207 | 207 |
| 208 return status | 208 return status |
| 209 | 209 |
| 210 | 210 |
| 211 if __name__ == '__main__': | 211 if __name__ == '__main__': |
| 212 sys.exit(main()) | 212 sys.exit(main()) |
| OLD | NEW |