feat(autotest): add all of the autotest stuff from chromeos

This commit is contained in:
Brandon Philips 2013-02-06 16:46:25 -08:00
parent 4c07794257
commit f5f9ed6fcc
36 changed files with 2279 additions and 0 deletions

View File

@ -0,0 +1 @@
autotest-all-0.0.1.ebuild

View File

@ -0,0 +1,45 @@
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
DESCRIPTION="Meta ebuild for all packages providing tests"
HOMEPAGE="http://www.chromium.org"
LICENSE="GPL-2"
SLOT=0
KEYWORDS="amd64 arm x86"
IUSE=""
RDEPEND="
chromeos-base/autotest-tests
chromeos-base/autotest-tests-ltp
chromeos-base/autotest-tests-ownershipapi
chromeos-base/autotest-chrome
chromeos-base/autotest-factory
chromeos-base/autotest-private
"
DEPEND="${RDEPEND}"
SUITE_DEPENDENCIES_FILE="dependency_info"
src_unpack() {
elog "Unpacking..."
mkdir -p "${S}"
touch "${S}/${SUITE_DEPENDENCIES_FILE}"
}
src_install() {
# So that this package properly owns the file
insinto /usr/local/autotest/test_suites
doins "${SUITE_DEPENDENCIES_FILE}"
}
# Pre-processes control files and installs DEPENDENCIES info.
pkg_postinst() {
local root_autotest_dir="${ROOT}/usr/local/autotest"
python -B "${root_autotest_dir}/site_utils/suite_preprocessor.py" \
-a "${root_autotest_dir}" \
-o "${root_autotest_dir}/test_suites/${SUITE_DEPENDENCIES_FILE}"
}

View File

@ -0,0 +1,119 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_COMMIT="c04bdd4a43f9a240961c8fb07afc1386fddb5826"
CROS_WORKON_TREE="fb8c4062f8c8ed9467124d53053e7c108d1eab34"
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
inherit toolchain-funcs flag-o-matic cros-workon autotest
DESCRIPTION="Autotest tests that require chrome_test or pyauto deps"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 arm amd64"
# Enable autotest by default.
IUSE="${IUSE} +autotest"
RDEPEND="
chromeos-base/autotest-tests
chromeos-base/chromeos-chrome
chromeos-base/flimflam-test
tests_audiovideo_PlaybackRecordSemiAuto? ( media-sound/alsa-utils )
"
DEPEND="${RDEPEND}"
IUSE_TESTS=(
# Inherits from enterprise_ui_test.
+tests_desktopui_EnterprisePolicy
# Uses chrome_test dependency.
+tests_audiovideo_FFMPEG
+tests_audiovideo_VDA
# Inherits from cros_ui_test.
+tests_desktopui_BrowserTest
+tests_desktopui_DocViewing
+tests_desktopui_PyAutoEnduranceTests
+tests_desktopui_PyAutoFunctionalTests
+tests_desktopui_PyAutoInstall
+tests_desktopui_PyAutoPerfTests
+tests_desktopui_SyncIntegrationTests
+tests_audiovideo_PlaybackRecordSemiAuto
+tests_desktopui_AudioFeedback
+tests_desktopui_ChromeSemiAuto
+tests_desktopui_FlashSanityCheck
+tests_desktopui_IBusTest
+tests_desktopui_ImeTest
+tests_desktopui_LoadBigFile
+tests_desktopui_MediaAudioFeedback
+tests_desktopui_NaClSanity
+tests_desktopui_ScreenLocker
+tests_desktopui_SimpleLogin
tests_desktopui_TouchScreen
+tests_desktopui_UrlFetch
+tests_desktopui_WebRTC
+tests_desktopui_VideoSanity
+tests_desktopui_YouTubeHTML5
+tests_enterprise_DevicePolicy
+tests_graphics_GLAPICheck
+tests_graphics_GpuReset
+tests_graphics_Piglit
+tests_graphics_SanAngeles
+tests_graphics_TearTest
+tests_graphics_VTSwitch
+tests_graphics_WebGLConformance
+tests_graphics_WebGLPerformance
+tests_graphics_WindowManagerGraphicsCapture
+tests_hardware_BluetoothSemiAuto
+tests_hardware_ExternalDrives
+tests_hardware_USB20
+tests_hardware_UsbPlugIn
tests_logging_AsanCrash
+tests_logging_UncleanShutdown
+tests_login_BadAuthentication
+tests_login_ChromeProfileSanitary
+tests_login_CryptohomeIncognitoMounted
+tests_login_CryptohomeIncognitoUnmounted
+tests_login_CryptohomeMounted
+tests_login_CryptohomeUnmounted
+tests_login_LoginSuccess
+tests_login_LogoutProcessCleanup
+tests_login_RemoteLogin
+tests_network_3GSuspendResume
+tests_network_NavigateToUrl
+tests_network_ONC
+tests_platform_Pkcs11InitOnLogin
+tests_platform_Pkcs11Persistence
+tests_platform_ProcessPrivileges
+tests_power_AudioDetector
+tests_power_Consumption
+tests_power_Idle
+tests_power_LoadTest
+tests_power_SuspendStress
+tests_power_UiResume
+tests_power_VideoDetector
+tests_power_VideoSuspend
+tests_realtimecomm_GTalkAudioPlayground
+tests_realtimecomm_GTalkPlayground
+tests_security_BluetoothUIXSS
+tests_security_BundledExtensions
+tests_security_NetworkListeners
+tests_security_ProfilePermissions
+tests_security_RendererSandbox
)
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"

View File

@ -0,0 +1,117 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
inherit toolchain-funcs flag-o-matic cros-workon autotest
DESCRIPTION="Autotest tests that require chrome_test or pyauto deps"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~arm ~amd64"
# Enable autotest by default.
IUSE="${IUSE} +autotest"
RDEPEND="
chromeos-base/autotest-tests
chromeos-base/chromeos-chrome
chromeos-base/flimflam-test
tests_audiovideo_PlaybackRecordSemiAuto? ( media-sound/alsa-utils )
"
DEPEND="${RDEPEND}"
IUSE_TESTS=(
# Inherits from enterprise_ui_test.
+tests_desktopui_EnterprisePolicy
# Uses chrome_test dependency.
+tests_audiovideo_FFMPEG
+tests_audiovideo_VDA
# Inherits from cros_ui_test.
+tests_desktopui_BrowserTest
+tests_desktopui_DocViewing
+tests_desktopui_PyAutoEnduranceTests
+tests_desktopui_PyAutoFunctionalTests
+tests_desktopui_PyAutoInstall
+tests_desktopui_PyAutoPerfTests
+tests_desktopui_SyncIntegrationTests
+tests_audiovideo_PlaybackRecordSemiAuto
+tests_desktopui_AudioFeedback
+tests_desktopui_ChromeSemiAuto
+tests_desktopui_FlashSanityCheck
+tests_desktopui_IBusTest
+tests_desktopui_ImeTest
+tests_desktopui_LoadBigFile
+tests_desktopui_MediaAudioFeedback
+tests_desktopui_NaClSanity
+tests_desktopui_ScreenLocker
+tests_desktopui_SimpleLogin
tests_desktopui_TouchScreen
+tests_desktopui_UrlFetch
+tests_desktopui_WebRTC
+tests_desktopui_VideoSanity
+tests_desktopui_YouTubeHTML5
+tests_enterprise_DevicePolicy
+tests_graphics_GLAPICheck
+tests_graphics_GpuReset
+tests_graphics_Piglit
+tests_graphics_SanAngeles
+tests_graphics_TearTest
+tests_graphics_VTSwitch
+tests_graphics_WebGLConformance
+tests_graphics_WebGLPerformance
+tests_graphics_WindowManagerGraphicsCapture
+tests_hardware_BluetoothSemiAuto
+tests_hardware_ExternalDrives
+tests_hardware_USB20
+tests_hardware_UsbPlugIn
tests_logging_AsanCrash
+tests_logging_UncleanShutdown
+tests_login_BadAuthentication
+tests_login_ChromeProfileSanitary
+tests_login_CryptohomeIncognitoMounted
+tests_login_CryptohomeIncognitoUnmounted
+tests_login_CryptohomeMounted
+tests_login_CryptohomeUnmounted
+tests_login_LoginSuccess
+tests_login_LogoutProcessCleanup
+tests_login_RemoteLogin
+tests_network_3GSuspendResume
+tests_network_NavigateToUrl
+tests_network_ONC
+tests_platform_Pkcs11InitOnLogin
+tests_platform_Pkcs11Persistence
+tests_platform_ProcessPrivileges
+tests_power_AudioDetector
+tests_power_Consumption
+tests_power_Idle
+tests_power_LoadTest
+tests_power_SuspendStress
+tests_power_UiResume
+tests_power_VideoDetector
+tests_power_VideoSuspend
+tests_realtimecomm_GTalkAudioPlayground
+tests_realtimecomm_GTalkPlayground
+tests_security_BluetoothUIXSS
+tests_security_BundledExtensions
+tests_security_NetworkListeners
+tests_security_ProfilePermissions
+tests_security_RendererSandbox
)
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"

