summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2013-06-23 16:01:56 +0000
committerMike Gilbert <floppym@gentoo.org>2013-06-23 16:01:56 +0000
commit624740e7cbe496e4b3ba6f4a966d33337724abca (patch)
tree6f94125fae690f1db853d27d0a21c72644b5e1ea /dev-python/pywebkitgtk
parentWorks on arm so keyword for libreoffice. (diff)
downloadgentoo-2-624740e7cbe496e4b3ba6f4a966d33337724abca.tar.gz
gentoo-2-624740e7cbe496e4b3ba6f4a966d33337724abca.tar.bz2
gentoo-2-624740e7cbe496e4b3ba6f4a966d33337724abca.zip
Use virtualx for the test suite.
(Portage version: 2.2.0_alpha184/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
Diffstat (limited to 'dev-python/pywebkitgtk')
-rw-r--r--dev-python/pywebkitgtk/ChangeLog5
-rw-r--r--dev-python/pywebkitgtk/pywebkitgtk-1.1.8-r1.ebuild27
2 files changed, 12 insertions, 20 deletions
diff --git a/dev-python/pywebkitgtk/ChangeLog b/dev-python/pywebkitgtk/ChangeLog
index b8b38445ef49..369db3f41926 100644
--- a/dev-python/pywebkitgtk/ChangeLog
+++ b/dev-python/pywebkitgtk/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-python/pywebkitgtk
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pywebkitgtk/ChangeLog,v 1.31 2013/06/23 15:26:55 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pywebkitgtk/ChangeLog,v 1.32 2013/06/23 16:01:56 floppym Exp $
+
+ 23 Jun 2013; Mike Gilbert <floppym@gentoo.org> pywebkitgtk-1.1.8-r1.ebuild:
+ Use virtualx for the test suite.
23 Jun 2013; Mike Gilbert <floppym@gentoo.org> pywebkitgtk-1.1.8-r1.ebuild:
Use autotools-utils for out-of-source building, bug 474360.
diff --git a/dev-python/pywebkitgtk/pywebkitgtk-1.1.8-r1.ebuild b/dev-python/pywebkitgtk/pywebkitgtk-1.1.8-r1.ebuild
index 7d7977be1724..7c67e1efe2f7 100644
--- a/dev-python/pywebkitgtk/pywebkitgtk-1.1.8-r1.ebuild
+++ b/dev-python/pywebkitgtk/pywebkitgtk-1.1.8-r1.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pywebkitgtk/pywebkitgtk-1.1.8-r1.ebuild,v 1.3 2013/06/23 15:26:55 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pywebkitgtk/pywebkitgtk-1.1.8-r1.ebuild,v 1.4 2013/06/23 16:01:56 floppym Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} )
-inherit autotools-utils python-r1
+inherit autotools-utils python-r1 virtualx
DESCRIPTION="Python bindings for the WebKit GTK+ port"
HOMEPAGE="http://code.google.com/p/pywebkitgtk/"
@@ -23,8 +23,6 @@ RDEPEND="dev-python/pygobject:2[${PYTHON_USEDEP}]
DEPEND="${RDEPEND}
virtual/pkgconfig"
-RESTRICT="test"
-
src_configure() {
local myeconfargs=( --disable-static )
python_parallel_foreach_impl autotools-utils_src_configure
@@ -34,25 +32,16 @@ src_compile() {
python_foreach_impl autotools-utils_src_compile
}
-# Need fix a dbus session issue run as root
src_test() {
testing() {
- local test
- pushd webkit > /dev/null
- ln -sf ../webkit.la . || die
- ln -sf ../.libs/webkit.so . || die
- popd > /dev/null
- for test in tests/test_*.py
- do
- if ! PYTHONPATH=. "${PYTHON}" ${test}; then
- die "Test ${test} failed under ${EPYTHON}"
- fi
+ local test st=0
+ for test in tests/test_*.py; do
+ PYTHONPATH="${BUILD_DIR}/.libs" "${PYTHON}" "${test}"
+ (( st |= $? ))
done
- einfo "Testsuite passed under ${EPYTHON}"
- # rm symlinks
- rm -f webkit/{webkit.la,webkit.so}
+ (( st == 0 )) || die "Testing failed with ${EPYTHON}"
}
- python_foreach_impl run_in_build_dir testing
+ VIRTUALX_COMMAND=testing python_foreach_impl virtualmake
}
src_install() {