commit: 152fbed6298f94415c6acb4acc6d86dc8b704a5c Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Jul 25 05:34:26 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Jul 25 05:34:26 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=152fbed6
app-arch/advancecomp: add smoke test in src_test We can't run the full testsuite because it is too rigid on expected output, but we can add some basic invocations of advdef which would've caught bug #959422. Bug: https://bugs.gentoo.org/959422 Signed-off-by: Sam James <sam <AT> gentoo.org> app-arch/advancecomp/advancecomp-2.6.ebuild | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/app-arch/advancecomp/advancecomp-2.6.ebuild b/app-arch/advancecomp/advancecomp-2.6.ebuild index 01b5197ad763..61c978ca8bc8 100644 --- a/app-arch/advancecomp/advancecomp-2.6.ebuild +++ b/app-arch/advancecomp/advancecomp-2.6.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -15,9 +15,6 @@ SRC_URI=" LICENSE="GPL-2+ Apache-2.0 LGPL-2.1+ MIT" SLOT="0" KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ppc ppc64 ~riscv x86" -# Tests seem to rely on exact output: -# https://sourceforge.net/p/advancemame/bugs/270/ -RESTRICT="test" RDEPEND=" app-arch/bzip2:= @@ -37,6 +34,19 @@ src_configure() { econf "${myconf[@]}" } +src_test() { + # Tests seem to rely on exact output: + # https://sourceforge.net/p/advancemame/bugs/270/ + #default + + # Do a smoke test given we can't run the real testsuite + cp "${DISTDIR}"/${P}.tar.gz "${T}" || die + local level + for level in -0 -1 -2 -3 -4 ; do + ./advdef -z ${level} "${T}"/${P}.tar.gz || die + done +} + src_install() { default dodoc HISTORY
