summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-13 01:59:11 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-13 01:59:11 +0000
commitcd01e5a8f0e71d0629668c5ab8ef50f2442e6c9e (patch)
treecdae32ce09e926eef6ff7cf39d4246edf01c5b18 /common.mk
parent4190b3c055ea869b3d94b56307bd86c2fc264014 (diff)
merges r20664 from trunk into ruby_1_9_1.
* common.mk (run, runruby, parse, gdb, gdb-ruby): you can also run other scripts than $(srcdir)/test.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk12
1 files changed, 7 insertions, 5 deletions
diff --git a/common.mk b/common.mk
index 78a9e00bc3..a4c2bf1eb5 100644
--- a/common.mk
+++ b/common.mk
@@ -114,6 +114,8 @@ PRE_LIBRUBY_UPDATE = $(MINIRUBY) -e 'ARGV[1] or File.unlink(ARGV[0]) rescue nil'
TESTSDIR = $(srcdir)/test
TESTWORKDIR = testwork
+TESTRUN_SCRIPT = $(srcdir)/test.rb
+
BOOTSTRAPRUBY = $(BASERUBY)
COMPILE_PRELUDE = $(MINIRUBY) -I$(srcdir) -rrbconfig $(srcdir)/tool/compile_prelude.rb
@@ -683,13 +685,13 @@ $(srcdir)/ext/ripper/ripper.c:
##
run: miniruby$(EXEEXT) PHONY
- $(MINIRUBY) $(srcdir)/test.rb $(RUNOPT)
+ $(MINIRUBY) $(TESTRUN_SCRIPT) $(RUNOPT)
runruby: $(PROGRAM) PHONY
- $(RUNRUBY) $(srcdir)/test.rb
+ $(RUNRUBY) $(TESTRUN_SCRIPT)
parse: miniruby$(EXEEXT) PHONY
- $(MINIRUBY) $(srcdir)/tool/parse.rb $(srcdir)/test.rb
+ $(MINIRUBY) $(srcdir)/tool/parse.rb $(TESTRUN_SCRIPT)
COMPARE_RUBY = $(BASERUBY)
ITEM =
@@ -720,10 +722,10 @@ run.gdb:
echo run >> run.gdb
gdb: miniruby$(EXEEXT) run.gdb PHONY
- gdb -x run.gdb --quiet --args $(MINIRUBY) $(srcdir)/test.rb
+ gdb -x run.gdb --quiet --args $(MINIRUBY) $(TESTRUN_SCRIPT)
gdb-ruby: $(PROGRAM) run.gdb PHONY
- gdb -x run.gdb --quiet --args $(PROGRAM) $(srcdir)/test.rb
+ gdb -x run.gdb --quiet --args $(PROGRAM) $(TESTRUN_SCRIPT)
dist:
$(BASERUBY) $(srcdir)/tool/make-snapshot tmp $(RELNAME)