View File

@ -0,0 +1,35 @@
# 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="c04bdd4a43f9a240961c8fb07afc1386fddb5826"
CROS_WORKON_TREE="fb8c4062f8c8ed9467124d53053e7c108d1eab34"
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
inherit cros-workon autotest-deponly
DESCRIPTION="Autotest audioloop dep"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm x86"
# Autotest enabled by default.
IUSE="+autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
AUTOTEST_DEPS_LIST="audioloop"
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
# deps/audioloop
RDEPEND="${RDEPEND}
media-libs/alsa-lib
media-sound/adhd"
DEPEND="${RDEPEND}"

View File

@ -0,0 +1,33 @@
# 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_PROJECT="chromiumos/third_party/autotest"
inherit cros-workon autotest-deponly
DESCRIPTION="Autotest audioloop dep"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
# Autotest enabled by default.
IUSE="+autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
AUTOTEST_DEPS_LIST="audioloop"
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
# deps/audioloop
RDEPEND="${RDEPEND}
media-libs/alsa-lib
media-sound/adhd"
DEPEND="${RDEPEND}"

View File

@ -0,0 +1,35 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_COMMIT="c04bdd4a43f9a240961c8fb07afc1386fddb5826"
CROS_WORKON_TREE="fb8c4062f8c8ed9467124d53053e7c108d1eab34"
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
inherit cros-workon autotest-deponly
DESCRIPTION="Autotest chromium ffmpeg dep"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm x86"
# Autotest enabled by default.
IUSE="+autotest"
AUTOTEST_DEPS_LIST="ffmpeg"
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
# deps/ffmpeg
RDEPEND="${RDEPEND}
chromeos-base/chromeos-chrome
"
DEPEND="${RDEPEND}"

View File

@ -0,0 +1,33 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
inherit cros-workon autotest-deponly
DESCRIPTION="Autotest chromium ffmpeg dep"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
# Autotest enabled by default.
IUSE="+autotest"
AUTOTEST_DEPS_LIST="ffmpeg"
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
# deps/ffmpeg
RDEPEND="${RDEPEND}
chromeos-base/chromeos-chrome
"
DEPEND="${RDEPEND}"

View File

@ -0,0 +1,47 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_COMMIT="c04bdd4a43f9a240961c8fb07afc1386fddb5826"
CROS_WORKON_TREE="fb8c4062f8c8ed9467124d53053e7c108d1eab34"
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
CONFLICT_LIST="chromeos-base/autotest-deps-0.0.1-r321"
inherit cros-workon autotest-deponly conflict cros-debug
DESCRIPTION="Autotest glbench dep"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 arm amd64"
# Autotest enabled by default.
IUSE="+autotest"
LIBCHROME_VERS="125070"
RDEPEND="${RDEPEND}
dev-cpp/gflags
chromeos-base/libchrome:${LIBCHROME_VERS}[cros-debug=]
virtual/opengl
opengles? ( virtual/opengles )
x11-apps/xwd
"
DEPEND="${RDEPEND}
opengles? ( x11-drivers/opengles-headers )"
AUTOTEST_DEPS_LIST="glbench"
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
src_prepare() {
autotest-deponly_src_prepare
cros-debug-add-NDEBUG
export BASE_VER=${LIBCHROME_VERS}
}

View File

@ -0,0 +1,45 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
CONFLICT_LIST="chromeos-base/autotest-deps-0.0.1-r321"
inherit cros-workon autotest-deponly conflict cros-debug
DESCRIPTION="Autotest glbench dep"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~arm ~amd64"
# Autotest enabled by default.
IUSE="+autotest"
LIBCHROME_VERS="125070"
RDEPEND="${RDEPEND}
dev-cpp/gflags
chromeos-base/libchrome:${LIBCHROME_VERS}[cros-debug=]
virtual/opengl
opengles? ( virtual/opengles )
x11-apps/xwd
"
DEPEND="${RDEPEND}
opengles? ( x11-drivers/opengles-headers )"
AUTOTEST_DEPS_LIST="glbench"
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
src_prepare() {
autotest-deponly_src_prepare
cros-debug-add-NDEBUG
export BASE_VER=${LIBCHROME_VERS}
}

View File

@ -0,0 +1,40 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_COMMIT="c04bdd4a43f9a240961c8fb07afc1386fddb5826"
CROS_WORKON_TREE="fb8c4062f8c8ed9467124d53053e7c108d1eab34"
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
inherit cros-workon autotest-deponly
DESCRIPTION="Autotest glmark2 dependency"
HOMEPAGE="https://launchpad.net/glmark2"
SRC_URI=""
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 arm x86"
# Autotest enabled by default.
IUSE="+autotest"
AUTOTEST_DEPS_LIST="glmark2"
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
# deps/glmark2
RDEPEND="
virtual/opengl
media-libs/libpng
sys-libs/zlib
x11-libs/libX11
x11-libs/libXau
x11-libs/libXdmcp
x11-libs/libXext
"
DEPEND="${RDEPEND}"

View File

@ -0,0 +1,40 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
CROS_WORKON_COMMIT="6c2d8194633ffe128f3afbc094a03ef22bd29a8a"
CROS_WORKON_TREE="3fac66aefc84fb25e5359292e9153c676ccbbf6f"
EAPI=2
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
inherit cros-workon autotest-deponly
DESCRIPTION="Autotest glmark2 dependency"
HOMEPAGE="https://launchpad.net/glmark2"
SRC_URI=""
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 arm x86"
# Autotest enabled by default.
IUSE="+autotest"
AUTOTEST_DEPS_LIST="glmark2"
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
# deps/glmark2
RDEPEND="
virtual/opengl
media-libs/libpng
sys-libs/zlib
x11-libs/libX11
x11-libs/libXau
x11-libs/libXdmcp
x11-libs/libXext
"
DEPEND="${RDEPEND}"

View File

