diff options
author | Caroline Tice <cmtice@google.com> | 2016-10-05 15:41:13 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-10-06 11:53:49 -0700 |
commit | 4bd70465c2e5c60802460aec4fdc698e1cfab8e3 (patch) | |
tree | fd6a259d17eaae30ff75881a59541b347fb8392f /buildbot_test_llvm.py | |
parent | 59b328726cdf961f8c839fed049f6df31d614d0b (diff) | |
download | toolchain-utils-4bd70465c2e5c60802460aec4fdc698e1cfab8e3.tar.gz |
[toolchain-utils] Update rotating testers to use new configs.
This CL updates the rotating testers to use the new chromes_configs
for building trybots & running HW tests.
BUG=chromium:653296
TEST=Ran scripts in my directory; it worked.
Change-Id: Ia60af8b921a966c86b335ef51db5372bf740ed95
Reviewed-on: https://chrome-internal-review.googlesource.com/293775
Commit-Ready: Caroline Tice <cmtice@google.com>
Tested-by: Caroline Tice <cmtice@google.com>
Reviewed-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'buildbot_test_llvm.py')
-rwxr-xr-x | buildbot_test_llvm.py | 55 |
1 files changed, 8 insertions, 47 deletions
diff --git a/buildbot_test_llvm.py b/buildbot_test_llvm.py index 343a7d41..69932e53 100755 --- a/buildbot_test_llvm.py +++ b/buildbot_test_llvm.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 """Script for running llvm validation tests on ChromeOS. This script launches a buildbot to build ChromeOS with the llvm on @@ -40,23 +40,10 @@ TEST_BOARD = [ 'peach_pit', 'peppy', 'link', - 'veyron_jaq', - 'lumpy', 'sentry', 'chell', 'nyan_big', -] - -TEST = [ - 'bvt-inline', - 'bvt-cq', - 'toolchain-tests', - 'security', - #'kernel_per-build_regression', - #'kernel_per-build_benchmarks', - 'kernel_daily_regression', - 'kernel_daily_benchmarks', - #'stress', + 'daisy', ] @@ -70,7 +57,7 @@ class ToolchainVerifier(object): self._ce = command_executer.GetCommandExecuter() self._l = logger.GetLogger() self._compiler = compiler - self._build = '%s-release' % board + self._build = '%s-%s-toolchain' % (board, compiler) self._patches = patches.split(',') self._patches_string = '_'.join(str(p) for p in self._patches) @@ -90,27 +77,6 @@ class ToolchainVerifier(object): if ret_val != 0: raise RuntimeError('chmod for testing_rsa failed') - def _TestImages(self, image): - to_file = '' - for test in TEST: - # Do not run the kernel tests with the LLVM compiler. - if self._compiler == 'gcc' or not 'kernel' in test: - command = ('test_that --board {board} :lab: suite:{test} ' - '-i {image} --fast --autotest_dir ' - '~/trunk/src/third_party/autotest/files ' - '--web cautotest.corp.google.com'.format( - board=self._board, test=test, image=image)) - ret_val = self._ce.ChrootRunCommand(self._chromeos_root, command) - timestamp = datetime.datetime.strftime(datetime.datetime.now(), - '%Y-%m-%d_%H:%M:%S') - if ret_val: - out = 'FAILED' - else: - out = ' ' - to_file += out + ' ' + test + ' ' + timestamp + '\n' - with open(self._reports, 'w') as f: - f.write(to_file) - def DoAll(self): """Main function inside ToolchainComparator class. @@ -120,13 +86,9 @@ class ToolchainVerifier(object): date_str = datetime.date.today() description = 'master_%s_%s_%s' % (self._patches_string, self._build, date_str) - trybot_image = buildbot_utils.GetTrybotImage( - self._chromeos_root, - self._build, - self._patches, - description, - other_flags=['--hwtest'], - build_toolchain=True) + trybot_image = buildbot_utils.GetTrybotImage(self._chromeos_root, + self._build, self._patches, + description) if len(trybot_image) == 0: self._l.LogError('Unable to find trybot_image for %s!' % description) return 1 @@ -134,7 +96,6 @@ class ToolchainVerifier(object): if os.getlogin() == ROLE_ACCOUNT: self._FinishSetup() - self._TestImages(trybot_image) return 0 @@ -191,7 +152,7 @@ def Main(argv): parser.add_argument( '--compiler', dest='compiler', - help='Which compiler (llvm or gcc) to use for ' + help='Which compiler (llvm, llvm-next or gcc) to use for ' 'testing.') options = parser.parse_args(argv[1:]) @@ -199,7 +160,7 @@ def Main(argv): print('Please specify the ChromeOS root directory.') return 1 if not options.compiler: - print('Please specify which compiler to test (gcc or llvm).') + print('Please specify which compiler to test (gcc, llvm, or llvm-next).') return 1 if options.patches: patches = options.patches |