diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-15 00:25:46 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-15 00:25:46 +0000 |
commit | 17238bce22ba2fd4775c2ca20fd00dc0271548d5 (patch) | |
tree | 1ba7638fc8b9955e42220f714920478e3b91630e | |
parent | aa90e3b85996c5e6c2ed2b337c0dd055802f11a1 (diff) |
* 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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rwxr-xr-x | basictest/runner.rb (renamed from tool/rubytest.rb) | 4 | ||||
-rwxr-xr-x | basictest/test.rb (renamed from sample/test.rb) | 0 | ||||
-rw-r--r-- | common.mk | 12 |
4 files changed, 15 insertions, 8 deletions
@@ -1,3 +1,10 @@ +Fri Jan 15 09:25:07 2016 SHIBATA Hiroshi <[email protected]> + + * 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. + Thu Jan 14 20:01:00 2016 NARUSE, Yui <[email protected]> * lib/uri/generic.rb (URI::Generic#to_s): change encoding to diff --git a/tool/rubytest.rb b/basictest/runner.rb index a06c400744..2997f3af48 100755 --- a/tool/rubytest.rb +++ b/basictest/runner.rb @@ -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 diff --git a/sample/test.rb b/basictest/test.rb index 14f4d4a0f1..14f4d4a0f1 100755 --- a/sample/test.rb +++ b/basictest/test.rb @@ -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,7 @@ 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: 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 +663,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 |