| # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=2 |
| CROS_WORKON_COMMIT="dcaa5bc8fda657f6b06b1e41adfe2a28a2c922f1" |
| CROS_WORKON_TREE="e63305a546dcacd0cf94ff023ea6c41acf41698f" |
| CROS_WORKON_PROJECT="chromiumos/third_party/autotest" |
| |
| CONFLICT_LIST="chromeos-base/autotest-tests-0.0.1-r596" |
| |
| inherit toolchain-funcs flag-o-matic cros-workon autotest conflict |
| |
| DESCRIPTION="login_OwnershipApi autotest" |
| HOMEPAGE="http://www.chromium.org/" |
| SRC_URI="" |
| LICENSE="GPL-2" |
| SLOT="0" |
| KEYWORDS="x86 arm amd64" |
| |
| IUSE="+autox +xset +tpmtools hardened" |
| # Enable autotest by default. |
| IUSE="${IUSE} +autotest" |
| |
| RDEPEND="${RDEPEND} |
| chromeos-base/shill-test-scripts |
| chromeos-base/chromeos-chrome |
| chromeos-base/protofiles |
| chromeos-base/telemetry |
| dev-libs/protobuf |
| dev-python/pygobject |
| autox? ( chromeos-base/autox ) |
| " |
| |
| DEPEND="${RDEPEND}" |
| |
| IUSE_TESTS=" |
| # Uses chrome test dependency. |
| +tests_login_MultipleSessions |
| +tests_login_GuestAndActualSession |
| +tests_login_MultiUserPolicy |
| +tests_login_OwnershipApi |
| +tests_login_OwnershipNotRetaken |
| +tests_login_OwnershipRetaken |
| +tests_login_OwnershipTaken |
| +tests_login_RemoteOwnership |
| +tests_login_UserPolicyKeys |
| |
| # Tests that depend on telemetry. |
| +tests_login_OwnershipTakenTelemetry |
| " |
| |
| IUSE="${IUSE} ${IUSE_TESTS}" |
| |
| CROS_WORKON_LOCALNAME=../third_party/autotest |
| CROS_WORKON_SUBDIR=files |
| |
| AUTOTEST_DEPS_LIST="" |
| AUTOTEST_CONFIG_LIST="" |
| AUTOTEST_PROFILERS_LIST="" |
| |
| AUTOTEST_FILE_MASK="*.a *.tar.bz2 *.tbz2 *.tgz *.tar.gz" |
| |
| src_prepare() { |
| # Telemetry tests require the path to telemetry source to exist in order to |
| # build. Copy the telemetry source to a temporary directory that is writable, |
| # so that file removals in Telemetry source can be performed properly. |
| export TMP_DIR="$(mktemp -d)" |
| cp -r "${SYSROOT}/usr/local/telemetry" "${TMP_DIR}" |
| export PYTHONPATH="${TMP_DIR}/telemetry/src/tools/telemetry" |
| autotest_src_prepare |
| } |
| |
| |