| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2016, 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 import os | 7 import os |
| 8 import os.path | 8 import os.path |
| 9 import shutil | 9 import shutil |
| 10 import sys | 10 import sys |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 ] | 28 ] |
| 29 | 29 |
| 30 if __name__ == '__main__': | 30 if __name__ == '__main__': |
| 31 with bot.BuildStep('Build SDK and dartdevc test packages'): | 31 with bot.BuildStep('Build SDK and dartdevc test packages'): |
| 32 bot.RunProcess([sys.executable, './tools/build.py', '--mode=release', | 32 bot.RunProcess([sys.executable, './tools/build.py', '--mode=release', |
| 33 '--arch=x64', 'dartdevc_test']) | 33 '--arch=x64', 'dartdevc_test']) |
| 34 | 34 |
| 35 with bot.BuildStep('Run tests'): | 35 with bot.BuildStep('Run tests'): |
| 36 (bot_name, _) = bot.GetBotName() | 36 (bot_name, _) = bot.GetBotName() |
| 37 system = bot_utils.GetSystemFromName(bot_name) | 37 system = bot_utils.GetSystemFromName(bot_name) |
| 38 info = bot.BuildInfo('dartdevc', 'drt', 'release', system, | 38 if system == 'linux': |
| 39 arch='x64', checked=True) | 39 bot.RunProcess([ |
| 40 bot.RunTest('dartdevc', info, TARGETS, flags=FLAGS) | 40 'xvfb-run', sys.executable, './tools/test.py', '--strong', '-mrelease', |
| 41 '-cdartdevc', '-rchrome', '-ax64', '--report', '--time', '--checked', |
| 42 'language_2', 'corelib_2', 'language_strong']) |
| 43 else: |
| 44 info = bot.BuildInfo('dartdevc', 'chrome', 'release', system, |
| 45 arch='x64', checked=True) |
| 46 bot.RunTest('dartdevc', info, TARGETS, flags=FLAGS) |
| OLD | NEW |