sci-electronics/ngspice: reenable tests
authorMarek Szuba <marecki@gentoo.org>
Fri, 29 Dec 2017 15:11:29 +0000 (16:11 +0100)
committerMarek Szuba <marecki@gentoo.org>
Fri, 29 Dec 2017 15:11:29 +0000 (16:11 +0100)
If USE=debug is not set, all tests should pass now - excessive output
which broke empty-1.cir and resume-1.cir was a side effect of enabling
NDEV, which we have just disabled as recommended by upstream.

If USE=debug *is* set tests cannot presently succeed because of excessive
output in all 4 tests in regression/lib-processing/. Just print a
warning and skip the tests altogether.

See-Also: https://sourceforge.net/p/ngspice/bugs/353/
Gentoo-Bug: https://bugs.gentoo.org/642460
Package-Manager: Portage-2.3.13, Repoman-2.3.3

sci-electronics/ngspice/ngspice-27-r1.ebuild

index c7357f55c6e96f0856da3e5e6cf26adb678327ba..849d3e48a21759043e94e2bf0a4d5a0d73a58741 100644 (file)
@@ -15,9 +15,6 @@ SLOT="0"
 IUSE="X debug doc examples fftw openmp readline shared tcl"
 KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x64-macos"
 
-# See bug #642460
-RESTRICT="test"
-
 DEPEND="sys-libs/ncurses:0=
        X? ( x11-libs/libXaw
                x11-libs/libXt
@@ -179,7 +176,14 @@ ngspice_install() {
 }
 
 src_test() {
-       multibuild_foreach_variant ngspice_test
+       if ! use debug; then
+               multibuild_foreach_variant ngspice_test
+       else
+               # https://sourceforge.net/p/ngspice/bugs/353/
+               ewarn
+               ewarn "Skipping tests because they are known to fail in debug mode"
+               ewarn
+       fi
 }
 
 ngspice_test() {