dev-util/spirv-tools: Restrict tests
authorNick Sarnie <sarnex@gentoo.org>
Mon, 23 Apr 2018 02:23:41 +0000 (22:23 -0400)
committerNick Sarnie <sarnex@gentoo.org>
Mon, 23 Apr 2018 02:36:52 +0000 (22:36 -0400)
The tests go through all symbols in the generated libraries/executables, and check the symbol names against a hardcoded regular expression.
If an unmatching symbol is found, the test fails. This is easily hit if a user sets a compiler flag that causes symbols to change, such as PIC

Fixes: https://bugs.gentoo.org/651626

Package-Manager: Portage-2.3.31, Repoman-2.3.9

dev-util/spirv-tools/spirv-tools-2018.2-r1.ebuild
dev-util/spirv-tools/spirv-tools-9999.ebuild

index fa84f40f6b7e7a2d0c515b5e7c5dc85b869942a6..f1227eb734c8a902591155cb30180da42a831358 100644 (file)
@@ -12,6 +12,9 @@ SRC_URI="https://github.com/KhronosGroup/SPIRV-Tools/archive/v${PV}.tar.gz -> ${
 LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~amd64"
+# 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"
 
 RDEPEND=""
 DEPEND="dev-util/spirv-headers"
index e0e2f53d0e21c3db235121cda0def96f8f802c36..9cd364683405a3cdc3cd74789b65685e09854610 100644 (file)
@@ -12,6 +12,9 @@ SRC_URI=""
 
 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"
 
 RDEPEND=""
 DEPEND="dev-util/spirv-headers"