mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
games-emulation/dosbox-x: Enable unit tests
Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
This commit is contained in:
@@ -25,6 +25,8 @@ LICENSE="GPL-2"
|
|||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|
||||||
IUSE="X debug ffmpeg fluidsynth freetype opengl png slirp"
|
IUSE="X debug ffmpeg fluidsynth freetype opengl png slirp"
|
||||||
|
# Unit tests are only available in debug builds
|
||||||
|
RESTRICT="!debug? ( test )"
|
||||||
|
|
||||||
BDEPEND="
|
BDEPEND="
|
||||||
dev-lang/nasm
|
dev-lang/nasm
|
||||||
@@ -151,6 +153,12 @@ src_compile() {
|
|||||||
emake AR="$(tc-getAR)"
|
emake AR="$(tc-getAR)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
set -- src/dosbox-x -tests
|
||||||
|
echo "${@}" >&2
|
||||||
|
"${@}" || die "Unit tests failed"
|
||||||
|
}
|
||||||
|
|
||||||
pkg_preinst() {
|
pkg_preinst() {
|
||||||
xdg_pkg_preinst
|
xdg_pkg_preinst
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ LICENSE="GPL-2"
|
|||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|
||||||
IUSE="X debug ffmpeg fluidsynth freetype opengl png slirp"
|
IUSE="X debug ffmpeg fluidsynth freetype opengl png slirp"
|
||||||
|
# Unit tests are only available in debug builds
|
||||||
|
RESTRICT="!debug? ( test )"
|
||||||
|
|
||||||
BDEPEND="
|
BDEPEND="
|
||||||
dev-lang/nasm
|
dev-lang/nasm
|
||||||
@@ -118,6 +120,12 @@ src_compile() {
|
|||||||
emake AR="$(tc-getAR)"
|
emake AR="$(tc-getAR)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
set -- src/dosbox-x -tests
|
||||||
|
echo "${@}" >&2
|
||||||
|
"${@}" || die "Unit tests failed"
|
||||||
|
}
|
||||||
|
|
||||||
pkg_preinst() {
|
pkg_preinst() {
|
||||||
xdg_pkg_preinst
|
xdg_pkg_preinst
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user