@ -0,0 +1,38 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
inherit cros-workon autotest-deponly
DESCRIPTION="Autotest glmark2 dependency"
HOMEPAGE="https://launchpad.net/glmark2"
SRC_URI=""
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
# Autotest enabled by default.
IUSE="+autotest"
AUTOTEST_DEPS_LIST="glmark2"
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
# deps/glmark2
RDEPEND="
virtual/opengl
media-libs/libpng
sys-libs/zlib
x11-libs/libX11
x11-libs/libXau
x11-libs/libXdmcp
x11-libs/libXext
"
DEPEND="${RDEPEND}"

View File

@ -0,0 +1,31 @@
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_COMMIT="c04bdd4a43f9a240961c8fb07afc1386fddb5826"
CROS_WORKON_TREE="fb8c4062f8c8ed9467124d53053e7c108d1eab34"
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
CONFLICT_LIST="chromeos-base/autotest-deps-0.0.1-r321"
inherit cros-workon autotest-deponly conflict
DESCRIPTION="Autotest iotools dep"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 arm amd64"
# Autotest enabled by default.
IUSE="+autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
AUTOTEST_DEPS_LIST="iotools"
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
DEPEND="${RDEPEND}"

View File

@ -0,0 +1,29 @@
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
CONFLICT_LIST="chromeos-base/autotest-deps-0.0.1-r321"
inherit cros-workon autotest-deponly conflict
DESCRIPTION="Autotest iotools dep"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~arm ~amd64"
# Autotest enabled by default.
IUSE="+autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
AUTOTEST_DEPS_LIST="iotools"
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
DEPEND="${RDEPEND}"

View File

@ -0,0 +1,30 @@
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_COMMIT="c04bdd4a43f9a240961c8fb07afc1386fddb5826"
CROS_WORKON_TREE="fb8c4062f8c8ed9467124d53053e7c108d1eab34"
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
CONFLICT_LIST="chromeos-base/autotest-deps-0.0.1-r321"
inherit cros-workon autotest-deponly conflict
DESCRIPTION="Autotest libaio dep"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 arm amd64"
# Autotest enabled by default.
IUSE="+autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
AUTOTEST_DEPS_LIST="libaio"
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
DEPEND="${RDEPEND}"

View File

@ -0,0 +1,28 @@
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
CONFLICT_LIST="chromeos-base/autotest-deps-0.0.1-r321"
inherit cros-workon autotest-deponly conflict
DESCRIPTION="Autotest libaio dep"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~arm ~amd64"
# Autotest enabled by default.
IUSE="+autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
AUTOTEST_DEPS_LIST="libaio"
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
DEPEND="${RDEPEND}"

View File

@ -0,0 +1,50 @@
# 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="c04bdd4a43f9a240961c8fb07afc1386fddb5826"
CROS_WORKON_TREE="fb8c4062f8c8ed9467124d53053e7c108d1eab34"
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
inherit cros-workon autotest-deponly
DESCRIPTION="dependencies for Piglit (collection of automated tests for OpenGl based on glean and mesa)"
HOMEPAGE="http://cgit.freedesktop.org/piglit"
SRC_URI=""
LICENSE="GPL"
SLOT="0"
KEYWORDS="amd64 arm x86"
# Autotest enabled by default.
IUSE="+autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
AUTOTEST_DEPS_LIST="piglit"
RDEPEND="
virtual/glut
virtual/opengl
dev-python/mako
dev-python/numpy
media-libs/tiff
media-libs/libpng
sys-libs/zlib
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXtst
x11-libs/libXau
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXi
x11-libs/libXpm
"
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
DEPEND="${RDEPEND}"
# export a variable so that piglit knows where to find libglut.so
export GLUT_LIBDIR=/usr/$(get_libdir)

View File

@ -0,0 +1,48 @@
# 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_PROJECT="chromiumos/third_party/autotest"
inherit cros-workon autotest-deponly
DESCRIPTION="dependencies for Piglit (collection of automated tests for OpenGl based on glean and mesa)"
HOMEPAGE="http://cgit.freedesktop.org/piglit"
SRC_URI=""
LICENSE="GPL"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
# Autotest enabled by default.
IUSE="+autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
AUTOTEST_DEPS_LIST="piglit"
RDEPEND="
virtual/glut
virtual/opengl
dev-python/mako
dev-python/numpy
media-libs/tiff
media-libs/libpng
sys-libs/zlib
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXtst
x11-libs/libXau
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXi
x11-libs/libXpm
"
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
DEPEND="${RDEPEND}"
# export a variable so that piglit knows where to find libglut.so
export GLUT_LIBDIR=/usr/$(get_libdir)

View File

@ -0,0 +1,74 @@
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_COMMIT="c04bdd4a43f9a240961c8fb07afc1386fddb5826"
CROS_WORKON_TREE="fb8c4062f8c8ed9467124d53053e7c108d1eab34"
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
inherit cros-workon autotest-deponly
DESCRIPTION="Autotest common deps"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 arm amd64"
# Autotest enabled by default.
IUSE="+autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
# following deps don't compile: boottool, mysql, pgpool, pgsql, systemtap, # dejagnu, libcap, libnet
# following deps are not deps: factory
# following tests are going to be moved: chrome_test
AUTOTEST_DEPS_LIST="fio gfxtest gtest hdparm ibusclient iwcap realtimecomm_playground sysstat sox test_tones fakegudev fakemodem pyxinput example_cros_dep"
AUTOTEST_CONFIG_LIST=*
AUTOTEST_PROFILERS_LIST=*
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
# deps/gtest
RDEPEND="
dev-cpp/gtest
"
RDEPEND="${RDEPEND}
chromeos-base/autotest-deps-libaio
"
# deps/chrome_test
#RDEPEND="${RDEPEND}
# chromeos-base/chromeos-chrome
#"
# deps/ibusclient
RDEPEND="${RDEPEND}
app-i18n/ibus
dev-libs/glib
sys-apps/dbus
"
# deps/iwcap
RDEPEND="${RDEPEND}
dev-libs/libnl:0
"
# deps/fakegudev
RDEPEND="${RDEPEND}
sys-fs/udev[gudev]
"
# deps/fakemodem
RDEPEND="${RDEPEND}
chromeos-base/autotest-fakemodem-conf
"
RDEPEND="${RDEPEND}
sys-devel/binutils
"
DEPEND="${RDEPEND}"

View File

@ -0,0 +1,72 @@
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
inherit cros-workon autotest-deponly
DESCRIPTION="Autotest common deps"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~arm ~amd64"
# Autotest enabled by default.
IUSE="+autotest"
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
# following deps don't compile: boottool, mysql, pgpool, pgsql, systemtap, # dejagnu, libcap, libnet
# following deps are not deps: factory
# following tests are going to be moved: chrome_test
AUTOTEST_DEPS_LIST="fio gfxtest gtest hdparm ibusclient iwcap realtimecomm_playground sysstat sox test_tones fakegudev fakemodem pyxinput example_cros_dep"
AUTOTEST_CONFIG_LIST=*
AUTOTEST_PROFILERS_LIST=*
# NOTE: For deps, we need to keep *.a
AUTOTEST_FILE_MASK="*.tar.bz2 *.tbz2 *.tgz *.tar.gz"
# deps/gtest
RDEPEND="
dev-cpp/gtest
"
RDEPEND="${RDEPEND}
chromeos-base/autotest-deps-libaio
"
# deps/chrome_test
#RDEPEND="${RDEPEND}
# chromeos-base/chromeos-chrome
#"
# deps/ibusclient
RDEPEND="${RDEPEND}
app-i18n/ibus
dev-libs/glib
sys-apps/dbus
"
# deps/iwcap
RDEPEND="${RDEPEND}
dev-libs/libnl:0
"
# deps/fakegudev
RDEPEND="${RDEPEND}
sys-fs/udev[gudev]
"
# deps/fakemodem
RDEPEND="${RDEPEND}
chromeos-base/autotest-fakemodem-conf
"
RDEPEND="${RDEPEND}
sys-devel/binutils
"
DEPEND="${RDEPEND}"

