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 |
11 import subprocess | 11 import subprocess |
12 | 12 |
13 import bot | 13 import bot |
14 import bot_utils | 14 import bot_utils |
15 | 15 |
16 utils = bot_utils.GetUtils() | 16 TARGETS = [ |
| 17 'language_strong', |
| 18 'corelib_strong', |
| 19 'lib_strong' |
| 20 ] |
17 | 21 |
18 BUILD_OS = utils.GuessOS() | 22 FLAGS = [ |
19 | 23 '--strong' |
20 (bot_name, _) = bot.GetBotName() | 24 ] |
21 CHANNEL = bot_utils.GetChannelFromName(bot_name) | |
22 | 25 |
23 if __name__ == '__main__': | 26 if __name__ == '__main__': |
24 with utils.ChangedWorkingDirectory('pkg/dev_compiler'): | 27 (bot_name, _) = bot.GetBotName() |
25 dart_exe = utils.CheckedInSdkExecutable() | 28 system = bot_utils.GetSystemFromName(bot_name) |
26 | 29 info = bot.BuildInfo('dartdevc', 'chrome', 'release', system, |
27 # These two calls mirror pkg/dev_compiler/tool/test.sh. | 30 arch='x64', checked=True) |
28 bot.RunProcess([dart_exe, 'tool/build_pkgs.dart', 'test']) | 31 bot.RunTest('dartdevc', info, TARGETS, flags=FLAGS) |
29 bot.RunProcess([dart_exe, 'test/all_tests.dart']) | |
30 | |
31 # TODO(vsm): Our bots do not have node / npm installed. | |
32 # These mirror pkg/dev_compiler/tool/browser_test.sh. | |
33 # bot.RunProcess(['npm', 'install']) | |
34 # bot.RunProcess(['npm', 'test'], {'CHROME_BIN': 'chrome'}) | |
OLD | NEW |