Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Side by Side Diff: build_autotest.sh

Issue 3148016: Make sync_build_test and build_autotest support workon. (Closed) Base URL: ssh://git@chromiumos-git//crosutils.git
Patch Set: Respond to review Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sync_build_test.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium OS 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 # This script makes autotest client tests inside a chroot environment. The idea 7 # This script makes autotest client tests inside a chroot environment. The idea
8 # is to compile any platform-dependent autotest client tests in the build 8 # is to compile any platform-dependent autotest client tests in the build
9 # environment, since client systems under test lack the proper toolchain. 9 # environment, since client systems under test lack the proper toolchain.
10 # 10 #
11 # The user can later run autotest against an ssh enabled test client system, or 11 # The user can later run autotest against an ssh enabled test client system, or
12 # install the compiled client tests directly onto the rootfs image. 12 # install the compiled client tests directly onto the rootfs image.
13 13
14 . "$(dirname "$0")/common.sh" 14 . "$(dirname "$0")/common.sh"
15 15
16 get_default_board 16 get_default_board
17 17
18 ./autotest --build=all --board="${DEFAULT_BOARD}" $@ 18 DEFINE_string board "$DEFAULT_BOARD" \
19 "The board for which you are building autotest"
19 20
21 FLAGS "$@" || exit 1
22
23 if [[ -n "${CROS_WORKON_SRCROOT}" ]]; then
24 if [[ -z "${FLAGS_board}" ]]; then
25 setup_board_warning
26 exit 1
27 fi
28 emerge-${FLAGS_board} autotest-tests
29 else
30 ./autotest --noprompt --build=all --board="${DEFAULT_BOARD}" $@
31 fi
32
OLDNEW
« no previous file with comments | « no previous file | sync_build_test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698