Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: autotest_lib.sh

Issue 5278013: Remove unused autotest scripts. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « autotest ('k') | build_autotest.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4 #
5 # Provides common commands for dealing running/building autotest
6
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"
13
14 function check_board() {
15 local board_names=""
16 local index=1
17 local found=0
18 local board_basename=$(echo "${FLAGS_board}" |cut -d '_' -f 1)
19 for overlay_path in "${SRC_ROOT}"/overlays/overlay-*
20 do
21 local overlay=$(basename "${overlay_path}")
22 local board="${overlay#overlay-}"
23 board_names[index]="${board}"
24 index+=1
25 if [ "${board_basename}" == "${board}" ]
26 then
27 found=1
28 fi
29 done
30
31 if [ ${found} -eq 0 ]
32 then
33 echo "You are required to specify a supported board from the command line."
34 echo "Supported boards are:"
35 for board in ${board_names[@]}
36 do
37 echo ${board}
38 done
39 exit 0
40 fi
41 }
42
43
44 # Populates the chroot's /usr/local/autotest/$FLAGS_board directory based on
45 # the given source directory.
46 # args:
47 # $1 - original source directory
48 # $2 - target directory
49 function update_chroot_autotest() {
50 local original=$1
51 local target=$2
52 echo "Updating chroot Autotest from ${original} to ${target}..."
53 sudo mkdir -p "${target}"
54 sudo chmod 777 "${target}"
55 cp -fpru ${original}/{client,conmux,server,tko,utils,global_config.ini,shadow_ config.ini} ${target}
56 }
OLDNEW
« no previous file with comments | « autotest ('k') | build_autotest.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698