View File

@ -0,0 +1,99 @@
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_COMMIT="c04bdd4a43f9a240961c8fb07afc1386fddb5826"
CROS_WORKON_TREE="fb8c4062f8c8ed9467124d53053e7c108d1eab34"
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
CONFLICT_LIST="chromeos-base/autotest-tests-0.0.1-r335"
inherit toolchain-funcs flag-o-matic cros-workon autotest conflict
DESCRIPTION="Autotest Factory tests"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 arm amd64"
IUSE="+xset hardened"
# Enable autotest by default.
IUSE="${IUSE} +autotest"
# Factory tests require locally installed deps, which are called out in
# autotest-factory-deps.
RDEPEND="
chromeos-base/autotest-deps-iotools
chromeos-base/autotest-deps-libaio
chromeos-base/autotest-deps-audioloop
chromeos-base/autotest-deps-glbench
chromeos-base/autotest-private-board
chromeos-base/chromeos-factory
chromeos-base/flimflam-test
>=chromeos-base/vpd-0.0.1-r11
dev-python/jsonrpclib
dev-python/pygobject
dev-python/pygtk
dev-python/ws4py
xset? ( x11-apps/xset )
"
DEPEND="${RDEPEND}"
IUSE_TESTS="
+tests_dummy_Fail
+tests_dummy_Pass
+tests_factory_Antenna
+tests_factory_Audio
+tests_factory_AudioInternalLoopback
+tests_factory_AudioLoop
+tests_factory_AudioQuality
+tests_factory_BasicCellular
+tests_factory_BasicGPS
+tests_factory_BasicWifi
+tests_factory_Camera
+tests_factory_CameraPerformanceAls
+tests_factory_Cellular
+tests_factory_Connector
+tests_factory_DeveloperRecovery
+tests_factory_Display
+tests_factory_Dummy
+tests_factory_ExtDisplay
+tests_factory_ExternalStorage
+tests_factory_Fail
+tests_factory_Finalize
+tests_factory_HWID
+tests_factory_Keyboard
+tests_factory_KeyboardBacklight
+tests_factory_Leds
+tests_factory_LidSwitch
+tests_factory_LightSensor
+tests_factory_ProbeWifi
+tests_factory_Prompt
+tests_factory_RemovableStorage
+tests_factory_RunScript
+tests_factory_ScanSN
+tests_factory_ScriptWrapper
+tests_factory_Start
+tests_factory_StressTest
+tests_factory_SyncEventLogs
+tests_factory_Touchpad
+tests_factory_Touchscreen
+tests_factory_TPM
+tests_factory_USB
+tests_factory_VerifyComponents
+tests_factory_VPD
+tests_factory_Wifi
+tests_suite_Factory
"
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"

View File

@ -0,0 +1,97 @@
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
CONFLICT_LIST="chromeos-base/autotest-tests-0.0.1-r335"
inherit toolchain-funcs flag-o-matic cros-workon autotest conflict
DESCRIPTION="Autotest Factory tests"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~arm ~amd64"
IUSE="+xset hardened"
# Enable autotest by default.
IUSE="${IUSE} +autotest"
# Factory tests require locally installed deps, which are called out in
# autotest-factory-deps.
RDEPEND="
chromeos-base/autotest-deps-iotools
chromeos-base/autotest-deps-libaio
chromeos-base/autotest-deps-audioloop
chromeos-base/autotest-deps-glbench
chromeos-base/autotest-private-board
chromeos-base/chromeos-factory
chromeos-base/flimflam-test
>=chromeos-base/vpd-0.0.1-r11
dev-python/jsonrpclib
dev-python/pygobject
dev-python/pygtk
dev-python/ws4py
xset? ( x11-apps/xset )
"
DEPEND="${RDEPEND}"
IUSE_TESTS="
+tests_dummy_Fail
+tests_dummy_Pass
+tests_factory_Antenna
+tests_factory_Audio
+tests_factory_AudioInternalLoopback
+tests_factory_AudioLoop
+tests_factory_AudioQuality
+tests_factory_BasicCellular
+tests_factory_BasicGPS
+tests_factory_BasicWifi
+tests_factory_Camera
+tests_factory_CameraPerformanceAls
+tests_factory_Cellular
+tests_factory_Connector
+tests_factory_DeveloperRecovery
+tests_factory_Display
+tests_factory_Dummy
+tests_factory_ExtDisplay
+tests_factory_ExternalStorage
+tests_factory_Fail
+tests_factory_Finalize
+tests_factory_HWID
+tests_factory_Keyboard
+tests_factory_KeyboardBacklight
+tests_factory_Leds
+tests_factory_LidSwitch
+tests_factory_LightSensor
+tests_factory_ProbeWifi
+tests_factory_Prompt
+tests_factory_RemovableStorage
+tests_factory_RunScript
+tests_factory_ScanSN
+tests_factory_ScriptWrapper
+tests_factory_Start
+tests_factory_StressTest
+tests_factory_SyncEventLogs
+tests_factory_Touchpad
+tests_factory_Touchscreen
+tests_factory_TPM
+tests_factory_USB
+tests_factory_VerifyComponents
+tests_factory_VPD
+tests_factory_Wifi
+tests_suite_Factory
"
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"

View File

@ -0,0 +1,16 @@
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
DESCRIPTION="Runtime configuration file for fakemodem (autotest dep)"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE=""
src_install() {
insinto /etc/dbus-1/system.d
doins "${FILESDIR}/org.chromium.FakeModem.conf" || die
}

View File

@ -0,0 +1,9 @@
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy context="default">
<allow send_destination="org.chromium.FakeModem" />
<allow own="org.chromium.FakeModem" />
</policy>
</busconfig>

View File

@ -0,0 +1,18 @@
# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
DESCRIPTION="Board specific autotests"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE=""
RDEPEND=""
#
# WARNING: Nothing should be added to this ebuild. This ebuild is overriden
# in most of the board specific overlays, or will be.
#

View File

@ -0,0 +1 @@
autotest-private-0.1.0.ebuild

View File

@ -0,0 +1,25 @@
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
# CROS_WORKON_REPO=FILL_YOUR_REPO_URL_HERE
# inherit toolchain-funcs flag-o-matic cros-workon autotest
DESCRIPTION="Private autotest tests"
HOMEPAGE="http://src.chromium.org"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm x86"
DEPEND=""
RDEPEND=""
# This ebuild file is reserved for adding new private tests in your factory
# process. You can change the CROS_WORKON_REPO to your own server, and uncomment
# the following CROS_WORKON_* variables to have your own tests merged when
# building factory test run-in images.
# CROS_WORKON_PROJECT=autotest-private
# CROS_WORKON_LOCALNAME=../third_party/autotest-private
# CROS_WORKON_SUBDIR=

View File

@ -0,0 +1,46 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_COMMIT="c04bdd4a43f9a240961c8fb07afc1386fddb5826"
CROS_WORKON_TREE="fb8c4062f8c8ed9467124d53053e7c108d1eab34"
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="ltp autotest"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE="hardened"
# Enable autotest by default.
IUSE="${IUSE} +autotest"
RDEPEND="${RDEPEND}
chromeos-base/protofiles
dev-libs/protobuf
dev-python/pygobject
!<chromeos-base/autotest-tests-0.0.1-r1723
"
DEPEND="${RDEPEND}"
IUSE_TESTS="
+tests_ltp
"
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"

