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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 else: | 72 else: |
73 version = 'unknown' | 73 version = 'unknown' |
74 return (name, version, arch, mode, platform) | 74 return (name, version, arch, mode, platform) |
75 | 75 |
76 | 76 |
77 def RunDartcCompiler(client_path, mode, outdir): | 77 def RunDartcCompiler(client_path, mode, outdir): |
78 """Compiles the client code to javascript for dartc tests.""" | 78 """Compiles the client code to javascript for dartc tests.""" |
79 # Move to the client directory and call the build script | 79 # Move to the client directory and call the build script |
80 os.chdir(client_path) | 80 os.chdir(client_path) |
81 return subprocess.call( | 81 return subprocess.call( |
82 [sys.executable, '../tools/build.py', '--arch=dartc', '--mode=' + mode]) | 82 [sys.executable, '../tools/build.py', '--mode=' + mode]) |
83 | 83 |
84 def RunBrowserTests(client_path, arch, mode, platform): | 84 def RunBrowserTests(client_path, arch, mode, platform): |
85 """Runs the Dart client tests.""" | 85 """Runs the Dart client tests.""" |
86 if platform == 'linux': | 86 if platform == 'linux': |
87 cmd = ['xvfb-run'] | 87 cmd = ['xvfb-run'] |
88 else: | 88 else: |
89 cmd = [] | 89 cmd = [] |
90 # Move to the client directory and call the test script | 90 # Move to the client directory and call the test script |
91 os.chdir(client_path) | 91 os.chdir(client_path) |
92 cmd += [sys.executable, '../tools/test.py', | 92 cmd += [sys.executable, '../tools/test.py', |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 status = ProcessDartClientTests(srcpath, arch, mode, platform, name) | 209 status = ProcessDartClientTests(srcpath, arch, mode, platform, name) |
210 | 210 |
211 if status: | 211 if status: |
212 print '@@@STEP_FAILURE@@@' | 212 print '@@@STEP_FAILURE@@@' |
213 | 213 |
214 return status | 214 return status |
215 | 215 |
216 | 216 |
217 if __name__ == '__main__': | 217 if __name__ == '__main__': |
218 sys.exit(main()) | 218 sys.exit(main()) |
OLD | NEW |