diff options
author | Alexis Ballier <aballier@gentoo.org> | 2020-07-23 14:05:01 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2020-07-23 17:18:50 +0200 |
commit | af41c50a83aa42d3f8eeeb3368d03cca06528aca (patch) | |
tree | 2a56ca93356006063d044517271d81794cf5bffd /dev-libs | |
parent | dev-libs/console_bridge: bump to 1.0.1 (diff) | |
download | gentoo-af41c50a83aa42d3f8eeeb3368d03cca06528aca.tar.gz gentoo-af41c50a83aa42d3f8eeeb3368d03cca06528aca.tar.bz2 gentoo-af41c50a83aa42d3f8eeeb3368d03cca06528aca.zip |
dev-libs/console_bridge: add tests
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/console_bridge/console_bridge-1.0.1.ebuild | 22 | ||||
-rw-r--r-- | 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 82bb72cef12a..cc6b84d4565e 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 82bb72cef12a..cc6b84d4565e 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 +} |