blob: fe91b840520ba2dedb5cd94f11635bcee06933fb [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_COMMIT="5e7ef1d06c5419933afff57e61a25d68ffcad345"
CROS_WORKON_TREE="7fab0680d8e1d5e93bba4f50d6c06a88ce549461"
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-python
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
}