| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 """Dart frog buildbot steps | 7 """Dart frog buildbot steps |
| 8 | 8 |
| 9 Runs tests for the frog compiler (running on the vm or the self-hosting version) | 9 Runs tests for the frog compiler (running on the vm or the self-hosting version) |
| 10 """ | 10 """ |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 [sys.executable, '../tools/build.py', '--mode=' + testpy_mode], | 86 [sys.executable, '../tools/build.py', '--mode=' + testpy_mode], |
| 87 env=NO_COLOR_ENV) != 0: | 87 env=NO_COLOR_ENV) != 0: |
| 88 return 1 | 88 return 1 |
| 89 | 89 |
| 90 if arch != 'frogium': # frog and frogsh | 90 if arch != 'frogium': # frog and frogsh |
| 91 if TestStep("frog", testpy_mode, arch, | 91 if TestStep("frog", testpy_mode, arch, |
| 92 ['language', 'corelib', 'isolate', 'frog', | 92 ['language', 'corelib', 'isolate', 'frog', |
| 93 'leg', 'leg_only', 'peg', 'await'], flags) != 0: | 93 'leg', 'leg_only', 'peg', 'await'], flags) != 0: |
| 94 return 1 | 94 return 1 |
| 95 | 95 |
| 96 leg_tests = ['language', 'corelib', 'leg', 'leg_only'] | 96 leg_tests = ['language', 'corelib', 'leg_only'] |
| 97 if TestStep("leg", testpy_mode, 'leg', leg_tests, flags) != 0: | 97 if TestStep("leg", testpy_mode, 'leg', leg_tests, flags) != 0: |
| 98 return 1 | 98 return 1 |
| 99 |
| 100 # Leg isn't self-hosted (yet) so we run the unit tests on the VM. |
| 101 if TestStep("leg", testpy_mode, 'vm', ['leg'], flags) != 0: |
| 102 return 1 |
| 99 else: | 103 else: |
| 100 if (TestStep("browser", testpy_mode, 'frogium', | 104 if (TestStep("browser", testpy_mode, 'frogium', |
| 101 ['client', 'language', 'corelib', 'isolate', 'frog', | 105 ['client', 'language', 'corelib', 'isolate', 'frog', |
| 102 'leg', 'peg', 'await'], flags) != 0): | 106 'leg', 'peg', 'await'], flags) != 0): |
| 103 return 1 | 107 return 1 |
| 104 | 108 |
| 105 return 0 | 109 return 0 |
| 106 | 110 |
| 107 def main(): | 111 def main(): |
| 108 print 'main' | 112 print 'main' |
| 109 if len(sys.argv) == 0: | 113 if len(sys.argv) == 0: |
| 110 print 'Script pathname not known, giving up.' | 114 print 'Script pathname not known, giving up.' |
| 111 return 1 | 115 return 1 |
| 112 | 116 |
| 113 arch, mode = GetBuildInfo() | 117 arch, mode = GetBuildInfo() |
| 114 print "arch: %s, mode: %s" % (arch, mode) | 118 print "arch: %s, mode: %s" % (arch, mode) |
| 115 if arch is None: | 119 if arch is None: |
| 116 return 1 | 120 return 1 |
| 117 | 121 |
| 118 status = TestFrog(arch, mode) | 122 status = TestFrog(arch, mode) |
| 119 if status != 0: | 123 if status != 0: |
| 120 print '@@@STEP_FAILURE@@@' | 124 print '@@@STEP_FAILURE@@@' |
| 121 return status | 125 return status |
| 122 | 126 |
| 123 | 127 |
| 124 if __name__ == '__main__': | 128 if __name__ == '__main__': |
| 125 sys.exit(main()) | 129 sys.exit(main()) |
| OLD | NEW |