projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29d6547
)
dev-ml/ocaml-redis: start a local redis server in src_test, bug #623988
author
Alexis Ballier
<aballier@gentoo.org>
Sun, 9 Jul 2017 17:15:59 +0000
(19:15 +0200)
committer
Alexis Ballier
<aballier@gentoo.org>
Sun, 9 Jul 2017 17:16:17 +0000
(19:16 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2
dev-ml/ocaml-redis/ocaml-redis-0.3.5.ebuild
patch
|
blob
|
history
diff --git
a/dev-ml/ocaml-redis/ocaml-redis-0.3.5.ebuild
b/dev-ml/ocaml-redis/ocaml-redis-0.3.5.ebuild
index bea5cf2ad61cfd5918583658c21643e02f137087..5133ae440d4ed066aecde0816f532b776f098f01 100644
(file)
--- a/
dev-ml/ocaml-redis/ocaml-redis-0.3.5.ebuild
+++ b/
dev-ml/ocaml-redis/ocaml-redis-0.3.5.ebuild
@@
-22,14
+22,21
@@
RDEPEND="
DEPEND="${RDEPEND}
dev-ml/jbuilder
dev-ml/opam
- test? ( dev-ml/ounit )"
+ test? ( dev-ml/ounit
dev-db/redis
)"
src_compile() {
jbuilder build -p redis || die
}
src_test() {
- jbuilder runtest || die
+ einfo "Starting test redis server"
+ local port=4567
+ /usr/sbin/redis-server --port ${port} &
+ local rpid=$!
+ export OCAML_REDIS_TEST_PORT=${port}
+ sleep 1
+ jbuilder runtest || { kill ${rpid}; die; }
+ kill ${rpid} || die
}
src_install() {