aboutsummaryrefslogtreecommitdiffstats
path: root/sample/test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded exec bits from some filesDavid Rodríguez2019-11-091-0/+0
| | | | | | | | | | | | | I noticed that some files in rubygems were executable, and I could think of no reason why they should be. In general, I think ruby files should never have the executable bit set unless they include a shebang, so I run the following command over the whole repo: ```bash find . -name '*.rb' -type f -executable -exec bash -c 'grep -L "^#!" $1 || chmod -x $1' _ {} \; ```
* fix typos [ci skip]kazu2016-10-271-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: test-sample was changed to test-basic.hsbt2016-01-161-2369/+2
| | | | | | | | | | [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
* Revert r53539 and r53540nobu2016-01-151-1/+1
| | | | | | | | * basictest/test.rb: revert r53539 because it depends on r53537. * gmake.mk: ditto, revert r53540. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert "* common.mk: test-sample was changed to test-basic."naruse2016-01-151-0/+2369
| | | | | | | This reverts r53537. Fix chkbuild first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: test-sample was changed to test-basic.hsbt2016-01-151-2369/+0
| | | | | | | | [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
* default colorsnobu2015-05-171-1/+7
| | | | | | | * bootstraptest/runner.rb, sample/test.rb, test/lib/test/unit.rb: shared the default colors from test/colors file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reset colorsnobu2015-05-171-2/+2
| | | | | | | * bootstraptest/runner.rb, sample/test.rb, test/lib/test/unit.rb: reset for each colors. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typo in comment [ci skip]kazu2014-11-091-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: Make temporary file names unique.akr2013-11-031-20/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test: tty optionnobu2013-01-151-1/+6
| | | | | | | | | | | * bootstraptest/runner.rb (main): add --tty option to output like terminal, for mingw/mswin on cygwin. * lib/test/unit.rb (Test::Unit::Options#setup_options): ditto. * sample/test.rb (Progress#initialize): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test.rb: show messages in one linenobu2012-12-111-2/+6
| | | | | | | | * sample/test.rb (Progress#initialize): add --verbose option and show messages in one line unless --verbose is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert r37326 "remove string literal concatenation"nobu2012-10-251-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove string literal concatenationnobu2012-10-251-4/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sample/test.rb: fix standalonenobu2012-07-111-1/+1
| | | | | | | | * sample/test.rb (Progress#initialize): no rotators when STDOUT is also tty, that is directly invoked but not from tool/rubytest.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sample/test.rb: Progress::Rotatornobu2012-07-101-52/+70
| | | | | | * sample/test.rb (Progress): refactor to separate Rotator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sample/test.rb: newlinenobu2012-07-101-0/+1
| | | | | | * sample/test.rb (PROGRESS.finish): newline after each tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test: scan ARGVnobu2012-06-261-6/+8
| | | | | | * sample/test.rb: scan ARGV all. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test: reduce output if succedednobu2012-06-261-1/+5
| | | | | | | * bootstraptest/runner.rb (exec_test): reduce output if succeded. * sample/test.rb (PROGRESS.finish): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test: TEST_COLORSnobu2012-06-151-1/+1
| | | | | | | | * bootstraptest/runner.rb (main): fixed typo. * lib/test/unit.rb (Test::Unit::Runner#_prepare_run): ditto. * sample/test.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test: TEST_COLORSnobu2012-06-151-2/+4
| | | | | | | | | | | * bootstraptest/runner.rb (main): customize colors by dircolors-like style environment variable TEST_COLORS. * lib/test/unit.rb (Test::Unit::Runner#_prepare_run): ditto. * sample/test.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test: unknown --color argumentnobu2012-06-151-2/+3
| | | | | | | | * bootstraptest/runner.rb (main): warn unknown --color argument. * sample/test.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32: VT100 escapenobu2012-06-041-1/+0
| | | | | | | | * win32/win32.c (constat_apply): apply VT100 functions. [ruby-core:44958] [Feature #6418] * win32/win32.c (constat_parse): parse some VT100 escape sequence. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* color optionnobu2012-05-301-2/+14
| | | | | | * bootstraptest/runner.rb, sample/test.rb: add --color option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tests: customizable colorsnobu2012-05-081-2/+2
| | | | | | | * bootstraptest/runner.rb, lib/test/unit.rb, sample/test.rb: customizable colors. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sample/test.rb: refine outputnobu2012-05-071-2/+49
| | | | | | | * sample/test.rb (PROGRESS): refine output. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.nobu2011-05-151-11/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_system.rb (test_syntax2): moved from sample/test.rbakr2010-07-041-28/+0
| | | | | | | [ruby-dev:41721] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: sort files for syntax validataion.akr2010-02-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax?): should not capture BOM.nobu2009-06-171-1/+1
| | | | | | | * test/ruby/test_system.rb (TestSystem#valid_syntax?): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax?): skips BOM. [ruby-dev:38666]nobu2009-06-171-3/+4
| | | | | | | * test/ruby/test_system.rb (TestSystem#valid_syntax?): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax?): defaults to us-ascii.nobu2009-05-141-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax?), test/ruby/test_system.rbnobu2009-02-021-2/+2
| | | | | | | | (TestSystem::valid_syntax?): use catch and throw instead of return inside BEGIN block. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (exc_equal): == method should not raise Exception.ko12008-12-241-2/+4
| | | | | | | | | [ruby-dev:37519] * sample/test.rb: fix test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: rescue exception.takano322008-12-211-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (f_block_optarg): allow default for block parameters asmatz2008-09-061-0/+58
| | | | | | | long as the value is primary. a patch from Eric Mahurin <eric.mahurin at gmail.com> in [ruby-core:16880]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* wait signal arrival 10sec.akr2008-02-131-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/runner.rb, bootstraptest/test_method.rb, enc/depend,naruse2008-02-121-1/+1
| | | | | | | | instruby.rb, lib/mkmf.rb, lib/test/unit/util/procwrapper.rb, mkconfig.rb, sample/test.rb, template/vm.inc.tmpl, test/ruby/test_stringchar.rb: fixes arround String#gsub. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax): force_encoding input script.matz2007-12-211-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c: support Proc#binding.ko12007-12-201-0/+10
| | | | | | | | * sample/test.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each): remove "retry" in block.ko12007-12-191-13/+1
| | | | | | | | | | | | | | | | | ("iter{retry}" cause syntax error) Currently, "begin; ...; rescue; iter{retry}; end" cause syntax error too. * bootstraptest/test_jump.rb: ditto. * lib/drb/invokemethod.rb: ditto. * sample/drb/darrayc.rb: ditto. * sample/test.rb: ditto. * test/drb/drbtest.rb: ditto. * test/ruby/test_iterator.rb: ditto. * sample/test.rb: add a 'test' directory on the SYSTEM test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sample/test.rb: remove $KCODEmatz2007-11-301-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: should update class variable testsmatz2007-10-031-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb, test/ruby/test_system.rb(valid_syntax?): keepnobu2007-08-181-1/+4
| | | | | | | comment lines first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each): fix next/redo stack consistency.ko12007-08-161-1/+2
| | | | | | | | | | [ruby-dev:31373] * bootstraptest/test_syntax.rb: add tests for above. * sample/test.rb: fix to use __FILE__ instead of $0 to know basedir. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (os_live_obj): fix to skip T_VALUES.ko12007-08-151-0/+5
| | | | | | | | * sample/test.rb: add an ObjectSpace test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: fix to output file name if it containsko12007-08-061-1/+2
| | | | | | | | invalid syntax. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/runner.rb: fix load path.ko12007-07-061-1/+5
| | | | | | | | | * common.mk: fix "test" rule to run with "btest". * rubytest.rb, sample/test.rb: fix to show tests progress. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (assoc_list): remove expanded hash literal (no splat).matz2007-06-291-9/+8
| | | | | | | * lib/webrick/httpstatus.rb (WEBrick::HTTPStatus::EOFError): adapt to new syntax. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: fix to show line information whether test succeeds.ko12007-06-151-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e