Chromium Code Reviews| 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 11 matching lines...) Expand all Loading... | |
| 22 CROS_WORKON_PROJECT=autotest | 22 CROS_WORKON_PROJECT=autotest |
| 23 CROS_WORKON_LOCALNAME=../third_party/autotest | 23 CROS_WORKON_LOCALNAME=../third_party/autotest |
| 24 CROS_WORKON_SUBDIR=files | 24 CROS_WORKON_SUBDIR=files |
| 25 | 25 |
| 26 AUTOTEST_WORK="${WORKDIR}/autotest-work" | 26 AUTOTEST_WORK="${WORKDIR}/autotest-work" |
| 27 | 27 |
| 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" |
|
DaleCurtis
2010/12/07 17:43:26
In keeping with style, you should add "cros" here
| |
| 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" |
|
DaleCurtis
2010/12/07 17:43:26
Same as above.
| |
| 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 cp -fpru "${S}"/client/cros "${AUTOTEST_WORK}/client" | |
| 39 cp -fpru "${S}"/server/cros "${AUTOTEST_WORK}/server" | |
| 40 | |
| 38 sed "/^enable_server_prebuild/d" "${S}/global_config.ini" > \ | 41 sed "/^enable_server_prebuild/d" "${S}/global_config.ini" > \ |
| 39 "${AUTOTEST_WORK}/global_config.ini" | 42 "${AUTOTEST_WORK}/global_config.ini" |
| 40 } | 43 } |
| 41 | 44 |
| 42 src_install() { | 45 src_install() { |
| 43 insinto /usr/local/autotest | 46 insinto /usr/local/autotest |
| 44 doins -r "${AUTOTEST_WORK}"/* | 47 doins -r "${AUTOTEST_WORK}"/* |
| 45 | 48 |
| 46 # base __init__.py | 49 # base __init__.py |
| 47 touch "${D}"/usr/local/autotest/__init__.py | 50 touch "${D}"/usr/local/autotest/__init__.py |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 63 # setup stuff needed for read/write operation | 66 # setup stuff needed for read/write operation |
| 64 dodir "/usr/local/autotest/packages" | 67 dodir "/usr/local/autotest/packages" |
| 65 chmod a+wx "${D}/usr/local/autotest/packages" | 68 chmod a+wx "${D}/usr/local/autotest/packages" |
| 66 | 69 |
| 67 dodir "/usr/local/autotest/client/packages" | 70 dodir "/usr/local/autotest/client/packages" |
| 68 chmod a+wx "${D}/usr/local/autotest/client/packages" | 71 chmod a+wx "${D}/usr/local/autotest/client/packages" |
| 69 | 72 |
| 70 dodir "/usr/local/autotest/server/tmp" | 73 dodir "/usr/local/autotest/server/tmp" |
| 71 chmod a+wx "${D}/usr/local/autotest/server/tmp" | 74 chmod a+wx "${D}/usr/local/autotest/server/tmp" |
| 72 } | 75 } |
| OLD | NEW |