summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2019-11-08 13:29:12 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2019-11-08 13:29:19 -0800
commit8b2ab6eb952db74d29cd5dd068555461ed63ea93 (patch)
tree96f8e2d105d9fdcd9655c3664295103b29381e83 /dev-perl/MogileFS-Server
parentapp-text/xhtml1: Switch HOMEPAGE to https (diff)
downloadgentoo-8b2ab6eb952db74d29cd5dd068555461ed63ea93.tar.gz
gentoo-8b2ab6eb952db74d29cd5dd068555461ed63ea93.tar.bz2
gentoo-8b2ab6eb952db74d29cd5dd068555461ed63ea93.zip
dev-perl/MogileFS-Server: cleanup QA issues, try to make tests work
Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'dev-perl/MogileFS-Server')
-rw-r--r--dev-perl/MogileFS-Server/MogileFS-Server-2.720.0-r1.ebuild14
-rw-r--r--dev-perl/MogileFS-Server/MogileFS-Server-2.730.0.ebuild14
2 files changed, 18 insertions, 10 deletions
diff --git a/dev-perl/MogileFS-Server/MogileFS-Server-2.720.0-r1.ebuild b/dev-perl/MogileFS-Server/MogileFS-Server-2.720.0-r1.ebuild
index 1ab8f1f30f2b..8d2a778a8ff5 100644
--- a/dev-perl/MogileFS-Server/MogileFS-Server-2.720.0-r1.ebuild
+++ b/dev-perl/MogileFS-Server/MogileFS-Server-2.720.0-r1.ebuild
@@ -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"
@@ -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"
@@ -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}"
+}
diff --git a/dev-perl/MogileFS-Server/MogileFS-Server-2.730.0.ebuild b/dev-perl/MogileFS-Server/MogileFS-Server-2.730.0.ebuild
index 1ab8f1f30f2b..8d2a778a8ff5 100644
--- a/dev-perl/MogileFS-Server/MogileFS-Server-2.730.0.ebuild
+++ b/dev-perl/MogileFS-Server/MogileFS-Server-2.730.0.ebuild
@@ -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"
@@ -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"
@@ -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}"
+}