summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-07-15 11:16:05 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-07-15 11:16:29 +0900
commitac6d137157121381fb57e3febd34c84cb7ca47b2 (patch)
tree3859796dbb7192e1975303863c6d519c2fde52ef /common.mk
parent41c5f9a166637bf9e49af19b3fa94163b51db64d (diff)
Added test-tool target for the test suite of tool/test files.
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/common.mk b/common.mk
index ee8f929595..8f45b1e851 100644
--- a/common.mk
+++ b/common.mk
@@ -187,6 +187,7 @@ INSTALL_DATA_MODE = 0644
TESTSDIR = $(srcdir)/test
TOOL_TESTSDIR = $(srcdir)/tool/test
TEST_EXCLUDES = --excludes-dir=$(TESTSDIR)/excludes --name=!/memory_leak/
+EXCLUDE_TESTFRAMEWORK = --exclude=/testunit/ --exclude=/minitest/
TESTWORKDIR = testwork
TESTOPTS = $(RUBY_TESTOPTS)
@@ -753,9 +754,14 @@ yes-test-knownbug: prog PHONY
test-testframework: $(TEST_RUNNABLE)-test-testframework
yes-test-testframework: prog PHONY
- $(gnumake_recursive)$(Q)$(exec) $(RUNRUBY) "$(srcdir)/test/runner.rb" --ruby="$(RUNRUBY)" --basedir=$(TOOL_TESTSDIR) $(TESTOPTS) testunit minitest
+ $(gnumake_recursive)$(Q)$(exec) $(RUNRUBY) "$(TOOL_TESTSDIR)/runner.rb" --ruby="$(RUNRUBY)" --basedir=$(TOOL_TESTSDIR) $(TESTOPTS) testunit minitest
no-test-testframework: PHONY
+test-tool: $(TEST_RUNNABLE)-test-tool
+yes-test-tool: prog PHONY
+ $(gnumake_recursive)$(Q)$(exec) $(RUNRUBY) "$(TOOL_TESTSDIR)/runner.rb" --ruby="$(RUNRUBY)" --basedir=$(TOOL_TESTSDIR) $(TESTOPTS) $(EXCLUDE_TESTFRAMEWORK)
+no-test-tool: PHONY
+
test-sample: test-basic # backward compatibility for mswin-build
test-short: btest-ruby test-knownbug test-basic
test: test-short