flatcar-scripts/build_autotest.sh
Zdenek Behan 11ed876bf1 autotest: also unmask autotest-deps in build_autotest
TBR: olofj - fixing the bots

Change-Id: Ia040324c27c65426640f2406b995aeb6942bd8f6

Review URL: http://codereview.chromium.org/3117037
2010-08-24 14:47:32 -07:00

35 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This script makes autotest client tests inside a chroot environment. The idea
# is to compile any platform-dependent autotest client tests in the build
# environment, since client systems under test lack the proper toolchain.
#
# The user can later run autotest against an ssh enabled test client system, or
# install the compiled client tests directly onto the rootfs image.
. "$(dirname "$0")/common.sh"
get_default_board
DEFINE_string board "$DEFAULT_BOARD" \
"The board for which you are building autotest"
FLAGS "$@" || exit 1
if [[ -n "${CROS_WORKON_SRCROOT}" ]]; then
if [[ -z "${FLAGS_board}" ]]; then
setup_board_warning
exit 1
fi
$(dirname "$0")/cros_workon --board=${FLAGS_board} start \
autotest autotest-tests autotest-deps
emerge-${FLAGS_board} autotest-tests
else
./autotest --noprompt --build=all --board="${FLAGS_board}" $@
fi