summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororbea <orbea@riseup.net>2024-03-01 18:00:02 -0800
committerSam James <sam@gentoo.org>2024-03-21 02:45:10 +0000
commit67f0b56fbfb18e333a75490785862c193630e4fb (patch)
treee64df6dfdb5ac042a12a530c516ba7f4c7e27cc0 /dev-util/rgbds
parentgames-emulation/gambatte-jg: update dependencies (diff)
downloadgentoo-67f0b56fbfb18e333a75490785862c193630e4fb.tar.gz
gentoo-67f0b56fbfb18e333a75490785862c193630e4fb.tar.bz2
gentoo-67f0b56fbfb18e333a75490785862c193630e4fb.zip
dev-util/rgbds: enable tests
Signed-off-by: orbea <orbea@riseup.net> Closes: https://github.com/gentoo/gentoo/pull/35594 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/rgbds')
-rw-r--r--dev-util/rgbds/rgbds-0.7.0.ebuild9
-rw-r--r--dev-util/rgbds/rgbds-9999.ebuild9
2 files changed, 18 insertions, 0 deletions
diff --git a/dev-util/rgbds/rgbds-0.7.0.ebuild b/dev-util/rgbds/rgbds-0.7.0.ebuild
index 15f4299a0ec4..562335e6e1e6 100644
--- a/dev-util/rgbds/rgbds-0.7.0.ebuild
+++ b/dev-util/rgbds/rgbds-0.7.0.ebuild
@@ -36,3 +36,12 @@ src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr Q= STRIP= install
dodoc README.rst
}
+
+src_test() {
+ local dir
+ for dir in asm link fix gfx; do
+ pushd "test/${dir}" >/dev/null || die
+ ./test.sh || die
+ popd >/dev/null || die
+ done
+}
diff --git a/dev-util/rgbds/rgbds-9999.ebuild b/dev-util/rgbds/rgbds-9999.ebuild
index 01a4fc5c18e6..15028b55d8d2 100644
--- a/dev-util/rgbds/rgbds-9999.ebuild
+++ b/dev-util/rgbds/rgbds-9999.ebuild
@@ -36,3 +36,12 @@ src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr Q= STRIP= install
dodoc README.md
}
+
+src_test() {
+ local dir
+ for dir in asm link fix gfx; do
+ pushd "test/${dir}" >/dev/null || die
+ ./test.sh || die
+ popd >/dev/null || die
+ done
+}