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 5CB2B13835A for ; Thu, 23 Jul 2020 15:19:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7F9E3E0826; Thu, 23 Jul 2020 15:19:35 +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 66687E0825 for ; Thu, 23 Jul 2020 15:19:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 3395134F1D5 for ; Thu, 23 Jul 2020 15:19:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4A1A12EE for ; Thu, 23 Jul 2020 15:19:30 +0000 (UTC) From: "Alexis Ballier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexis Ballier" Message-ID: <1595517530.af41c50a83aa42d3f8eeeb3368d03cca06528aca.aballier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/console_bridge/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/console_bridge/console_bridge-1.0.1.ebuild dev-libs/console_bridge/console_bridge-9999.ebuild X-VCS-Directories: dev-libs/console_bridge/ X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier X-VCS-Revision: af41c50a83aa42d3f8eeeb3368d03cca06528aca X-VCS-Branch: master Date: Thu, 23 Jul 2020 15:19:30 +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: 5eb6a9a1-c502-45ac-ad85-1edd3a2d9218 X-Archives-Hash: 774158cea29afcbb938c152fe5030c24 commit: af41c50a83aa42d3f8eeeb3368d03cca06528aca Author: Alexis Ballier gentoo org> AuthorDate: Thu Jul 23 12:05:01 2020 +0000 Commit: Alexis Ballier gentoo org> CommitDate: Thu Jul 23 15:18:50 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af41c50a dev-libs/console_bridge: add tests Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Alexis Ballier gentoo.org> .../console_bridge/console_bridge-1.0.1.ebuild | 22 ++++++++++++++++++++-- dev-libs/console_bridge/console_bridge-9999.ebuild | 22 ++++++++++++++++++++-- 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/dev-libs/console_bridge/console_bridge-1.0.1.ebuild b/dev-libs/console_bridge/console_bridge-1.0.1.ebuild index 82bb72cef12..cc6b84d4565 100644 --- a/dev-libs/console_bridge/console_bridge-1.0.1.ebuild +++ b/dev-libs/console_bridge/console_bridge-1.0.1.ebuild @@ -9,7 +9,7 @@ if [ "${PV#9999}" != "${PV}" ] ; then EGIT_REPO_URI="https://github.com/ros/console_bridge" fi -inherit ${SCM} cmake multilib +inherit ${SCM} cmake if [ "${PV#9999}" != "${PV}" ] ; then KEYWORDS="" @@ -23,7 +23,25 @@ DESCRIPTION="A ROS-independent package for logging into rosconsole/rosout" HOMEPAGE="http://wiki.ros.org/console_bridge" LICENSE="BSD" SLOT="0/1" -IUSE="" +IUSE="test" RDEPEND="dev-libs/boost:=[threads]" DEPEND="${RDEPEND}" +BDEPEND=" + test? ( + net-misc/wget + dev-util/cppcheck + ) +" + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test ON OFF) + ) + cmake_src_configure +} + +src_test() { + export AMENT_CPPCHECK_ALLOW_1_88=yes + cmake_src_test +} diff --git a/dev-libs/console_bridge/console_bridge-9999.ebuild b/dev-libs/console_bridge/console_bridge-9999.ebuild index 82bb72cef12..cc6b84d4565 100644 --- a/dev-libs/console_bridge/console_bridge-9999.ebuild +++ b/dev-libs/console_bridge/console_bridge-9999.ebuild @@ -9,7 +9,7 @@ if [ "${PV#9999}" != "${PV}" ] ; then EGIT_REPO_URI="https://github.com/ros/console_bridge" fi -inherit ${SCM} cmake multilib +inherit ${SCM} cmake if [ "${PV#9999}" != "${PV}" ] ; then KEYWORDS="" @@ -23,7 +23,25 @@ DESCRIPTION="A ROS-independent package for logging into rosconsole/rosout" HOMEPAGE="http://wiki.ros.org/console_bridge" LICENSE="BSD" SLOT="0/1" -IUSE="" +IUSE="test" RDEPEND="dev-libs/boost:=[threads]" DEPEND="${RDEPEND}" +BDEPEND=" + test? ( + net-misc/wget + dev-util/cppcheck + ) +" + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test ON OFF) + ) + cmake_src_configure +} + +src_test() { + export AMENT_CPPCHECK_ALLOW_1_88=yes + cmake_src_test +}