diff options
author | Aisha Tammy <gentoo@aisha.cc> | 2021-02-26 12:31:51 +0000 |
---|---|---|
committer | Nicolas Bock <nicolasbock@gentoo.org> | 2021-02-26 06:21:35 -0700 |
commit | 04085d3a91b2a1ff79524a28428f0a38464f99ae (patch) | |
tree | 3bb4e0eff08ddb6c32a1eb7ed3e1286d274a112e /dev-db/lmdb++ | |
parent | dev-python/dask: Remove old (diff) | |
download | gentoo-04085d3a91b2a1ff79524a28428f0a38464f99ae.tar.gz gentoo-04085d3a91b2a1ff79524a28428f0a38464f99ae.tar.bz2 gentoo-04085d3a91b2a1ff79524a28428f0a38464f99ae.zip |
dev-db/lmdb++: add tests
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Closes: https://github.com/gentoo/gentoo/pull/19666
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Signed-off-by: Nicolas Bock <nicolasbock@gentoo.org>
Diffstat (limited to 'dev-db/lmdb++')
-rw-r--r-- | dev-db/lmdb++/lmdb++-1.0.0.ebuild | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dev-db/lmdb++/lmdb++-1.0.0.ebuild b/dev-db/lmdb++/lmdb++-1.0.0.ebuild index 679ba682a754..4aacc4ef06c9 100644 --- a/dev-db/lmdb++/lmdb++-1.0.0.ebuild +++ b/dev-db/lmdb++/lmdb++-1.0.0.ebuild @@ -13,7 +13,8 @@ SRC_URI="https://github.com/hoytech/lmdbxx/archive/${PV}.tar.gz -> ${MY_P}.tar.g LICENSE="public-domain" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="test" +RESTRICT="!test? ( test )" RDEPEND="dev-db/lmdb" @@ -21,3 +22,7 @@ src_install() { emake PREFIX="${D}/usr" install dodoc AUTHORS CREDITS INSTALL README.md TODO UNLICENSE } + +src_test() { + emake CXXFLAGS="-g -std=c++17 ${CXXFLAGS}" LDFLAGS="${LDFLAGS}" check +} |