diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-01 16:25:37 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-01 16:25:37 +0000 |
| commit | a7ef811092e12dab201e81576bc27fe38ffe4064 (patch) | |
| tree | cfb2267e019c1053ee35128a01bacb8b19102680 /common.mk | |
| parent | 1f0cd4f0681b431de9a21d94fc3bb5189566c3ea (diff) | |
| download | ruby-a7ef811092e12dab201e81576bc27fe38ffe4064.tar.gz ruby-a7ef811092e12dab201e81576bc27fe38ffe4064.tar.xz ruby-a7ef811092e12dab201e81576bc27fe38ffe4064.zip | |
* common.mk (test-all): separate directory where running test cases
from source tree.
* lib/test/unit/autorunner.rb (options): added --basedir, --workdir
and --load-path options.
* lib/test/unit/collector/dir.rb (recursive_collect, collect_file):
base directory support.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
| -rw-r--r-- | common.mk | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -74,6 +74,9 @@ INSTRUBY_ARGS = $(SCRIPT_ARGS) --installed-list $(INSTALLED_LIST) PRE_LIBRUBY_UPDATE = $(MINIRUBY) -e 'ARGV[1] or File.unlink(ARGV[0]) rescue nil' -- \ $(LIBRUBY_EXTS) $(LIBRUBY_SO_UPDATE) +TESTSDIR = $(srcdir)/test +TESTWORKDIR = testwork + all: $(MKFILES) $(PREP) $(RBCONFIG) $(LIBRUBY) @$(MINIRUBY) $(srcdir)/ext/extmk.rb $(EXTMK_ARGS) prog: $(PROGRAM) $(WPROGRAM) @@ -278,7 +281,7 @@ test: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) PHONY @$(MINIRUBY) $(srcdir)/rubytest.rb test-all: - $(RUNRUBY) -C "$(srcdir)/test" runner.rb --runner=$(TESTUI) $(TESTS) + $(RUNRUBY) "$(srcdir)/test/runner.rb" --basedir="$(TESTSDIR)" --runner=$(TESTUI) $(TESTS) extconf: $(MINIRUBY) -I$(srcdir)/lib -run -e mkdir -- -p "$(EXTCONFDIR)" |
