Modify scripts to be more informative and add autox/autologin for build script

Review URL: http://codereview.chromium.org/661203
This commit is contained in:
Chris Sosa 2010-02-26 14:33:52 -08:00
parent d6bf1010bd
commit 6b8f1cf53e
4 changed files with 22 additions and 3 deletions

View File

@ -21,7 +21,8 @@ DEFAULT_TESTS_LIST="all"
DEFINE_string build "${DEFAULT_TESTS_LIST}" \
"a comma seperated list of autotest client tests to be prebuilt." b
DEFINE_boolean prompt $FLAGS_TRUE "Prompt user when building all tests"
DEFINE_boolean prompt $FLAGS_TRUE "Prompt user when building all tests."
DEFINE_boolean autox $FLAGS_TRUE "Build autox along with autotest"
# More useful help
FLAGS_HELP="usage: $0 [flags]"
@ -64,5 +65,12 @@ else
TEST_LIST=${FLAGS_build}
fi
# Decide whether or not to build autox and set use flag
if [ $FLAGS_autox -eq "$FLAGS_TRUE" ] ; then
USE=
else
USE=-autox
fi
GCLIENT_ROOT="${GCLIENT_ROOT}" TEST_LIST=${TEST_LIST} \
"emerge-${FLAGS_board}" chromeos-base/autotest
USE="$USE" "emerge-${FLAGS_board}" chromeos-base/autotest

View File

@ -7,6 +7,8 @@
# Copy public keys to root's homedir for ssh pubkey auth, which
# is necessary for test automation.
echo "Copying public keys"
KEYS_DIR=ssh_keys
ROOT_AUTHKEYS=/root/.ssh/authorized_keys

View File

@ -5,7 +5,7 @@
# found in the LICENSE file.
# start sshd at os init time.
echo "Enabling sshd."
cp -pf sshd.conf /etc/init/sshd.conf
chmod 644 /etc/init/sshd.conf
chown 0:0 /etc/init/sshd.conf

View File

@ -0,0 +1,9 @@
#!/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.
# enable autox login by disabling remembering of last username
echo "Enabling autologin using autox."
touch "/root/.forget_usernames"