зеркало из https://github.com/github/ruby.git
Split test files for test-framework that are test-unit and minitest to tool direcotry.
This commit is contained in:
Родитель
c3c0e3f5c9
Коммит
c68781e918
|
@ -185,6 +185,7 @@ INSTALL_PROG_MODE = 0755
|
|||
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
|
||||
|
@ -753,7 +754,7 @@ 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)" $(TESTOPTS) testunit minitest
|
||||
$(gnumake_recursive)$(Q)$(exec) $(RUNRUBY) "$(srcdir)/test/runner.rb" --ruby="$(RUNRUBY)" --basedir=${TOOL_TESTSDIR} $(TESTOPTS) testunit minitest
|
||||
no-test-testframework: PHONY
|
||||
|
||||
test-sample: test-basic # backward compatibility for mswin-build
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
|
||||
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../../lib"
|
||||
|
||||
require 'test/unit'
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
|
||||
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../../lib"
|
||||
|
||||
require 'test/unit'
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
|
||||
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../../lib"
|
||||
|
||||
require 'test/unit'
|
||||
|
|
@ -3,7 +3,7 @@ require 'test/unit'
|
|||
require 'timeout'
|
||||
|
||||
module TestParallel
|
||||
PARALLEL_RB = "#{File.dirname(__FILE__)}/../lib/test/unit/parallel.rb"
|
||||
PARALLEL_RB = "#{File.dirname(__FILE__)}/../../lib/test/unit/parallel.rb"
|
||||
TESTS = "#{File.dirname(__FILE__)}/tests_for_parallel"
|
||||
# use large timeout for --jit-wait
|
||||
TIMEOUT = EnvUtil.apply_timeout_scale(RubyVM::MJIT.enabled? ? 100 : 30)
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rbconfig'
|
||||
|
||||
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../../lib"
|
||||
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../../../lib"
|
||||
|
||||
require 'test/unit'
|
||||
|
Загрузка…
Ссылка в новой задаче