mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
A new command line script was introduced in this CL named autotest, which is intend to replace both build_autotest.sh and run_remote_tests.sh in the future. This change list should be reviewed with http://codereview.chromium.org/1513006 http://codereview.chromium.org/1595001 all together. autotest --board x86-generic --build=all will build all client tests. autotest --board x86-generic --build=unioxbench,ltp will build enlisted client tests. autotest --board x86-generic -c client/tests/sleeptest/control -m 12.34.56.78 ... will invoke autoserv inside emerge-x86-generic cross-compiling env, and do a prebuild of the client test before it got pushed onto client host. you could also: 1. bash complete the directory/file name from autotest directory after -c or -s args. 2. supply any autoserv commandline args transparently. Note: replace build_autotest.sh/run_remotes_test.sh is only a future plan. When all the three CLs got pushed, no existing use cases should be broken. I need to change: 1. build_packages script from third_party/chromiumos-overlay/chromeos/scripts/build_packages. 2. add "enable_server_precompile: False " to third_party/autotest/files/global_config.ini to activate it. Review URL: http://codereview.chromium.org/1595001
20 lines
600 B
Bash
Executable File
20 lines
600 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright (c) 2010 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 is a shell wrapper of autotest.py inside a chroot environment.
|
|
# Note you should/could not directly call autotest.py within the same directory.
|
|
|
|
. "$(dirname $0)/common.sh"
|
|
|
|
# Script must be run inside the chroot
|
|
assert_inside_chroot
|
|
|
|
SSH_KEY=$(dirname $0)/mod_for_test_scripts/ssh_keys/testing_rsa
|
|
chmod 400 ${SSH_KEY}
|
|
export GCLIENT_ROOT
|
|
python $(dirname $0)/autotest.py $@ || die "autotest failed."
|
|
|