View File

@ -0,0 +1,44 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
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="ltp autotest"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="hardened"
# Enable autotest by default.
IUSE="${IUSE} +autotest"
RDEPEND="${RDEPEND}
chromeos-base/protofiles
dev-libs/protobuf
dev-python/pygobject
!<chromeos-base/autotest-tests-0.0.1-r1723
"
DEPEND="${RDEPEND}"
IUSE_TESTS="
+tests_ltp
"
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"

View File

@ -0,0 +1,52 @@
# 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="c04bdd4a43f9a240961c8fb07afc1386fddb5826"
CROS_WORKON_TREE="fb8c4062f8c8ed9467124d53053e7c108d1eab34"
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/flimflam-test
chromeos-base/chromeos-chrome
chromeos-base/protofiles
dev-libs/protobuf
dev-python/pygobject
autox? ( chromeos-base/autox )
"
DEPEND="${RDEPEND}"
IUSE_TESTS="
+tests_login_OwnershipApi
+tests_login_OwnershipNotRetaken
+tests_login_OwnershipRetaken
+tests_login_OwnershipTaken
+tests_login_RemoteOwnership
"
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"

View File

@ -0,0 +1,50 @@
# 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_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/flimflam-test
chromeos-base/chromeos-chrome
chromeos-base/protofiles
dev-libs/protobuf
dev-python/pygobject
autox? ( chromeos-base/autox )
"
DEPEND="${RDEPEND}"
IUSE_TESTS="
+tests_login_OwnershipApi
+tests_login_OwnershipNotRetaken
+tests_login_OwnershipRetaken
+tests_login_OwnershipTaken
+tests_login_RemoteOwnership
"
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"

View File

@ -0,0 +1,318 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_COMMIT="c04bdd4a43f9a240961c8fb07afc1386fddb5826"
CROS_WORKON_TREE="fb8c4062f8c8ed9467124d53053e7c108d1eab34"
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
inherit toolchain-funcs flag-o-matic cros-workon autotest
DESCRIPTION="Autotest tests"
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"
# TODO(snanda): Remove xset dependence once power_LoadTest is switched over
# to use power manager
# TODO(semenzato): tpm-tools is included for hardware_TpmFirmware (and at this
# time only one binary is used, tpm_takeownership). Once we have a testing
# image, a better way would be to add tpm-tools to the image.
#
# pygtk is used only in the following:
# desktopui_ImeTest
# desktopui_ImeLogin
# pygobject is used only in the following:
# desktopui_ScreenLocker
# hardware_BluetoothSemiAuto
# network_3GActivate
# network_3GDormancyDance
# network_3GFailedConnect
# network_3GRecoverFromGobiDesync
# network_3GSafetyDance
# network_3GSmokeTest
# network_3GStressEnable
# network_WiFiSmokeTest
# network_WifiAuthenticationTests
RDEPEND="
chromeos-base/autotest-deps
chromeos-base/autotest-deps-glbench
chromeos-base/autotest-deps-glmark2
chromeos-base/autotest-deps-iotools
chromeos-base/autotest-deps-libaio
chromeos-base/autotest-deps-piglit
chromeos-base/flimflam-test
autox? ( chromeos-base/autox )
dev-python/numpy
dev-python/pygobject
dev-python/pygtk
xset? ( x11-apps/xset )
tpmtools? ( app-crypt/tpm-tools )
"
RDEPEND="${RDEPEND}
tests_platform_RootPartitionsNotMounted? ( sys-apps/rootdev )
tests_platform_RootPartitionsNotMounted? ( sys-fs/udev )
tests_hardware_TPMFirmware? ( chromeos-base/tpm_lite )
"
DEPEND="${RDEPEND}"
IUSE_TESTS="
+tests_compilebench
+tests_crashme
+tests_dbench
+tests_ddtest
+tests_disktest
+tests_fsx
+tests_hackbench
+tests_iperf
+tests_bonnie
+tests_iozone
+tests_netperf2
+tests_netpipe
+tests_scrashme
+tests_sound_infrastructure
+tests_sleeptest
+tests_unixbench
+tests_audiovideo_CRASFormatConversion
+tests_audiovideo_LineOutToMicInLoopback
+tests_audiovideo_LoopbackLatency
+tests_audiovideo_Microphone
+tests_audiovideo_V4L2
+tests_cellular_Smoke
+tests_cellular_ThroughputController
+tests_cellular_Throughput
+tests_build_RootFilesystemSize
+tests_desktopui_FontCache
+tests_desktopui_GTK2Config
+tests_desktopui_HangDetector
+tests_desktopui_ImeLogin
+tests_desktopui_KillRestart
+tests_desktopui_SpeechSynthesisSemiAuto
tests_example_UnitTest
+tests_example_CrosTest
+tests_graphics_GLBench
+tests_graphics_GLMark2
+tests_graphics_KernelMemory
+tests_graphics_LibDRM
+tests_graphics_SyncControlTest
+tests_firmware_RomSize
tests_firmware_VbootCrypto
+tests_hardware_Ath3k
+tests_hardware_Backlight
+tests_hardware_ch7036
+tests_hardware_Components
+tests_hardware_DeveloperRecovery
+tests_hardware_DiskSize
+tests_hardware_EC
+tests_hardware_EepromWriteProtect
+tests_hardware_GobiGPS
+tests_hardware_GPIOSwitches
+tests_hardware_GPS
+tests_hardware_I2CProbe
+tests_hardware_Interrupt
+tests_hardware_Keyboard
+tests_hardware_LightSensor
+tests_hardware_MemoryThroughput
+tests_hardware_MemoryTotalSize
+tests_hardware_MultiReader
+tests_hardware_RealtekCardReader
+tests_hardware_Resolution
+tests_hardware_SAT
+tests_hardware_SsdDetection
+tests_hardware_StorageFio
tests_hardware_TouchScreenPresent
+tests_hardware_TPMCheck
tests_hardware_TPMFirmware
+tests_hardware_Trackpad
+tests_hardware_VideoOutSemiAuto
+tests_hardware_Xrandr
+tests_hardware_bma150
+tests_kernel_Bootcache
+tests_kernel_ConfigVerify
+tests_kernel_CpufreqMinMax
+tests_kernel_fs_Inplace
+tests_kernel_fs_Punybench
+tests_kernel_Lmbench
+tests_kernel_LowMemNotify
+tests_kernel_PerfEventRename
+tests_kernel_SchedBandwith
+tests_kernel_TPMPing
+tests_kernel_HdParm
+tests_kernel_ProtocolCheck
+tests_logging_CrashSender
+tests_logging_CrashServices
+tests_logging_KernelCrash
+tests_logging_UserCrash
+tests_login_DBusCalls
+tests_login_SecondFactor
+tests_network_3GActivate
+tests_network_3GAssociation
+tests_network_3GDisableWhileConnecting
+tests_network_3GDisableGobiWhileConnecting
+tests_network_3GDormancyDance
+tests_network_3GGobiPorts
+tests_network_3GFailedConnect
+tests_network_3GModemControl
+tests_network_3GModemPresent
+tests_network_3GNoGobi
+tests_network_3GRecoverFromGobiDesync
+tests_network_3GSafetyDance
+tests_network_3GSmokeTest
+tests_network_3GStressEnable
+tests_network_SwitchCarrier
+tests_network_ConnmanCromoCrash
+tests_network_ConnmanIncludeExcludeMultiple
+tests_network_ConnmanPowerStateTracking
+tests_network_DhcpNegotiationSuccess
+tests_network_DhcpRenew
+tests_network_DisableInterface
+tests_network_EthCaps
+tests_network_EthernetStressPlug
+tests_network_GobiUncleanDisconnect
+tests_network_LockedSIM
+tests_network_ModemManagerSMS
+tests_network_ModemManagerSMSSignal
+tests_network_NegotiatedLANSpeed
+tests_network_Ping
+tests_network_Portal
+tests_network_UdevRename
+tests_network_WiFiCaps
+tests_network_WiFiSmokeTest
+tests_network_WifiAuthenticationTests
+tests_network_WlanHasIP
+tests_network_netperf2
+tests_platform_AccurateTime
+tests_platform_AesThroughput
+tests_platform_Attestation
+tests_platform_BootPerf
+tests_platform_CheckErrorsInLog
+tests_platform_CleanShutdown
+tests_platform_CompressedSwap
+tests_platform_CrosDisksArchive
+tests_platform_CrosDisksDBus
+tests_platform_CrosDisksFilesystem
+tests_platform_CrosDisksFormat
+tests_platform_CryptohomeBadPerms
+tests_platform_CryptohomeChangePassword
+tests_platform_CryptohomeFio
+tests_platform_CryptohomeMount
+tests_platform_CryptohomeMultiple
+tests_platform_CryptohomeNonDirs
+tests_platform_CryptohomeStress
+tests_platform_CryptohomeTestAuth
+tests_platform_DaemonsRespawn
+tests_platform_DebugDaemonGetModemStatus
+tests_platform_DebugDaemonGetNetworkStatus
+tests_platform_DebugDaemonGetRoutes
+tests_platform_DebugDaemonPing
+tests_platform_DebugDaemonTracePath
+tests_platform_DMVerityBitCorruption
+tests_platform_DMVerityCorruption
+tests_platform_EncryptedStateful
+tests_platform_EvdevSynDropTest
+tests_platform_ExternalUSBBootStress
+tests_platform_ExternalUSBStress
+tests_platform_FileNum
+tests_platform_FilePerms
+tests_platform_FileSize
+tests_platform_HighResTimers
+tests_platform_KernelVersion
+tests_platform_LibCBench
+tests_platform_MemCheck
+tests_platform_NetParms
+tests_platform_OSLimits
+tests_platform_PartitionCheck
+tests_platform_Pkcs11InitUnderErrors
+tests_platform_Pkcs11ChangeAuthData
+tests_platform_Pkcs11Events
+tests_platform_Pkcs11LoadPerf
+tests_platform_Rootdev
+tests_platform_RootPartitionsNotMounted
+tests_platform_SessionManagerTerm
+tests_platform_Shutdown
+tests_platform_SuspendStress
+tests_platform_TempFS
+tests_platform_TLSDate
+tests_platform_ToolchainOptions
+tests_platform_TouchpadSynDrop
+tests_platform_TPMEvict
+tests_power_ARMSettings
+tests_power_Backlight
+tests_power_BacklightControl
+tests_power_BacklightSuspend
+tests_power_BatteryCharge
+tests_power_CameraSuspend
+tests_power_CPUFreq
+tests_power_CPUIdle
+tests_power_Draw
+tests_power_HotCPUSuspend
+tests_power_KernelSuspend
+tests_power_MemorySuspend
+tests_power_NoConsoleSuspend
+tests_power_ProbeDriver
+tests_power_Resume
+tests_power_Standby
+tests_power_StatsCPUFreq
+tests_power_StatsCPUIdle
+tests_power_StatsUSB
+tests_power_Status
+tests_power_SuspendResume
+tests_power_SuspendShutdown
+tests_power_WakeupRTC
+tests_power_x86Settings
+tests_realtimecomm_GTalkAudioBench
+tests_realtimecomm_GTalkLmiCamera
+tests_realtimecomm_GTalkunittest
+tests_security_AccountsBaseline
+tests_security_ASLR
+tests_security_ChromiumOSLSM
+tests_security_DbusMap
+tests_security_DbusOwners
+tests_security_Firewall
+tests_security_HardlinkRestrictions
+tests_security_HciconfigDefaultSettings
+tests_security_HtpdateHTTP
+tests_security_Minijail_seccomp
+tests_security_Minijail0
+tests_security_ModuleLocking
+tests_security_OpenFDs
+tests_security_OpenSSLBlacklist
+tests_security_OpenSSLRegressions
+tests_security_ProtocolFamilies
+tests_security_ptraceRestrictions
+tests_security_ReservedPrivileges
+tests_security_RestartJob
+tests_security_RootCA
+tests_security_RootfsOwners
+tests_security_RootfsStatefulSymlinks
+tests_security_RuntimeExecStack
+tests_security_SandboxedServices
+tests_security_SeccompSyscallFilters
+tests_security_SMMLocked
+tests_security_StatefulPermissions
+tests_security_SuidBinaries
+tests_security_SymlinkRestrictions
+tests_security_SysVIPC
+tests_suite_HWConfig
+tests_suite_HWQual
+test_Recall
"
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"

