From 0a3e9cacd7ca2feb91bae23b0c678d5e986f866f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 11 Jun 2010 08:47:41 +0000 Subject: update test infrastructure to support Rubinius Rubinius still has a few issues that prevent 100% support, but it basically works if log rotation or USR2 upgrades aren't required. Tickets for all known issues for Rubinius have been filed on the project's issue tracker. * rbx does not support -i/-p yet, so rely on MRI for that * "io/nonblock" is missing * avoiding any optional Gems for now (EM, Rev, etc..) --- GNUmakefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 32a1b8c..2474db8 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,5 +1,6 @@ # use GNU Make to run tests in parallel, and without depending on RubyGems all:: +MRI = ruby RUBY = ruby RAKE = rake RSYNC = rsync @@ -15,6 +16,7 @@ endif ifeq ($(RUBY_VERSION),) RUBY_VERSION := $(shell $(RUBY) -e 'puts RUBY_VERSION') endif +RUBY_ENGINE := $(shell $(RUBY) -e 'puts((RUBY_ENGINE rescue "ruby"))') base_bins := rainbows bins := $(addprefix bin/, $(base_bins)) @@ -91,16 +93,16 @@ doc: .document NEWS ChangeLog < $${i}_1.html > tmp && mv tmp $${i}_1.html; \ ln $${i}_1.html $${i}.1.html; \ done - $(RUBY) -i -p -e \ + $(MRI) -i -p -e \ '$$_.gsub!("",%q{\&$(call atom,$(cgit_atom))})' \ doc/ChangeLog.html - $(RUBY) -i -p -e \ + $(MRI) -i -p -e \ '$$_.gsub!("",%q{\&$(call atom,$(news_atom))})' \ doc/NEWS.html doc/README.html $(RAKE) -s news_atom > doc/NEWS.atom.xml cd doc && ln README.html tmp && mv tmp index.html $(MAKE) -C Documentation comparison.html - $(RUBY) -i -p -e \ + $(MRI) -i -p -e \ '$$_.gsub!(/INCLUDE/){File.read("Documentation/comparison.html")}' \ doc/Summary.html cat Documentation/comparison.css >> doc/rdoc.css -- cgit v1.2.3-24-ge0c7