mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* common.mk: test-sample was changed to test-basic.
[Feature #11982][ruby-core:72823] * basictest/runner.rb: ditto. rename from tool/rubytest.rb. * basictest/test.rb: ditto. rename from sample/test.rb. * defs/gmake.mk: picked from r53540 * sample/test.rb: backword compatibility for chkbuild. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f69d6c4fe1
commit
203e604f46
6 changed files with 2394 additions and 2381 deletions
|
@ -1,3 +1,12 @@
|
|||
Sat Jan 16 10:31:00 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||
|
||||
* common.mk: test-sample was changed to test-basic.
|
||||
[Feature #11982][ruby-core:72823]
|
||||
* basictest/runner.rb: ditto. rename from tool/rubytest.rb.
|
||||
* basictest/test.rb: ditto. rename from sample/test.rb.
|
||||
* defs/gmake.mk: picked from r53540
|
||||
* sample/test.rb: backword compatibility for chkbuild.
|
||||
|
||||
Sat Jan 16 10:23:23 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
|
||||
* string.c, enc/unicode.c: New code path as a preparation for Unicode-wide
|
||||
|
|
4
tool/rubytest.rb → basictest/runner.rb
Executable file → Normal file
4
tool/rubytest.rb → basictest/runner.rb
Executable file → Normal file
|
@ -17,12 +17,12 @@ $stderr.reopen($stdout)
|
|||
error = ''
|
||||
|
||||
srcdir = File.expand_path('..', File.dirname(__FILE__))
|
||||
`#{ruby} #{opt} #{srcdir}/sample/test.rb #{ARGV.join(' ')}`.each_line do |line|
|
||||
`#{ruby} #{opt} #{srcdir}/basictest/test.rb #{ARGV.join(' ')}`.each_line do |line|
|
||||
if line =~ /^end of test/
|
||||
print "\ntest succeeded\n"
|
||||
exit true
|
||||
end
|
||||
error << line if %r:^(sample/test.rb|not): =~ line
|
||||
error << line if %r:^(basictest/test.rb|not): =~ line
|
||||
end
|
||||
puts
|
||||
print error
|
2369
basictest/test.rb
Normal file
2369
basictest/test.rb
Normal file
File diff suppressed because it is too large
Load diff
13
common.mk
13
common.mk
|
@ -581,10 +581,10 @@ no-btest-ruby: PHONY
|
|||
yes-btest-ruby: prog PHONY
|
||||
$(Q)$(exec) $(RUNRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(PROGRAM) -I$(srcdir)/lib $(RUN_OPTS)" -q $(OPTS) $(TESTOPTS)
|
||||
|
||||
test-sample: $(TEST_RUNNABLE)-test-sample
|
||||
no-test-sample: PHONY
|
||||
yes-test-sample: prog PHONY
|
||||
$(Q)$(exec) $(RUNRUBY) "$(srcdir)/tool/rubytest.rb" --run-opt=$(RUN_OPTS) $(OPTS) $(TESTOPTS)
|
||||
test-basic: $(TEST_RUNNABLE)-test-basic
|
||||
no-test-basic: PHONY
|
||||
yes-test-basic: prog PHONY
|
||||
$(Q)$(exec) $(RUNRUBY) "$(srcdir)/basictest/runner.rb" --run-opt=$(RUN_OPTS) $(OPTS) $(TESTOPTS)
|
||||
|
||||
test-knownbugs: test-knownbug
|
||||
test-knownbug: $(TEST_RUNNABLE)-test-knownbug
|
||||
|
@ -597,7 +597,8 @@ yes-test-testframework: prog PHONY
|
|||
$(Q)$(exec) $(RUNRUBY) "$(srcdir)/test/runner.rb" --ruby="$(RUNRUBY)" $(TESTOPTS) testunit minitest
|
||||
no-test-testframework: PHONY
|
||||
|
||||
test: test-sample btest-ruby test-knownbug
|
||||
test-sample: test-basic # backword compatibility for mswin-build
|
||||
test: btest-ruby test-knownbug test-basic
|
||||
|
||||
# $ make test-all TESTOPTS="--help" displays more detail
|
||||
# for example, make test-all TESTOPTS="-j2 -v -n test-name -- test-file-name"
|
||||
|
@ -663,7 +664,7 @@ $(ENC_MK): $(srcdir)/enc/make_encmake.rb $(srcdir)/enc/Makefile.in $(srcdir)/enc
|
|||
.PHONY: clean clean-ext clean-local clean-enc clean-golf clean-rdoc clean-html clean-extout
|
||||
.PHONY: distclean distclean-ext distclean-local distclean-enc distclean-golf distclean-extout
|
||||
.PHONY: realclean realclean-ext realclean-local realclean-enc realclean-golf realclean-extout
|
||||
.PHONY: check test test-all btest btest-ruby test-sample test-knownbug
|
||||
.PHONY: check test test-all btest btest-ruby test-basic test-knownbug
|
||||
.PHONY: run runruby parse benchmark benchmark-each tbench gdb gdb-ruby
|
||||
.PHONY: update-mspec update-rubyspec test-rubyspec
|
||||
|
||||
|
|
|
@ -41,12 +41,13 @@ $(foreach arch,$(filter -arch=%,$(subst -arch ,-arch=,$(ARCH_FLAG))),\
|
|||
endif
|
||||
|
||||
ifneq ($(filter $(CHECK_TARGETS) test,$(MAKECMDGOALS)),)
|
||||
yes-test-basic: $(TEST_DEPENDS) yes-test-knownbug
|
||||
yes-test-knownbug: $(TEST_DEPENDS) yes-btest-ruby
|
||||
yes-btest-ruby: $(TEST_DEPENDS) yes-test-sample
|
||||
yes-test-sample: $(TEST_DEPENDS)
|
||||
yes-btest-ruby: $(TEST_DEPENDS)
|
||||
endif
|
||||
ifneq ($(filter $(CHECK_TARGETS),$(MAKECMDGOALS)) $(filter test-all,$(TEST_TARGETS)),)
|
||||
yes-test-testframework yes-test-almost yes-test-ruby: $(filter-out %test-all %test-ruby check%,$(TEST_TARGETS))
|
||||
ifneq ($(filter $(CHECK_TARGETS),$(MAKECMDGOALS)) $(filter yes-test-all,$(TEST_TARGETS)),)
|
||||
yes-test-testframework yes-test-almost yes-test-ruby: $(filter-out %test-all %test-ruby check%,$(TEST_TARGETS)) \
|
||||
yes-test-basic
|
||||
endif
|
||||
ifneq ($(filter $(CHECK_TARGETS),$(MAKECMDGOALS))$(if $(filter test-all,$(MAKECMDGOALS)),$(filter test-knownbug,$(MAKECMDGOALS))),)
|
||||
yes-test-testframework yes-test-almost yes-test-ruby: yes-test-knownbug
|
||||
|
|
2371
sample/test.rb
2371
sample/test.rb
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue