From a7ef811092e12dab201e81576bc27fe38ffe4064 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 1 Oct 2006 16:25:37 +0000 Subject: * 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 --- common.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'common.mk') diff --git a/common.mk b/common.mk index c837940aa..673d0a95a 100644 --- a/common.mk +++ b/common.mk @@ -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)" -- cgit