Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 1 | # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | |
| 4 | # |
| 5 | # Original Author: The Chromium OS Authors <chromium-os-dev@chromium.org> |
| 6 | # Purpose: Eclass for handling autotest test packages |
| 7 | # |
| 8 | |
Zdenek Behan | 9e98f32 | 2010-08-26 18:56:54 -0700 | [diff] [blame] | 9 | RDEPEND="( autotest? ( >=chromeos-base/autotest-0.0.1-r3 ) )" |
Zdenek Behan | 14ae489 | 2010-08-26 15:25:30 -0700 | [diff] [blame] | 10 | # HACK: all packages should get autotest-deps for now |
| 11 | if ! [ "${PN}" = "autotest-deps" ]; then |
| 12 | RDEPEND="${RDEPEND} ( autotest? ( chromeos-base/autotest-deps ) )" |
| 13 | fi |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 14 | DEPEND="${RDEPEND}" |
| 15 | |
Zdenek Behan | 14ae489 | 2010-08-26 15:25:30 -0700 | [diff] [blame] | 16 | IUSE="buildcheck autotest" |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 17 | |
| 18 | # Ensure the configures run by autotest pick up the right config.site |
Zdenek Behan | 99bf584 | 2010-08-04 17:23:38 -0700 | [diff] [blame] | 19 | export CONFIG_SITE="/usr/share/config.site" |
| 20 | export AUTOTEST_WORKDIR="${WORKDIR}/autotest-work" |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 21 | |
Zdenek Behan | cd997a3 | 2010-08-20 12:55:44 -0700 | [diff] [blame] | 22 | # @ECLASS-VARIABLE: AUTOTEST_CLIENT_* |
| 23 | # @DESCRIPTION: |
| 24 | # Location of the appropriate test directory inside ${S} |
| 25 | : ${AUTOTEST_CLIENT_TESTS:=client/tests} |
| 26 | : ${AUTOTEST_CLIENT_SITE_TESTS:=client/site_tests} |
| 27 | : ${AUTOTEST_SERVER_TESTS:=server/tests} |
| 28 | : ${AUTOTEST_SERVER_SITE_TESTS:=server/site_tests} |
Zdenek Behan | 41463c9 | 2010-08-23 12:12:31 -0700 | [diff] [blame] | 29 | : ${AUTOTEST_CONFIG:=client/config} |
| 30 | : ${AUTOTEST_DEPS:=client/deps} |
| 31 | : ${AUTOTEST_PROFILERS:=client/profilers} |
| 32 | |
| 33 | # @ECLASS-VARIABLE: AUTOTEST_*_LIST |
| 34 | # @DESCRIPTION: |
| 35 | # The list of deps/configs/profilers provided with this package |
| 36 | : ${AUTOTEST_CONFIG_LIST:=*} |
| 37 | : ${AUTOTEST_DEPS_LIST:=*} |
| 38 | : ${AUTOTEST_PROFILERS_LIST:=*} |
Zdenek Behan | cd997a3 | 2010-08-20 12:55:44 -0700 | [diff] [blame] | 39 | |
Zdenek Behan | d012b76 | 2010-09-01 21:22:26 -0700 | [diff] [blame] | 40 | # @ECLASS-VARIABLE: AUTOTEST_FORCE_LIST |
| 41 | # @DESCRIPTION: |
| 42 | # Sometimes we just want to forget about useflags and build what's inside |
| 43 | : ${AUTOTEST_FORCE_TEST_LIST:=} |
| 44 | |
| 45 | function get_test_list() { |
| 46 | if [ -n "${AUTOTEST_FORCE_TEST_LIST}" ]; then |
| 47 | # list forced |
| 48 | echo "${AUTOTEST_FORCE_TEST_LIST}" |
| 49 | return |
| 50 | fi |
| 51 | |
| 52 | # we cache the result of this operation in AUTOTEST_TESTS, |
| 53 | # because it's expensive and does not change over the course of one ebuild run |
| 54 | local result="${IUSE_TESTS//[+-]tests_/}" |
| 55 | result="${result//tests_/}" |
| 56 | |
| 57 | result=$(for test in ${result}; do use tests_${test} && echo -n "${test} "; done) |
| 58 | echo "${result}" |
| 59 | } |
| 60 | |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 61 | # Pythonify the list of packages |
| 62 | function pythonify_test_list() { |
| 63 | local result |
Zdenek Behan | d012b76 | 2010-09-01 21:22:26 -0700 | [diff] [blame] | 64 | result=$(for test in $*; do echo -n "${test},"; done) |
Zdenek Behan | 31315b3 | 2010-08-05 16:34:39 -0700 | [diff] [blame] | 65 | echo ${result} |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 66 | } |
| 67 | |
| 68 | # Create python package init files for top level test case dirs. |
| 69 | function touch_init_py() { |
| 70 | local dirs=${1} |
| 71 | for base_dir in $dirs |
| 72 | do |
| 73 | local sub_dirs="$(find ${base_dir} -maxdepth 1 -type d)" |
| 74 | for sub_dir in ${sub_dirs} |
| 75 | do |
| 76 | touch ${sub_dir}/__init__.py |
| 77 | done |
| 78 | touch ${base_dir}/__init__.py |
| 79 | done |
| 80 | } |
| 81 | |
| 82 | function setup_cross_toolchain() { |
| 83 | if tc-is-cross-compiler ; then |
| 84 | tc-export CC CXX AR RANLIB LD NM STRIP |
| 85 | export PKG_CONFIG_PATH="${ROOT}/usr/lib/pkgconfig/" |
| 86 | export CCFLAGS="$CFLAGS" |
| 87 | fi |
| 88 | |
| 89 | # TODO(fes): Check for /etc/hardened for now instead of the hardened |
| 90 | # use flag because we aren't enabling hardened on the target board. |
| 91 | # Rather, right now we're using hardened only during toolchain compile. |
| 92 | # Various tests/etc. use %ebx in here, so we have to turn off PIE when |
| 93 | # using the hardened compiler |
| 94 | if use x86 ; then |
| 95 | if use hardened ; then |
| 96 | #CC="${CC} -nopie" |
| 97 | append-flags -nopie |
| 98 | fi |
| 99 | fi |
| 100 | } |
| 101 | |
| 102 | function create_autotest_workdir() { |
| 103 | local dst=${1} |
| 104 | |
| 105 | # create a working enviroment for pre-building |
Zdenek Behan | 99bf584 | 2010-08-04 17:23:38 -0700 | [diff] [blame] | 106 | ln -sf "${SYSROOT}"/usr/local/autotest/{conmux,tko,utils,global_config.ini,shadow_config.ini} "${dst}"/ |
| 107 | |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 108 | # NOTE: in order to make autotest not notice it's running from /usr/local/, we need |
| 109 | # to make sure the binaries are real, because they do the path magic |
| 110 | local root_path base_path |
| 111 | for base_path in client client/bin; do |
| 112 | root_path="${SYSROOT}/usr/local/autotest/${base_path}" |
| 113 | mkdir -p "${dst}/${base_path}" |
| 114 | |
Zdenek Behan | 451e07f | 2010-08-06 11:25:37 -0700 | [diff] [blame] | 115 | # Skip bin, because it is processed separately, and test-provided dirs |
| 116 | # Also don't symlink to packages, because that kills the build |
Zdenek Behan | 41463c9 | 2010-08-23 12:12:31 -0700 | [diff] [blame] | 117 | for entry in $(ls "${root_path}" | \ |
| 118 | grep -v "\(bin\|tests\|site_tests\|config\|deps\|profilers\|packages\)$"); do |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 119 | ln -sf "${root_path}/${entry}" "${dst}/${base_path}/" |
| 120 | done |
| 121 | done |
| 122 | # replace the important binaries with real copies |
| 123 | for base_path in autotest autotest_client; do |
| 124 | root_path="${SYSROOT}/usr/local/autotest/client/bin/${base_path}" |
| 125 | rm "${dst}/client/bin/${base_path}" |
| 126 | cp -f ${root_path} "${dst}/client/bin/${base_path}" |
| 127 | done |
Zdenek Behan | 448ddaa | 2010-08-24 11:18:50 -0700 | [diff] [blame] | 128 | |
| 129 | # Selectively pull in deps that are not provided by the current test package |
| 130 | for base_path in config deps profilers; do |
| 131 | for dir in "${SYSROOT}/usr/local/autotest/client/${base_path}"/*; do |
| 132 | if [ -d "${dir}" ] && \ |
| 133 | ! [ -d "${AUTOTEST_WORKDIR}/client/${base_path}/$(basename ${dir})" ]; then |
| 134 | # directory does not exist, create a symlink |
| 135 | ln -sf "${dir}" "${AUTOTEST_WORKDIR}/client/${base_path}/$(basename ${dir})" |
| 136 | fi |
| 137 | done |
| 138 | done |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 139 | } |
| 140 | |
| 141 | function print_test_dirs() { |
| 142 | local testroot="${1}" |
| 143 | |
| 144 | pushd "${testroot}" 1> /dev/null |
| 145 | for test in *; do |
| 146 | if [ -d "${test}" ] && [ -f "${test}/${test}".py ]; then |
| 147 | echo "${test}" |
| 148 | fi |
| 149 | done |
| 150 | popd 1> /dev/null |
| 151 | } |
| 152 | |
Zdenek Behan | eee7bc2 | 2010-08-20 18:33:13 -0700 | [diff] [blame] | 153 | # checks IUSE_TESTS and sees if at least one of these is enabled |
| 154 | function are_we_used() { |
Zdenek Behan | 14ae489 | 2010-08-26 15:25:30 -0700 | [diff] [blame] | 155 | if ! use autotest; then |
| 156 | # unused |
| 157 | return 1 |
| 158 | fi |
| 159 | |
Zdenek Behan | d012b76 | 2010-09-01 21:22:26 -0700 | [diff] [blame] | 160 | [ -n "$(get_test_list)" ] && return 0 |
Zdenek Behan | eee7bc2 | 2010-08-20 18:33:13 -0700 | [diff] [blame] | 161 | |
| 162 | # unused |
| 163 | return 1 |
| 164 | } |
| 165 | |
Zdenek Behan | 99bf584 | 2010-08-04 17:23:38 -0700 | [diff] [blame] | 166 | function autotest_src_prepare() { |
Zdenek Behan | eee7bc2 | 2010-08-20 18:33:13 -0700 | [diff] [blame] | 167 | are_we_used || return 0 |
| 168 | einfo "Preparing tests" |
| 169 | |
| 170 | # FIXME: These directories are needed, autotest quietly dies if |
| 171 | # they don't even exist. They may, however, stay empty. |
Zdenek Behan | c02fc47 | 2010-08-13 12:55:07 -0700 | [diff] [blame] | 172 | mkdir -p "${AUTOTEST_WORKDIR}"/client/tests |
| 173 | mkdir -p "${AUTOTEST_WORKDIR}"/client/site_tests |
Zdenek Behan | 41463c9 | 2010-08-23 12:12:31 -0700 | [diff] [blame] | 174 | mkdir -p "${AUTOTEST_WORKDIR}"/client/config |
| 175 | mkdir -p "${AUTOTEST_WORKDIR}"/client/deps |
| 176 | mkdir -p "${AUTOTEST_WORKDIR}"/client/profilers |
Zdenek Behan | c02fc47 | 2010-08-13 12:55:07 -0700 | [diff] [blame] | 177 | mkdir -p "${AUTOTEST_WORKDIR}"/server/tests |
| 178 | mkdir -p "${AUTOTEST_WORKDIR}"/server/site_tests |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 179 | |
Zdenek Behan | d012b76 | 2010-09-01 21:22:26 -0700 | [diff] [blame] | 180 | TEST_LIST=$(get_test_list) |
| 181 | |
Zdenek Behan | 448ddaa | 2010-08-24 11:18:50 -0700 | [diff] [blame] | 182 | # Pull in the individual test cases. |
Zdenek Behan | 31315b3 | 2010-08-05 16:34:39 -0700 | [diff] [blame] | 183 | for l1 in client server; do |
| 184 | for l2 in site_tests tests; do |
Zdenek Behan | cd997a3 | 2010-08-20 12:55:44 -0700 | [diff] [blame] | 185 | # pick up the indicated location of test sources |
| 186 | eval srcdir=${WORKDIR}/${P}/\${AUTOTEST_${l1^^*}_${l2^^*}} |
| 187 | |
Zdenek Behan | d012b76 | 2010-09-01 21:22:26 -0700 | [diff] [blame] | 188 | # test does have this directory |
| 189 | for test in ${TEST_LIST}; do |
| 190 | if [ -d "${srcdir}/${test}" ]; then |
Zdenek Behan | 4f5f76e | 2010-09-14 14:13:16 -0700 | [diff] [blame] | 191 | cp -fprl "${srcdir}/${test}" "${AUTOTEST_WORKDIR}/${l1}/${l2}"/ || die |
Zdenek Behan | d012b76 | 2010-09-01 21:22:26 -0700 | [diff] [blame] | 192 | fi |
| 193 | done |
Zdenek Behan | 31315b3 | 2010-08-05 16:34:39 -0700 | [diff] [blame] | 194 | done |
| 195 | done |
Zdenek Behan | 99bf584 | 2010-08-04 17:23:38 -0700 | [diff] [blame] | 196 | |
Zdenek Behan | 448ddaa | 2010-08-24 11:18:50 -0700 | [diff] [blame] | 197 | # Pull in all the deps provided by this package, selectively. |
Zdenek Behan | 41463c9 | 2010-08-23 12:12:31 -0700 | [diff] [blame] | 198 | for l2 in config deps profilers; do |
| 199 | # pick up the indicated location of test sources |
| 200 | eval srcdir=${WORKDIR}/${P}/\${AUTOTEST_${l2^^*}} |
| 201 | |
| 202 | if [ -d "${srcdir}" ]; then # test does have this directory |
| 203 | pushd "${srcdir}" 1> /dev/null |
| 204 | eval deplist=\${AUTOTEST_${l2^^*}_LIST} |
| 205 | |
| 206 | if [ "${deplist}" = "*" ]; then |
Zdenek Behan | 4f5f76e | 2010-09-14 14:13:16 -0700 | [diff] [blame] | 207 | cp -fprl * "${AUTOTEST_WORKDIR}/client/${l2}" |
Zdenek Behan | 41463c9 | 2010-08-23 12:12:31 -0700 | [diff] [blame] | 208 | else |
| 209 | for dir in ${deplist}; do |
Zdenek Behan | 4f5f76e | 2010-09-14 14:13:16 -0700 | [diff] [blame] | 210 | cp -fprl "${dir}" "${AUTOTEST_WORKDIR}/client/${l2}"/ || die |
Zdenek Behan | 41463c9 | 2010-08-23 12:12:31 -0700 | [diff] [blame] | 211 | done |
| 212 | fi |
| 213 | popd 1> /dev/null |
| 214 | fi |
| 215 | done |
| 216 | |
Zdenek Behan | 474fbae | 2010-08-20 21:13:22 -0700 | [diff] [blame] | 217 | # FIXME: We'd like if this were not necessary, and autotest supported out-of-tree build |
Zdenek Behan | 99bf584 | 2010-08-04 17:23:38 -0700 | [diff] [blame] | 218 | create_autotest_workdir "${AUTOTEST_WORKDIR}" |
Zdenek Behan | eee7bc2 | 2010-08-20 18:33:13 -0700 | [diff] [blame] | 219 | |
Zdenek Behan | f93c208a | 2010-09-21 18:53:58 -0700 | [diff] [blame] | 220 | # Each test directory needs to be visited and have an __init__.py created. |
| 221 | # However, that only applies to the directories which have a main .py file. |
| 222 | pushd "${AUTOTEST_WORKDIR}" 1> /dev/null |
| 223 | for dir in client/tests client/site_tests server/tests server/site_tests; do |
| 224 | pushd "${dir}" 1> /dev/null |
| 225 | for sub in *; do |
| 226 | [ -f "${sub}/${sub}.py" ] || continue |
Zdenek Behan | 1ec164a | 2010-08-17 19:06:31 -0700 | [diff] [blame] | 227 | |
Zdenek Behan | f93c208a | 2010-09-21 18:53:58 -0700 | [diff] [blame] | 228 | touch_init_py ${sub} |
| 229 | done |
| 230 | popd 1> /dev/null |
Zdenek Behan | 1ec164a | 2010-08-17 19:06:31 -0700 | [diff] [blame] | 231 | done |
Zdenek Behan | f93c208a | 2010-09-21 18:53:58 -0700 | [diff] [blame] | 232 | popd 1> /dev/null |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 233 | |
| 234 | # Cleanup checked-in binaries that don't support the target architecture |
| 235 | [[ ${E_MACHINE} == "" ]] && return 0; |
Zdenek Behan | 092f463 | 2010-09-21 19:34:01 -0700 | [diff] [blame^] | 236 | rm -fv $( scanelf -RmyBF%a "${AUTOTEST_WORKDIR}" | grep -v -e ^${E_MACHINE} ) |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 237 | } |
| 238 | |
| 239 | function autotest_src_compile() { |
Zdenek Behan | eee7bc2 | 2010-08-20 18:33:13 -0700 | [diff] [blame] | 240 | are_we_used || return 0 |
| 241 | einfo "Compiling tests" |
| 242 | |
Zdenek Behan | 31315b3 | 2010-08-05 16:34:39 -0700 | [diff] [blame] | 243 | pushd "${AUTOTEST_WORKDIR}" 1> /dev/null |
Zdenek Behan | 99bf584 | 2010-08-04 17:23:38 -0700 | [diff] [blame] | 244 | |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 245 | setup_cross_toolchain |
| 246 | |
| 247 | if use opengles ; then |
| 248 | graphics_backend=OPENGLES |
| 249 | else |
| 250 | graphics_backend=OPENGL |
| 251 | fi |
| 252 | |
Zdenek Behan | 8ad6525 | 2010-09-07 12:35:19 -0700 | [diff] [blame] | 253 | # This only prints the tests that have the associated .py |
| 254 | # (and therefore a setup function) |
| 255 | local prebuild_test_dirs=" |
| 256 | client/tests client/site_tests |
| 257 | server/tests server/site_tests" |
| 258 | TESTS=$(\ |
| 259 | for dir in ${prebuild_test_dirs}; do |
| 260 | print_test_dirs "${AUTOTEST_WORKDIR}/${dir}" |
| 261 | done | sort | uniq |
| 262 | ) |
| 263 | einfo "Building tests ($(echo ${TESTS}|wc -w)):" |
| 264 | einfo "${TESTS}" |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 265 | |
Zdenek Behan | 402fea0 | 2010-09-14 13:50:09 -0700 | [diff] [blame] | 266 | NORMAL=$(echo -e "\e[0m") |
| 267 | GREEN=$(echo -e "\e[1;32m") |
| 268 | RED=$(echo -e "\e[1;31m") |
| 269 | |
Zdenek Behan | 448ddaa | 2010-08-24 11:18:50 -0700 | [diff] [blame] | 270 | # Call autotest to prebuild all test cases. |
Zdenek Behan | 402fea0 | 2010-09-14 13:50:09 -0700 | [diff] [blame] | 271 | # Parse output through a colorifying sed script |
| 272 | ( GRAPHICS_BACKEND="$graphics_backend" LOGNAME=${SUDO_USER} \ |
Zdenek Behan | d012b76 | 2010-09-01 21:22:26 -0700 | [diff] [blame] | 273 | client/bin/autotest_client --quiet \ |
| 274 | --client_test_setup=$(pythonify_test_list ${TESTS}) \ |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 275 | || ! use buildcheck || die "Tests failed to build." |
Zdenek Behan | 402fea0 | 2010-09-14 13:50:09 -0700 | [diff] [blame] | 276 | ) | sed -e "s/\(INFO:root:setup\)/${GREEN}* \1${NORMAL}/" \ |
| 277 | -e "s/\(ERROR:root:\[.*\]\)/${RED}\1${NORMAL}/" |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 278 | |
| 279 | # Cleanup some temp files after compiling |
Zdenek Behan | 9f6fb9a | 2010-08-25 13:17:59 -0700 | [diff] [blame] | 280 | find . -name '*.[do]' -delete |
Zdenek Behan | 31315b3 | 2010-08-05 16:34:39 -0700 | [diff] [blame] | 281 | |
| 282 | popd 1> /dev/null |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 283 | } |
| 284 | |
| 285 | function autotest_src_install() { |
Zdenek Behan | eee7bc2 | 2010-08-20 18:33:13 -0700 | [diff] [blame] | 286 | are_we_used || return 0 |
| 287 | einfo "Installing tests" |
| 288 | |
Zdenek Behan | 448ddaa | 2010-08-24 11:18:50 -0700 | [diff] [blame] | 289 | # Install all test cases, after setup has been called on them. |
| 290 | # We install everything, because nothing else is copied into the |
| 291 | # testcase directories besides what this package provides. |
Zdenek Behan | 1ec164a | 2010-08-17 19:06:31 -0700 | [diff] [blame] | 292 | local instdirs=" |
| 293 | client/tests |
| 294 | client/site_tests |
Zdenek Behan | 1ec164a | 2010-08-17 19:06:31 -0700 | [diff] [blame] | 295 | server/tests |
| 296 | server/site_tests" |
| 297 | |
| 298 | for dir in ${instdirs}; do |
Zdenek Behan | cd997a3 | 2010-08-20 12:55:44 -0700 | [diff] [blame] | 299 | [ -d "${AUTOTEST_WORKDIR}/${dir}" ] || continue |
Zdenek Behan | 1ec164a | 2010-08-17 19:06:31 -0700 | [diff] [blame] | 300 | |
| 301 | insinto /usr/local/autotest/$(dirname ${dir}) |
| 302 | doins -r "${AUTOTEST_WORKDIR}/${dir}" |
| 303 | done |
| 304 | |
Zdenek Behan | 448ddaa | 2010-08-24 11:18:50 -0700 | [diff] [blame] | 305 | # Install the deps, configs, profilers. |
| 306 | # Difference from above is, we don't install the whole thing, just |
| 307 | # the stuff provided by this package, by looking at AUTOTEST_*_LIST. |
| 308 | instdirs=" |
| 309 | config |
| 310 | deps |
| 311 | profilers" |
| 312 | |
| 313 | for dir in ${instdirs}; do |
| 314 | [ -d "${AUTOTEST_WORKDIR}/client/${dir}" ] || continue |
| 315 | |
| 316 | insinto /usr/local/autotest/client/${dir} |
| 317 | |
| 318 | eval provided=\${AUTOTEST_${dir^^*}_LIST} |
| 319 | # * means provided all, figure out the list from ${S} |
| 320 | if [ "${provided}" = "*" ]; then |
| 321 | if eval pushd "${WORKDIR}/${P}/\${AUTOTEST_${dir^^*}}" &> /dev/null; then |
| 322 | provided=$(ls) |
| 323 | popd 1> /dev/null |
| 324 | else |
| 325 | provided="" |
| 326 | fi |
| 327 | fi |
| 328 | |
| 329 | for item in ${provided}; do |
| 330 | doins -r "${AUTOTEST_WORKDIR}/client/${dir}/${item}" |
| 331 | done |
| 332 | done |
| 333 | |
Zdenek Behan | 1ec164a | 2010-08-17 19:06:31 -0700 | [diff] [blame] | 334 | # TODO: Not all needs to be executable, but it's hard to pick selectively. |
| 335 | # The source repo should already contain stuff with the right permissions. |
| 336 | chmod -R a+x "${D}"/usr/local/autotest/* |
Zdenek Behan | 12ad1c5 | 2010-08-03 16:34:37 -0700 | [diff] [blame] | 337 | } |
| 338 | |
Zdenek Behan | 474fbae | 2010-08-20 21:13:22 -0700 | [diff] [blame] | 339 | EXPORT_FUNCTIONS src_compile src_prepare src_install |