From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 853F91382C5 for ; Wed, 23 Jun 2021 12:48:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8993FE089C; Wed, 23 Jun 2021 12:48:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 708FAE089C for ; Wed, 23 Jun 2021 12:48:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6BE1B33D0AF for ; Wed, 23 Jun 2021 12:48:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 053437B2 for ; Wed, 23 Jun 2021 12:48:23 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1624450168.fbb9f94fca4a20f0e9ab92d9a4ac06a93a05c05f.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/herbstluftwm/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-wm/herbstluftwm/herbstluftwm-0.9.3.ebuild x11-wm/herbstluftwm/herbstluftwm-9999.ebuild X-VCS-Directories: x11-wm/herbstluftwm/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: fbb9f94fca4a20f0e9ab92d9a4ac06a93a05c05f X-VCS-Branch: master Date: Wed, 23 Jun 2021 12:48:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d5941e33-fb80-4e81-8a42-92ad7f14062d X-Archives-Hash: b511454e65dcc92750ce52c286844531 commit: fbb9f94fca4a20f0e9ab92d9a4ac06a93a05c05f Author: Florian Schmaus gentoo org> AuthorDate: Wed Jun 23 12:00:54 2021 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Wed Jun 23 12:09:28 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbb9f94f x11-wm/herbstluftwm: enable tests Closes: https://bugs.gentoo.org/797496 Signed-off-by: Florian Schmaus gentoo.org> x11-wm/herbstluftwm/herbstluftwm-0.9.3.ebuild | 25 ++++++++++++++++++++++--- x11-wm/herbstluftwm/herbstluftwm-9999.ebuild | 25 ++++++++++++++++++++++--- 2 files changed, 44 insertions(+), 6 deletions(-) diff --git a/x11-wm/herbstluftwm/herbstluftwm-0.9.3.ebuild b/x11-wm/herbstluftwm/herbstluftwm-0.9.3.ebuild index f374bfa2fc7..652478161a9 100644 --- a/x11-wm/herbstluftwm/herbstluftwm-0.9.3.ebuild +++ b/x11-wm/herbstluftwm/herbstluftwm-0.9.3.ebuild @@ -21,10 +21,11 @@ fi LICENSE="BSD-2" SLOT="0" -IUSE="+doc python" +IUSE="+doc python test" +RESTRICT="!test? ( test )" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" -DEPEND=" +COMMON_DEPEND=" media-libs/freetype x11-libs/libX11 x11-libs/libXext @@ -32,8 +33,18 @@ DEPEND=" x11-libs/libXinerama x11-libs/libXrandr " +DEPEND=" + ${COMMON_DEPEND} + test? ( + dev-python/ewmh + dev-python/python-xlib + x11-apps/xsetroot + x11-base/xorg-server[xephyr,xvfb] + x11-misc/xdotool + ) +" RDEPEND=" - ${DEPEND} + ${COMMON_DEPEND} app-shells/bash python? ( ${PYTHON_DEPS} ) " @@ -111,3 +122,11 @@ src_install() { done fi } + +distutils_enable_tests pytest + +src_test() { + ln -s "${BUILD_DIR}/herbstclient" || die "Could not symlink herbstclient" + ln -s "${BUILD_DIR}/herbstluftwm" || die "Could not symlink herbstluftwm" + python_test +} diff --git a/x11-wm/herbstluftwm/herbstluftwm-9999.ebuild b/x11-wm/herbstluftwm/herbstluftwm-9999.ebuild index f374bfa2fc7..652478161a9 100644 --- a/x11-wm/herbstluftwm/herbstluftwm-9999.ebuild +++ b/x11-wm/herbstluftwm/herbstluftwm-9999.ebuild @@ -21,10 +21,11 @@ fi LICENSE="BSD-2" SLOT="0" -IUSE="+doc python" +IUSE="+doc python test" +RESTRICT="!test? ( test )" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" -DEPEND=" +COMMON_DEPEND=" media-libs/freetype x11-libs/libX11 x11-libs/libXext @@ -32,8 +33,18 @@ DEPEND=" x11-libs/libXinerama x11-libs/libXrandr " +DEPEND=" + ${COMMON_DEPEND} + test? ( + dev-python/ewmh + dev-python/python-xlib + x11-apps/xsetroot + x11-base/xorg-server[xephyr,xvfb] + x11-misc/xdotool + ) +" RDEPEND=" - ${DEPEND} + ${COMMON_DEPEND} app-shells/bash python? ( ${PYTHON_DEPS} ) " @@ -111,3 +122,11 @@ src_install() { done fi } + +distutils_enable_tests pytest + +src_test() { + ln -s "${BUILD_DIR}/herbstclient" || die "Could not symlink herbstclient" + ln -s "${BUILD_DIR}/herbstluftwm" || die "Could not symlink herbstluftwm" + python_test +}