summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-08-13 22:21:26 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-08-13 22:21:26 +0000
commit95e8491198eecef6b5f4325c0c888d719b15e6de (patch)
tree27af0521cba9a178530e9e7c9b08c900a72ded1a /eclass/ruby-ng.eclass
parentRestore doc and test tasks, as both work fine; add support for ree18 and jruby. (diff)
downloadgentoo-2-95e8491198eecef6b5f4325c0c888d719b15e6de.tar.gz
gentoo-2-95e8491198eecef6b5f4325c0c888d719b15e6de.tar.bz2
gentoo-2-95e8491198eecef6b5f4325c0c888d719b15e6de.zip
Add support for cucumber as a test recipe. This allows abstracting some of the work needed to skip it over on JRuby.
Diffstat (limited to 'eclass/ruby-ng.eclass')
-rw-r--r--eclass/ruby-ng.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index d71fc31b3561..8af34662b043 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.49 2012/08/13 21:18:41 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.50 2012/08/13 22:21:26 flameeyes Exp $
# @ECLASS: ruby-ng.eclass
# @MAINTAINER:
@@ -687,6 +687,11 @@ ruby-ng_cucumber() {
;;
esac
+ if [[ ${RUBY} == *jruby ]]; then
+ ewarn "Skipping cucumber tests on JRuby (unsupported)."
+ return 0
+ fi
+
${RUBY} -S cucumber ${cucumber_params} "$@" || die "cucumber failed"
}