flatcar-scripts/build_autotest.sh
Zdenek Behan 78903d8f50 autotest: unblacklist autotest ebuilds, stop cros_workon start'ing anything
BUG=4586
TEST=make sure not working on autotest, run ./build_autotest.sh, see it work

Change-Id: Iac34c97864474e989bd61c1e76b14deb389274eb

Review URL: http://codereview.chromium.org/3226003
2010-08-26 19:50:18 -07:00

33 lines
957 B
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
emerge-${FLAGS_board} autotest-all
else
./autotest --noprompt --build=all --board="${FLAGS_board}" $@
fi