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 # Distributed under the terms of the GNU General Public License v2 | 2 # Distributed under the terms of the GNU General Public License v2 |
3 | 3 |
4 EAPI=2 | 4 EAPI=2 |
5 | 5 |
6 inherit toolchain-funcs flag-o-matic cros-workon | 6 inherit toolchain-funcs flag-o-matic cros-workon |
7 | 7 |
8 DESCRIPTION="Autotest scripts and tools" | 8 DESCRIPTION="Autotest scripts and tools" |
9 HOMEPAGE="http://src.chromium.org" | 9 HOMEPAGE="http://src.chromium.org" |
10 SRC_URI="" | 10 SRC_URI="" |
(...skipping 17 matching lines...) Expand all Loading... |
28 src_prepare() { | 28 src_prepare() { |
29 mkdir -p "${AUTOTEST_WORK}/client" | 29 mkdir -p "${AUTOTEST_WORK}/client" |
30 mkdir -p "${AUTOTEST_WORK}/server" | 30 mkdir -p "${AUTOTEST_WORK}/server" |
31 cp -fpu "${S}"/client/* "${AUTOTEST_WORK}/client" &>/dev/null | 31 cp -fpu "${S}"/client/* "${AUTOTEST_WORK}/client" &>/dev/null |
32 cp -fpru "${S}"/client/{bin,common_lib,tools} "${AUTOTEST_WORK}/client" | 32 cp -fpru "${S}"/client/{bin,common_lib,tools} "${AUTOTEST_WORK}/client" |
33 cp -fpu "${S}"/server/* "${AUTOTEST_WORK}/server" &>/dev/null | 33 cp -fpu "${S}"/server/* "${AUTOTEST_WORK}/server" &>/dev/null |
34 cp -fpru "${S}"/server/{bin,control_segments,hosts} "${AUTOTEST_WORK}/se
rver" | 34 cp -fpru "${S}"/server/{bin,control_segments,hosts} "${AUTOTEST_WORK}/se
rver" |
35 cp -fpru "${S}"/{conmux,tko,utils} "${AUTOTEST_WORK}" | 35 cp -fpru "${S}"/{conmux,tko,utils} "${AUTOTEST_WORK}" |
36 cp -fpru "${S}"/shadow_config.ini "${AUTOTEST_WORK}" | 36 cp -fpru "${S}"/shadow_config.ini "${AUTOTEST_WORK}" |
37 | 37 |
| 38 # cros directory is not from autotest upstream but cros project specific
. |
| 39 cp -fpru "${S}"/client/cros "${AUTOTEST_WORK}/client" |
| 40 cp -fpru "${S}"/server/cros "${AUTOTEST_WORK}/server" |
| 41 |
38 sed "/^enable_server_prebuild/d" "${S}/global_config.ini" > \ | 42 sed "/^enable_server_prebuild/d" "${S}/global_config.ini" > \ |
39 "${AUTOTEST_WORK}/global_config.ini" | 43 "${AUTOTEST_WORK}/global_config.ini" |
40 } | 44 } |
41 | 45 |
42 src_install() { | 46 src_install() { |
43 insinto /usr/local/autotest | 47 insinto /usr/local/autotest |
44 doins -r "${AUTOTEST_WORK}"/* | 48 doins -r "${AUTOTEST_WORK}"/* |
45 | 49 |
46 # base __init__.py | 50 # base __init__.py |
47 touch "${D}"/usr/local/autotest/__init__.py | 51 touch "${D}"/usr/local/autotest/__init__.py |
(...skipping 15 matching lines...) Expand all Loading... |
63 # setup stuff needed for read/write operation | 67 # setup stuff needed for read/write operation |
64 dodir "/usr/local/autotest/packages" | 68 dodir "/usr/local/autotest/packages" |
65 chmod a+wx "${D}/usr/local/autotest/packages" | 69 chmod a+wx "${D}/usr/local/autotest/packages" |
66 | 70 |
67 dodir "/usr/local/autotest/client/packages" | 71 dodir "/usr/local/autotest/client/packages" |
68 chmod a+wx "${D}/usr/local/autotest/client/packages" | 72 chmod a+wx "${D}/usr/local/autotest/client/packages" |
69 | 73 |
70 dodir "/usr/local/autotest/server/tmp" | 74 dodir "/usr/local/autotest/server/tmp" |
71 chmod a+wx "${D}/usr/local/autotest/server/tmp" | 75 chmod a+wx "${D}/usr/local/autotest/server/tmp" |
72 } | 76 } |
OLD | NEW |