Gentoo Archives: gentoo-proxy-maint

From: "Haelwenn (lanodan) Monnier" <contact@×××××××××.me>
To: gentoo-proxy-maint@l.g.o
Cc: "Haelwenn (lanodan) Monnier" <contact@×××××××××.me>
Subject: [gentoo-proxy-maint] [PATCH] games-arcade/oshu: Fix tests
Date: Wed, 01 Apr 2020 18:08:03
Message-Id: 20200401180747.23842-1-contact@hacktivis.me
1 Turn out it was failing because cmake.eclass calls ctest directly
2
3 Signed-off-by: Haelwenn (lanodan) Monnier <contact@×××××××××.me>
4 ---
5 games-arcade/oshu/oshu-2.0.1.ebuild | 8 ++++----
6 games-arcade/oshu/oshu-9999.ebuild | 8 ++++----
7 2 files changed, 8 insertions(+), 8 deletions(-)
8
9 diff --git a/games-arcade/oshu/oshu-2.0.1.ebuild b/games-arcade/oshu/oshu-2.0.1.ebuild
10 index 84d415b3c11..f394d808178 100644
11 --- a/games-arcade/oshu/oshu-2.0.1.ebuild
12 +++ b/games-arcade/oshu/oshu-2.0.1.ebuild
13 @@ -32,10 +32,6 @@ RDEPEND="
14
15 DEPEND="${RDEPEND}"
16
17 -# Doesn't build executable needed for the test
18 -# https://github.com/fmang/oshu/issues/87
19 -RESTRICT="test"
20 -
21 src_prepare() {
22 if use osu-skin; then
23 eapply "${FILESDIR}/oshu-2.0.0-use_unpacked_osu-skin.patch"
24 @@ -53,3 +49,7 @@ src_configure() {
25
26 cmake_src_configure
27 }
28 +
29 +src_test() {
30 + cmake_build check
31 +}
32 diff --git a/games-arcade/oshu/oshu-9999.ebuild b/games-arcade/oshu/oshu-9999.ebuild
33 index 84d415b3c11..f394d808178 100644
34 --- a/games-arcade/oshu/oshu-9999.ebuild
35 +++ b/games-arcade/oshu/oshu-9999.ebuild
36 @@ -32,10 +32,6 @@ RDEPEND="
37
38 DEPEND="${RDEPEND}"
39
40 -# Doesn't build executable needed for the test
41 -# https://github.com/fmang/oshu/issues/87
42 -RESTRICT="test"
43 -
44 src_prepare() {
45 if use osu-skin; then
46 eapply "${FILESDIR}/oshu-2.0.0-use_unpacked_osu-skin.patch"
47 @@ -53,3 +49,7 @@ src_configure() {
48
49 cmake_src_configure
50 }
51 +
52 +src_test() {
53 + cmake_build check
54 +}
55 --
56 2.24.1

Replies

Subject Author
Re: [gentoo-proxy-maint] [PATCH] games-arcade/oshu: Fix tests Joonas Niilola <juippis@g.o>