OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 # | 4 # |
5 # Provides common commands for dealing running/building autotest | 5 # Provides common commands for dealing running/building autotest |
6 | 6 |
7 DEFINE_string board "" "The board for which you are building autotest" | 7 . "$(dirname "$0")/common.sh" |
| 8 |
| 9 get_default_board |
| 10 |
| 11 DEFINE_string board "$DEFAULT_BOARD" \ |
| 12 "The board for which you are building autotest" |
8 | 13 |
9 function check_board() { | 14 function check_board() { |
10 local board_names="" | 15 local board_names="" |
11 local index=1 | 16 local index=1 |
12 local found=0 | 17 local found=0 |
13 for board in ../overlays/overlay-* | 18 for board in ../overlays/overlay-* |
14 do | 19 do |
15 board_names[index]=${board:20} | 20 board_names[index]=${board:20} |
16 index+=1 | 21 index+=1 |
17 if [ "${FLAGS_board}" == "${board:20}" ] | 22 if [ "${FLAGS_board}" == "${board:20}" ] |
(...skipping 21 matching lines...) Expand all Loading... |
39 # $1 - original source directory | 44 # $1 - original source directory |
40 # $2 - target directory | 45 # $2 - target directory |
41 function update_chroot_autotest() { | 46 function update_chroot_autotest() { |
42 local original=$1 | 47 local original=$1 |
43 local target=$2 | 48 local target=$2 |
44 echo "Updating chroot Autotest from ${original} to ${target}..." | 49 echo "Updating chroot Autotest from ${original} to ${target}..." |
45 sudo mkdir -p "${target}" | 50 sudo mkdir -p "${target}" |
46 sudo chmod 777 "${target}" | 51 sudo chmod 777 "${target}" |
47 cp -fpru ${original}/{client,conmux,server,tko,utils,global_config.ini,shadow_
config.ini} ${target} | 52 cp -fpru ${original}/{client,conmux,server,tko,utils,global_config.ini,shadow_
config.ini} ${target} |
48 } | 53 } |
OLD | NEW |