blob: cb9062e9a607d07ff93506e322a3d9a8d8e3f3fa [file] [log] [blame]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
inherit cros-constants
DESCRIPTION="Meta ebuild for all packages providing tests"
HOMEPAGE="http://www.chromium.org"
LICENSE="GPL-2"
SLOT=0
KEYWORDS="*"
IUSE="-app_shell +bluetooth +cellular +cras +cros_disks +cros_p2p +debugd -chromeless_tty +power_management +shill wimax +tpm"
RDEPEND="
chromeos-base/autotest-client
chromeos-base/autotest-server-tests
bluetooth? ( chromeos-base/autotest-server-tests-bluetooth )
shill? ( chromeos-base/autotest-server-tests-shill )
chromeos-base/autotest-tests
chromeos-base/autotest-tests-cryptohome
chromeos-base/autotest-tests-ltp
chromeos-base/autotest-tests-security
chromeos-base/autotest-factory-install
chromeos-base/autotest-private-all
cellular? (
chromeos-base/autotest-tests-cellular
)
cras? (
chromeos-base/autotest-tests-audio
)
cros_disks? (
chromeos-base/autotest-tests-cros-disks
)
cros_p2p? (
chromeos-base/autotest-tests-p2p
)
!chromeless_tty? (
!app_shell? (
chromeos-base/autotest-tests-graphics
chromeos-base/autotest-tests-ownershipapi
chromeos-base/autotest-server-tests-telemetry
chromeos-base/autotest-tests-touchpad
chromeos-base/autotest-chrome
)
)
debugd? (
chromeos-base/autotest-tests-debugd
)
power_management? (
chromeos-base/autotest-tests-power
)
shill? (
chromeos-base/autotest-tests-shill
)
tpm? (
chromeos-base/autotest-tests-tpm
)
wimax? (
chromeos-base/autotest-tests-wimax
)
"
DEPEND="${RDEPEND}"
SUITE_DEPENDENCIES_FILE="dependency_info"
SUITE_TO_CONTROL_MAP="suite_to_control_file_map"
src_unpack() {
elog "Unpacking..."
mkdir -p "${S}"
touch "${S}/${SUITE_DEPENDENCIES_FILE}"
touch "${S}/${SUITE_TO_CONTROL_MAP}"
}
src_install() {
# So that this package properly owns the file
insinto ${AUTOTEST_BASE}/test_suites
doins "${SUITE_DEPENDENCIES_FILE}"
doins "${SUITE_TO_CONTROL_MAP}"
}
# Pre-processes control files and installs DEPENDENCIES info.
pkg_postinst() {
local root_autotest_dir="${ROOT}${AUTOTEST_BASE}"
python -B "${root_autotest_dir}/site_utils/suite_preprocessor.py" \
-a "${root_autotest_dir}" \
-o "${root_autotest_dir}/test_suites/${SUITE_DEPENDENCIES_FILE}"
python -B "${root_autotest_dir}/site_utils/control_file_preprocessor.py" \
-a "${root_autotest_dir}" \
-o "${root_autotest_dir}/test_suites/${SUITE_TO_CONTROL_MAP}"
}