Skip to content

Commit

Permalink
dev-cpp/string-theory: run tests
Browse files Browse the repository at this point in the history
We now conditionally build tests too.

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Jan 22, 2021
1 parent 0e9596f commit 707c081
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion dev-cpp/string-theory/string-theory-3.3.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
Expand All @@ -13,3 +13,18 @@ S="${WORKDIR}/string_theory-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"

src_configure() {
local mycmakeargs=(
-DST_BUILD_TESTS=$(usex test)
)

cmake_src_configure
}

src_test() {
cd "${BUILD_DIR}/test" || die
./st_gtests || die
}

0 comments on commit 707c081

Please sign in to comment.