From 63db5513d48bd464952b4bde2b0520a47c51eac6 Mon Sep 17 00:00:00 2001 From: jeremy Date: Fri, 25 Mar 2011 16:39:24 +0000 Subject: [PATCH] Enable regress tests. OK landry@ --- net/ruby-eventmachine/Makefile | 7 ++++++- www/ruby-thin/Makefile | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/net/ruby-eventmachine/Makefile b/net/ruby-eventmachine/Makefile index cb2f68157c4..32f54109003 100644 --- a/net/ruby-eventmachine/Makefile +++ b/net/ruby-eventmachine/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.10 2011/01/06 04:24:24 jeremy Exp $ +# $OpenBSD: Makefile,v 1.11 2011/03/25 16:39:24 jeremy Exp $ COMMENT= event-driven I/O for Ruby using the Reactor pattern @@ -20,4 +20,9 @@ WANTLIB= crypto ssl stdc++ CONFIGURE_STYLE=ruby gem ext +MODRUBY_REGRESS = rake + +do-regress: + cd ${WRKSRC} && RUBYOPT=-Ilib:. ${RAKE} default + .include diff --git a/www/ruby-thin/Makefile b/www/ruby-thin/Makefile index 4c41874fa4a..94b4779b7e6 100644 --- a/www/ruby-thin/Makefile +++ b/www/ruby-thin/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.10 2011/03/14 17:58:06 jeremy Exp $ +# $OpenBSD: Makefile,v 1.11 2011/03/25 16:39:24 jeremy Exp $ COMMENT = fast and very simple Ruby web server @@ -22,4 +22,9 @@ RUN_DEPENDS = www/ruby-rack,${MODRUBY_FLAVOR}>=1.0.0 \ devel/ruby-daemons,${MODRUBY_FLAVOR}>=1.0.9 \ net/ruby-eventmachine,${MODRUBY_FLAVOR}>=0.12.6 +MODRUBY_REGRESS = rspec +REGRESS_DEPENDS = ${FULLPKGNAME}:${BUILD_PKGPATH} +do-regress: + cd ${WRKSRC} && RUBYOPT=-I. ${RSPEC} spec/*_spec.rb + .include