Skip to content

Commit

Permalink
dev-perl/MogileFS-Server: cleanup QA issues, try to make tests work
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Robin H. Johnson <[email protected]>
  • Loading branch information
robbat2 committed Nov 8, 2019
1 parent 08e6bc0 commit 8b2ab6e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
14 changes: 9 additions & 5 deletions dev-perl/MogileFS-Server/MogileFS-Server-2.720.0-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ inherit user perl-module
DESCRIPTION="Server for the MogileFS distributed file system"
HOMEPAGE="http://www.danga.com/mogilefs/ ${HOMEPAGE}"

IUSE="mysql sqlite test postgres"
IUSE="mysql +sqlite test postgres"
RESTRICT="!test? ( test )"
REQUIRED_USE="test? ( sqlite ) || ( mysql sqlite postgres )"

SLOT="0"
Expand Down Expand Up @@ -38,7 +39,7 @@ DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}/${PN}-2.720.0-gentoo-init-conf.patch"
)
DIST_TEST="never"
DIST_TEST="never verbose"

MOGILE_USER="mogile"

Expand Down Expand Up @@ -77,6 +78,9 @@ pkg_postinst() {
chown root:${MOGILE_USER} "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
}

#src_test() {
# emake test MOGTEST_DBUSER=mogile MOGTEST_DBNAME=tmp_mogiletest MOGTEST_DBTYPE=SQLite
#}
src_test() {
# these need to be in the env and the makeopts
export MOGTEST_DBUSER=mogile MOGTEST_DBNAME=tmp_mogiletest MOGTEST_DBTYPE=SQLite TMPDIR="${T}/mogile"
#perl-module_src_test
make -j1 test TEST_VERBOSE=1 MOGTEST_DBUSER=${MOGTEST_DBUSER} MOGTEST_DBNAME=${MOGTEST_DBNAME} MOGTEST_DBTYPE=${MOGTEST_DBTYPE} TMPDIR="${TMPDIR}"
}
14 changes: 9 additions & 5 deletions dev-perl/MogileFS-Server/MogileFS-Server-2.730.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ inherit user perl-module
DESCRIPTION="Server for the MogileFS distributed file system"
HOMEPAGE="http://www.danga.com/mogilefs/ ${HOMEPAGE}"

IUSE="mysql sqlite test postgres"
IUSE="mysql +sqlite test postgres"
RESTRICT="!test? ( test )"
REQUIRED_USE="test? ( sqlite ) || ( mysql sqlite postgres )"

SLOT="0"
Expand Down Expand Up @@ -38,7 +39,7 @@ DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}/${PN}-2.720.0-gentoo-init-conf.patch"
)
DIST_TEST="never"
DIST_TEST="never verbose"

MOGILE_USER="mogile"

Expand Down Expand Up @@ -77,6 +78,9 @@ pkg_postinst() {
chown root:${MOGILE_USER} "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
}

#src_test() {
# emake test MOGTEST_DBUSER=mogile MOGTEST_DBNAME=tmp_mogiletest MOGTEST_DBTYPE=SQLite
#}
src_test() {
# these need to be in the env and the makeopts
export MOGTEST_DBUSER=mogile MOGTEST_DBNAME=tmp_mogiletest MOGTEST_DBTYPE=SQLite TMPDIR="${T}/mogile"
#perl-module_src_test
make -j1 test TEST_VERBOSE=1 MOGTEST_DBUSER=${MOGTEST_DBUSER} MOGTEST_DBNAME=${MOGTEST_DBNAME} MOGTEST_DBTYPE=${MOGTEST_DBTYPE} TMPDIR="${TMPDIR}"
}

0 comments on commit 8b2ab6e

Please sign in to comment.