View File

@ -0,0 +1,316 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
inherit toolchain-funcs flag-o-matic cros-workon autotest
DESCRIPTION="Autotest tests"
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"
# TODO(snanda): Remove xset dependence once power_LoadTest is switched over
# to use power manager
# TODO(semenzato): tpm-tools is included for hardware_TpmFirmware (and at this
# time only one binary is used, tpm_takeownership). Once we have a testing
# image, a better way would be to add tpm-tools to the image.
#
# pygtk is used only in the following:
# desktopui_ImeTest
# desktopui_ImeLogin
# pygobject is used only in the following:
# desktopui_ScreenLocker
# hardware_BluetoothSemiAuto
# network_3GActivate
# network_3GDormancyDance
# network_3GFailedConnect
# network_3GRecoverFromGobiDesync
# network_3GSafetyDance
# network_3GSmokeTest
# network_3GStressEnable
# network_WiFiSmokeTest
# network_WifiAuthenticationTests
RDEPEND="
chromeos-base/autotest-deps
chromeos-base/autotest-deps-glbench
chromeos-base/autotest-deps-glmark2
chromeos-base/autotest-deps-iotools
chromeos-base/autotest-deps-libaio
chromeos-base/autotest-deps-piglit
chromeos-base/flimflam-test
autox? ( chromeos-base/autox )
dev-python/numpy
dev-python/pygobject
dev-python/pygtk
xset? ( x11-apps/xset )
tpmtools? ( app-crypt/tpm-tools )
"
RDEPEND="${RDEPEND}
tests_platform_RootPartitionsNotMounted? ( sys-apps/rootdev )
tests_platform_RootPartitionsNotMounted? ( sys-fs/udev )
tests_hardware_TPMFirmware? ( chromeos-base/tpm_lite )
"
DEPEND="${RDEPEND}"
IUSE_TESTS="
+tests_compilebench
+tests_crashme
+tests_dbench
+tests_ddtest
+tests_disktest
+tests_fsx
+tests_hackbench
+tests_iperf
+tests_bonnie
+tests_iozone
+tests_netperf2
+tests_netpipe
+tests_scrashme
+tests_sound_infrastructure
+tests_sleeptest
+tests_unixbench
+tests_audiovideo_CRASFormatConversion
+tests_audiovideo_LineOutToMicInLoopback
+tests_audiovideo_LoopbackLatency
+tests_audiovideo_Microphone
+tests_audiovideo_V4L2
+tests_cellular_Smoke
+tests_cellular_ThroughputController
+tests_cellular_Throughput
+tests_build_RootFilesystemSize
+tests_desktopui_FontCache
+tests_desktopui_GTK2Config
+tests_desktopui_HangDetector
+tests_desktopui_ImeLogin
+tests_desktopui_KillRestart
+tests_desktopui_SpeechSynthesisSemiAuto
tests_example_UnitTest
+tests_example_CrosTest
+tests_graphics_GLBench
+tests_graphics_GLMark2
+tests_graphics_KernelMemory
+tests_graphics_LibDRM
+tests_graphics_SyncControlTest
+tests_firmware_RomSize
tests_firmware_VbootCrypto
+tests_hardware_Ath3k
+tests_hardware_Backlight
+tests_hardware_ch7036
+tests_hardware_Components
+tests_hardware_DeveloperRecovery
+tests_hardware_DiskSize
+tests_hardware_EC
+tests_hardware_EepromWriteProtect
+tests_hardware_GobiGPS
+tests_hardware_GPIOSwitches
+tests_hardware_GPS
+tests_hardware_I2CProbe
+tests_hardware_Interrupt
+tests_hardware_Keyboard
+tests_hardware_LightSensor
+tests_hardware_MemoryThroughput
+tests_hardware_MemoryTotalSize
+tests_hardware_MultiReader
+tests_hardware_RealtekCardReader
+tests_hardware_Resolution
+tests_hardware_SAT
+tests_hardware_SsdDetection
+tests_hardware_StorageFio
tests_hardware_TouchScreenPresent
+tests_hardware_TPMCheck
tests_hardware_TPMFirmware
+tests_hardware_Trackpad
+tests_hardware_VideoOutSemiAuto
+tests_hardware_Xrandr
+tests_hardware_bma150
+tests_kernel_Bootcache
+tests_kernel_ConfigVerify
+tests_kernel_CpufreqMinMax
+tests_kernel_fs_Inplace
+tests_kernel_fs_Punybench
+tests_kernel_Lmbench
+tests_kernel_LowMemNotify
+tests_kernel_PerfEventRename
+tests_kernel_SchedBandwith
+tests_kernel_TPMPing
+tests_kernel_HdParm
+tests_kernel_ProtocolCheck
+tests_logging_CrashSender
+tests_logging_CrashServices
+tests_logging_KernelCrash
+tests_logging_UserCrash
+tests_login_DBusCalls
+tests_login_SecondFactor
+tests_network_3GActivate
+tests_network_3GAssociation
+tests_network_3GDisableWhileConnecting
+tests_network_3GDisableGobiWhileConnecting
+tests_network_3GDormancyDance
+tests_network_3GGobiPorts
+tests_network_3GFailedConnect
+tests_network_3GModemControl
+tests_network_3GModemPresent
+tests_network_3GNoGobi
+tests_network_3GRecoverFromGobiDesync
+tests_network_3GSafetyDance
+tests_network_3GSmokeTest
+tests_network_3GStressEnable
+tests_network_SwitchCarrier
+tests_network_ConnmanCromoCrash
+tests_network_ConnmanIncludeExcludeMultiple
+tests_network_ConnmanPowerStateTracking
+tests_network_DhcpNegotiationSuccess
+tests_network_DhcpRenew
+tests_network_DisableInterface
+tests_network_EthCaps
+tests_network_EthernetStressPlug
+tests_network_GobiUncleanDisconnect
+tests_network_LockedSIM
+tests_network_ModemManagerSMS
+tests_network_ModemManagerSMSSignal
+tests_network_NegotiatedLANSpeed
+tests_network_Ping
+tests_network_Portal
+tests_network_UdevRename
+tests_network_WiFiCaps
+tests_network_WiFiSmokeTest
+tests_network_WifiAuthenticationTests
+tests_network_WlanHasIP
+tests_network_netperf2
+tests_platform_AccurateTime
+tests_platform_AesThroughput
+tests_platform_Attestation
+tests_platform_BootPerf
+tests_platform_CheckErrorsInLog
+tests_platform_CleanShutdown
+tests_platform_CompressedSwap
+tests_platform_CrosDisksArchive
+tests_platform_CrosDisksDBus
+tests_platform_CrosDisksFilesystem
+tests_platform_CrosDisksFormat
+tests_platform_CryptohomeBadPerms
+tests_platform_CryptohomeChangePassword
+tests_platform_CryptohomeFio
+tests_platform_CryptohomeMount
+tests_platform_CryptohomeMultiple
+tests_platform_CryptohomeNonDirs
+tests_platform_CryptohomeStress
+tests_platform_CryptohomeTestAuth
+tests_platform_DaemonsRespawn
+tests_platform_DebugDaemonGetModemStatus
+tests_platform_DebugDaemonGetNetworkStatus
+tests_platform_DebugDaemonGetRoutes
+tests_platform_DebugDaemonPing
+tests_platform_DebugDaemonTracePath
+tests_platform_DMVerityBitCorruption
+tests_platform_DMVerityCorruption
+tests_platform_EncryptedStateful
+tests_platform_EvdevSynDropTest
+tests_platform_ExternalUSBBootStress
+tests_platform_ExternalUSBStress
+tests_platform_FileNum
+tests_platform_FilePerms
+tests_platform_FileSize
+tests_platform_HighResTimers
+tests_platform_KernelVersion
+tests_platform_LibCBench
+tests_platform_MemCheck
+tests_platform_NetParms
+tests_platform_OSLimits
+tests_platform_PartitionCheck
+tests_platform_Pkcs11InitUnderErrors
+tests_platform_Pkcs11ChangeAuthData
+tests_platform_Pkcs11Events
+tests_platform_Pkcs11LoadPerf
+tests_platform_Rootdev
+tests_platform_RootPartitionsNotMounted
+tests_platform_SessionManagerTerm
+tests_platform_Shutdown
+tests_platform_SuspendStress
+tests_platform_TempFS
+tests_platform_TLSDate
+tests_platform_ToolchainOptions
+tests_platform_TouchpadSynDrop
+tests_platform_TPMEvict
+tests_power_ARMSettings
+tests_power_Backlight
+tests_power_BacklightControl
+tests_power_BacklightSuspend
+tests_power_BatteryCharge
+tests_power_CameraSuspend
+tests_power_CPUFreq
+tests_power_CPUIdle
+tests_power_Draw
+tests_power_HotCPUSuspend
+tests_power_KernelSuspend
+tests_power_MemorySuspend
+tests_power_NoConsoleSuspend
+tests_power_ProbeDriver
+tests_power_Resume
+tests_power_Standby
+tests_power_StatsCPUFreq
+tests_power_StatsCPUIdle
+tests_power_StatsUSB
+tests_power_Status
+tests_power_SuspendResume
+tests_power_SuspendShutdown
+tests_power_WakeupRTC
+tests_power_x86Settings
+tests_realtimecomm_GTalkAudioBench
+tests_realtimecomm_GTalkLmiCamera
+tests_realtimecomm_GTalkunittest
+tests_security_AccountsBaseline
+tests_security_ASLR
+tests_security_ChromiumOSLSM
+tests_security_DbusMap
+tests_security_DbusOwners
+tests_security_Firewall
+tests_security_HardlinkRestrictions
+tests_security_HciconfigDefaultSettings
+tests_security_HtpdateHTTP
+tests_security_Minijail_seccomp
+tests_security_Minijail0
+tests_security_ModuleLocking
+tests_security_OpenFDs
+tests_security_OpenSSLBlacklist
+tests_security_OpenSSLRegressions
+tests_security_ProtocolFamilies
+tests_security_ptraceRestrictions
+tests_security_ReservedPrivileges
+tests_security_RestartJob
+tests_security_RootCA
+tests_security_RootfsOwners
+tests_security_RootfsStatefulSymlinks
+tests_security_RuntimeExecStack
+tests_security_SandboxedServices
+tests_security_SeccompSyscallFilters
+tests_security_SMMLocked
+tests_security_StatefulPermissions
+tests_security_SuidBinaries
+tests_security_SymlinkRestrictions
+tests_security_SysVIPC
+tests_suite_HWConfig
+tests_suite_HWQual
+test_Recall
"
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"

