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

Side by Side Diff: src/scripts/make_autotest.sh

Issue 542068: Enhance autotest run inside chroot. (Closed)
Patch Set: format changes only. Created 10 years, 11 months 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
« no previous file with comments | « no previous file | src/scripts/run_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
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # This script makes autotest client tests inside an Ubuntu chroot 7 # This script makes autotest client tests inside an Ubuntu chroot
8 # environment. The idea is to compile any platform-dependent autotest 8 # environment. The idea is to compile any platform-dependent autotest
9 # client tests in the build environment, since client systems under 9 # client tests in the build environment, since client systems under
10 # test lack the proper toolchain. 10 # test lack the proper toolchain.
(...skipping 17 matching lines...) Expand all
28 28
29 AUTOTEST_SRC="${GCLIENT_ROOT}/src/third_party/autotest/files" 29 AUTOTEST_SRC="${GCLIENT_ROOT}/src/third_party/autotest/files"
30 # Destination in chroot to install autotest. 30 # Destination in chroot to install autotest.
31 AUTOTEST_DEST="/usr/local/autotest" 31 AUTOTEST_DEST="/usr/local/autotest"
32 32
33 # Copy a local "installation" of autotest into the chroot, to avoid 33 # Copy a local "installation" of autotest into the chroot, to avoid
34 # polluting the src dir with tmp files, results, etc. 34 # polluting the src dir with tmp files, results, etc.
35 echo -n "Installing Autotest... " 35 echo -n "Installing Autotest... "
36 sudo mkdir -p ${AUTOTEST_DEST} 36 sudo mkdir -p ${AUTOTEST_DEST}
37 sudo chmod 777 ${AUTOTEST_DEST} 37 sudo chmod 777 ${AUTOTEST_DEST}
38 cp -rpf ${CHROOT_TRUNK_DIR}/src/third_party/autotest/files/{client,server,tko,ut ils,global_config.ini,shadow_config.ini} ${AUTOTEST_DEST} 38 cd ${CHROOT_TRUNK_DIR}/src/third_party/autotest/files
39 cp -fpru {client,conmux,server,tko,utils,global_config.ini,shadow_config.ini} \
40 ${AUTOTEST_DEST}
39 41
40 # Create python package init files for top level test case dirs. 42 # Create python package init files for top level test case dirs.
41 function touchInitPy() { 43 function touchInitPy() {
42 local dirs=${1} 44 local dirs=${1}
43 for base_dir in $dirs 45 for base_dir in $dirs
44 do 46 do
45 local sub_dirs="$(find ${base_dir} -maxdepth 1 -type d)" 47 local sub_dirs="$(find ${base_dir} -maxdepth 1 -type d)"
46 for sub_dir in ${sub_dirs} 48 for sub_dir in ${sub_dirs}
47 do 49 do
48 touch ${sub_dir}/__init__.py 50 touch ${sub_dir}/__init__.py
49 done 51 done
50 touch ${base_dir}/__init__.py 52 touch ${base_dir}/__init__.py
51 done 53 done
52 } 54 }
53 55
54 cd ${AUTOTEST_DEST} 56 cd ${AUTOTEST_DEST}
55 touchInitPy client/tests client/site_tests 57 touchInitPy client/tests client/site_tests
56 touch __init__.py 58 touch __init__.py
57 59
58 # run the magic test setup script. 60 # run the magic test setup script.
59 client/bin/autotest client/site_tests/setup/control 61 client/bin/autotest client/site_tests/setup/control
OLDNEW
« no previous file with comments | « no previous file | src/scripts/run_autotest.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698