dev-util/spirv-tools: unrestrict tests

Just skip the (potentially) flaky tests, though they passed for me.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-06-21 07:17:31 +01:00
parent 31b5bf87a0
commit 912b10968c
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 31 additions and 7 deletions

View File

@ -23,9 +23,8 @@ HOMEPAGE="https://github.com/KhronosGroup/SPIRV-Tools"
LICENSE="Apache-2.0"
SLOT="0"
# Tests fail upon finding symbols that do not match a regular expression
# in the generated library. Easily hit with non-standard compiler flags
RESTRICT="test"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="~dev-util/spirv-headers-${PV}"
# RDEPEND=""
@ -35,6 +34,7 @@ multilib_src_configure() {
local mycmakeargs=(
-DSPIRV-Headers_SOURCE_DIR="${ESYSROOT}"/usr/
-DSPIRV_WERROR=OFF
-DSPIRV_SKIP_TESTS=$(usex !test)
-DSPIRV_TOOLS_BUILD_STATIC=OFF
-DCMAKE_C_FLAGS="${CFLAGS} -DNDEBUG"
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG"
@ -42,3 +42,15 @@ multilib_src_configure() {
cmake_src_configure
}
src_test() {
CMAKE_SKIP_TESTS=(
# Not relevant for us downstream
spirv-tools-copyrights
# Tests fail upon finding symbols that do not match a regular expression
# in the generated library. Easily hit with non-standard compiler flags
spirv-tools-symbol-exports.*
)
multilib-minimal_src_test
}

View File

@ -14,7 +14,7 @@ if [[ ${PV} == *9999* ]]; then
else
EGIT_COMMIT="vulkan-sdk-${PV}"
SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
S="${WORKDIR}"/${MY_PN}-${EGIT_COMMIT}
fi
@ -23,9 +23,8 @@ HOMEPAGE="https://github.com/KhronosGroup/SPIRV-Tools"
LICENSE="Apache-2.0"
SLOT="0"
# Tests fail upon finding symbols that do not match a regular expression
# in the generated library. Easily hit with non-standard compiler flags
RESTRICT="test"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="~dev-util/spirv-headers-${PV}"
# RDEPEND=""
@ -35,6 +34,7 @@ multilib_src_configure() {
local mycmakeargs=(
-DSPIRV-Headers_SOURCE_DIR="${ESYSROOT}"/usr/
-DSPIRV_WERROR=OFF
-DSPIRV_SKIP_TESTS=$(usex !test)
-DSPIRV_TOOLS_BUILD_STATIC=OFF
-DCMAKE_C_FLAGS="${CFLAGS} -DNDEBUG"
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG"
@ -42,3 +42,15 @@ multilib_src_configure() {
cmake_src_configure
}
src_test() {
CMAKE_SKIP_TESTS=(
# Not relevant for us downstream
spirv-tools-copyrights
# Tests fail upon finding symbols that do not match a regular expression
# in the generated library. Easily hit with non-standard compiler flags
spirv-tools-symbol-exports.*
)
multilib-minimal_src_test
}