View File

@ -0,0 +1,100 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_COMMIT="c04bdd4a43f9a240961c8fb07afc1386fddb5826"
CROS_WORKON_TREE="fb8c4062f8c8ed9467124d53053e7c108d1eab34"
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
inherit toolchain-funcs flag-o-matic cros-workon
DESCRIPTION="Autotest scripts and tools"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 arm amd64"
RDEPEND="
!<chromeos-base/autotest-chrome-0.0.1-r1788
!<chromeos-base/autotest-tests-0.0.1-r3291
"
# We don't want Python on the base image, however, there're several base
# chromeos dependent ebuilds that depend on this ebuild.
DEPEND="${RDEPEND}"
# Ensure the configures run by autotest pick up the right config.site
export CONFIG_SITE=/usr/share/config.site
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
# Block AFE runtime data and test data that is not useful here.
# Note - we specifically copy over all server-side tests until crosbug.com/35194
# is resolved.
CROS_WORKON_SUBDIR_BLACKLIST=( "packages" "results" "site-packages" "frontend/client/www" client/{tests,site_tests} )
AUTOTEST_WORK="${WORKDIR}/autotest-work"
src_prepare() {
mkdir -p "${AUTOTEST_WORK}/client"
mkdir -p "${AUTOTEST_WORK}/server"
cp -fpu "${S}"/client/* "${AUTOTEST_WORK}/client" &>/dev/null
cp -fpru "${S}"/client/{bin,common_lib,tools} "${AUTOTEST_WORK}/client"
cp -fpu "${S}"/server/* "${AUTOTEST_WORK}/server" &>/dev/null
cp -fpru "${S}"/server/{bin,control_segments,hosts,site_tests,tests} \
"${AUTOTEST_WORK}/server"
cp -fpru "${S}"/{conmux,tko,utils,site_utils,test_suites,frontend} "${AUTOTEST_WORK}"
# cros directory is not from autotest upstream but cros project specific.
cp -fpru "${S}"/client/cros "${AUTOTEST_WORK}/client"
cp -fpru "${S}"/server/cros "${AUTOTEST_WORK}/server"
# Pre-create test directories.
local test_dirs="
client/tests client/site_tests
client/config client/deps client/profilers
packages"
local dir
for dir in ${test_dirs}; do
mkdir "${AUTOTEST_WORK}/${dir}"
touch "${AUTOTEST_WORK}/${dir}"/.keep
done
sed "/^enable_server_prebuild/d" "${S}/global_config.ini" > \
"${AUTOTEST_WORK}/global_config.ini"
}
src_install() {
insinto /usr/local/autotest
doins -r "${AUTOTEST_WORK}"/*
# base __init__.py
touch "${D}"/usr/local/autotest/__init__.py
# TODO: This should be more selective
chmod -R a+x "${D}"/usr/local/autotest
# setup stuff needed for read/write operation
chmod a+wx "${D}/usr/local/autotest/packages"
dodir "/usr/local/autotest/client/packages"
chmod a+wx "${D}/usr/local/autotest/client/packages"
dodir "/usr/local/autotest/server/tmp"
chmod a+wx "${D}/usr/local/autotest/server/tmp"
# Set up symlinks so that debug info works for autotests.
dodir /usr/lib/debug/usr/local/autotest/
dosym client/site_tests /usr/lib/debug/usr/local/autotest/tests
}
# Packages client.
pkg_postinst() {
local root_autotest_dir="${ROOT}/usr/local/autotest"
flock "${root_autotest_dir}/packages" \
-c "python -B ${root_autotest_dir}/utils/packager.py \
-r ${root_autotest_dir}/packages --client upload"
}

View File

@ -0,0 +1,98 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_PROJECT="chromiumos/third_party/autotest"
inherit toolchain-funcs flag-o-matic cros-workon
DESCRIPTION="Autotest scripts and tools"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~arm ~amd64"
RDEPEND="
!<chromeos-base/autotest-chrome-0.0.1-r1788
!<chromeos-base/autotest-tests-0.0.1-r3291
"
# We don't want Python on the base image, however, there're several base
# chromeos dependent ebuilds that depend on this ebuild.
DEPEND="${RDEPEND}"
# Ensure the configures run by autotest pick up the right config.site
export CONFIG_SITE=/usr/share/config.site
CROS_WORKON_LOCALNAME=../third_party/autotest
CROS_WORKON_SUBDIR=files
# Block AFE runtime data and test data that is not useful here.
# Note - we specifically copy over all server-side tests until crosbug.com/35194
# is resolved.
CROS_WORKON_SUBDIR_BLACKLIST=( "packages" "results" "site-packages" "frontend/client/www" client/{tests,site_tests} )
AUTOTEST_WORK="${WORKDIR}/autotest-work"
src_prepare() {
mkdir -p "${AUTOTEST_WORK}/client"
mkdir -p "${AUTOTEST_WORK}/server"
cp -fpu "${S}"/client/* "${AUTOTEST_WORK}/client" &>/dev/null
cp -fpru "${S}"/client/{bin,common_lib,tools} "${AUTOTEST_WORK}/client"
cp -fpu "${S}"/server/* "${AUTOTEST_WORK}/server" &>/dev/null
cp -fpru "${S}"/server/{bin,control_segments,hosts,site_tests,tests} \
"${AUTOTEST_WORK}/server"
cp -fpru "${S}"/{conmux,tko,utils,site_utils,test_suites,frontend} "${AUTOTEST_WORK}"
# cros directory is not from autotest upstream but cros project specific.
cp -fpru "${S}"/client/cros "${AUTOTEST_WORK}/client"
cp -fpru "${S}"/server/cros "${AUTOTEST_WORK}/server"
# Pre-create test directories.
local test_dirs="
client/tests client/site_tests
client/config client/deps client/profilers
packages"
local dir
for dir in ${test_dirs}; do
mkdir "${AUTOTEST_WORK}/${dir}"
touch "${AUTOTEST_WORK}/${dir}"/.keep
done
sed "/^enable_server_prebuild/d" "${S}/global_config.ini" > \
"${AUTOTEST_WORK}/global_config.ini"
}
src_install() {
insinto /usr/local/autotest
doins -r "${AUTOTEST_WORK}"/*
# base __init__.py
touch "${D}"/usr/local/autotest/__init__.py
# TODO: This should be more selective
chmod -R a+x "${D}"/usr/local/autotest
# setup stuff needed for read/write operation
chmod a+wx "${D}/usr/local/autotest/packages"
dodir "/usr/local/autotest/client/packages"
chmod a+wx "${D}/usr/local/autotest/client/packages"
dodir "/usr/local/autotest/server/tmp"
chmod a+wx "${D}/usr/local/autotest/server/tmp"
# Set up symlinks so that debug info works for autotests.
dodir /usr/lib/debug/usr/local/autotest/
dosym client/site_tests /usr/lib/debug/usr/local/autotest/tests
}
# Packages client.
pkg_postinst() {
local root_autotest_dir="${ROOT}/usr/local/autotest"
flock "${root_autotest_dir}/packages" \
-c "python -B ${root_autotest_dir}/utils/packager.py \
-r ${root_autotest_dir}/packages --client upload"
}