sci-ml/NNPACK: enable test

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2025-03-17 19:33:48 +01:00
parent 3b5604ff9d
commit 9eaa8463db
2 changed files with 16 additions and 2 deletions
+13 -2
View File
@@ -18,8 +18,8 @@ S="${WORKDIR}"/${PN}-${CommitId}
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE=test
RESTRICT="test" # consuming too much CPU
IUSE="test test-full"
RESTRICT="!test? ( test )"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
@@ -56,3 +56,14 @@ src_configure() {
)
cmake_src_configure
}
src_test() {
use test-full || local CMAKE_SKIP_TESTS=(
convolution-output-overfeat
convolution-kernel-gradient-vgg
convolution-input-gradient-overfeat
convolution-input-gradient-vgg
convolution-output-vgg
)
cmake_src_test
}
+3
View File
@@ -5,6 +5,9 @@
<email>tupone@gentoo.org</email>
<name>Tupone Alfredo</name>
</maintainer>
<use>
<flag name="test-full">Run additional, quite slow tests</flag>
</use>
<upstream>
<remote-id type="github">Maratyszcza/NNPACK</remote-id>
</upstream>