Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.217.103
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby34 /
share /
ri /
system /
contributing /
Delete
Unzip
Name
Size
Permission
Date
Action
page-building_ruby_md.ri
12.47
KB
-rw-r--r--
2026-04-07 16:51
page-documentation_guide_md.ri
23.01
KB
-rw-r--r--
2026-04-07 16:51
page-glossary_md.ri
5.08
KB
-rw-r--r--
2026-04-07 16:51
page-making_changes_to_ruby_md.ri
1.74
KB
-rw-r--r--
2026-04-07 16:51
page-making_changes_to_stdlibs_md.ri
1.72
KB
-rw-r--r--
2026-04-07 16:51
page-reporting_issues_md.ri
4.9
KB
-rw-r--r--
2026-04-07 16:51
page-testing_ruby_md.ri
5.84
KB
-rw-r--r--
2026-04-07 16:51
Save
Rename
U:RDoc::TopLevel[ i I"!contributing/testing_ruby.md:ETcRDoc::Parser::Markdowno:RDoc::Markup::Document:@parts[S:RDoc::Markup::Heading: leveli: textI"Testing Ruby;To:RDoc::Markup::Paragraph;[I"�All the commands below assume that you're running them from the <code>build/</code> directory made during {Building Ruby}[building_ruby.md].;To;;[I"#Most commands below should work with {GNU make}[https://www.gnu.org/software/make/] (the default on Linux and macOS), {BSD make}[https://man.freebsd.org/cgi/man.cgi?make(1)] and {NMAKE}[https://learn.microsoft.com/en-us/cpp/build/reference/nmake-reference], except where indicated otherwise.;TS; ; i;I"Test suites;To;;[I"8There are several test suites in the Ruby codebase:;To;;[I"{We can run any of the make scripts {in parallel}[building_ruby.md#label-Running+make+scripts+in+parallel] to speed them up.;To:RDoc::Markup::List: @type:NUMBER:@items[ o:RDoc::Markup::ListItem:@label0;[o;;[I"M{bootstraptest/}[https://github.com/ruby/ruby/tree/master/bootstraptest];To;;[I"uThis is a small test suite that runs on {Miniruby}[building_ruby.md#label-Miniruby+vs+Ruby]. We can run it with:;Fo:RDoc::Markup::Verbatim;[I"make btest ;F:@format:sho;;[I"�To run individual bootstrap tests, we can either specify a list of filenames or use the <code>--sets</code> flag in the variable <code>BTESTS</code>:;Fo;;[I"{make btest BTESTS="../bootstraptest/test_string.rb ../bootstraptest/test_class.rb" make btest BTESTS="--sets=string,class" ;F;;o;;[I"bTo run these tests with verbose logging, we can add <code>-v</code> to the <code>OPTS</code>:;Fo;;[I".make btest OPTS="--sets=string,class -v" ;F;;o;;[I"SIf we want to run the bootstrap test suite on Ruby (not Miniruby), we can use:;Fo;;[I"make test ;F;;o;;[I"bTo run these tests with verbose logging, we can add <code>-v</code> to the <code>OPTS</code>:;Fo;;[I"make test OPTS=-v ;F;;o;;[I"8(GNU make only) To run a specific file, we can use:;Fo;;[I"&make ../test/ruby/test_string.rb ;F;;o;;[I"UYou can use the <code>-n</code> test option to run a specific test with a regex:;Fo;;[I"Cmake ../test/ruby/test_string.rb TESTOPTS="-n /test_.*_to_s/" ;F;;o;;0;[o;;[I";{test/}[https://github.com/ruby/ruby/tree/master/test];To;;[I"SThis is a more comprehensive test suite that runs on Ruby. We can run it with:;Fo;;[I"make test-all ;F;;o;;[I"qWe can run a specific test file or directory in this suite using the <code>TESTS</code> option, for example:;Fo;;[I"[make test-all TESTS="../test/ruby/" make test-all TESTS="../test/ruby/test_string.rb" ;F;;o;;[I"�We can run a specific test in this suite using the <code>TESTS</code> option, specifying first the file name, and then the test name, prefixed with <code>--name</code>. For example:;Fo;;[I"Smake test-all TESTS="../test/ruby/test_string.rb --name=TestString#test_to_s" ;F;;o;;[I"_To run these tests with verbose logging, we can add <code>-v</code> to <code>TESTS</code>:;Fo;;[I"make test-all TESTS=-v ;F;;o;;[I">We can display the help of the <code>TESTS</code> option:;Fo;;[I" make test-all TESTS=--help ;F;;o;;[I"�We can run all the tests in <code>test/</code>, <code>bootstraptest/</code> and <code>spec/</code> (the <code>spec/</code> is explained in a later section) all together with:;Fo;;[I"make check ;F;;o;;0;[o;;[I"D{spec/ruby}[https://github.com/ruby/ruby/tree/master/spec/ruby];To;;[I"This is a test suite defined in {the Ruby spec repository}[https://github.com/ruby/spec], and is periodically mirrored into the <code>spec/ruby</code> directory of this repository. It tests the behavior of the Ruby programming language. We can run this using:;Fo;;[I"make test-spec ;F;;o;;[I"tWe can run a specific test file or directory in this suite using the <code>SPECOPTS</code> option, for example:;Fo;;[I"ymake test-spec SPECOPTS="../spec/ruby/core/string/" make test-spec SPECOPTS="../spec/ruby/core/string/to_s_spec.rb" ;F;;o;;[I"gTo run a specific test, we can use the <code>--example</code> flag to match against the test name:;Fo;;[I"xmake test-spec SPECOPTS="../spec/ruby/core/string/to_s_spec.rb --example='returns self when self.class == String'" ;F;;o;;[I"fTo run these specs with verbose logging, we can add <code>-v</code> to the <code>SPECOPTS</code>:;Fo;;[I"Jmake test-spec SPECOPTS="../spec/ruby/core/string/to_s_spec.rb -Vfs" ;F;;o;;[I"E(GNU make only) To run a ruby-spec file or directory, we can use;Fo;;[I"0make ../spec/ruby/core/string/to_s_spec.rb ;F;;o;;0;[ o;;[I"J{spec/bundler}[https://github.com/ruby/ruby/tree/master/spec/bundler];To;;[I"�The bundler test suite is defined in {the RubyGems repository}[https://github.com/rubygems/rubygems/tree/master/bundler/spec], and is periodically mirrored into the <code>spec/ruby</code> directory of this repository. We can run this using:;Fo;;[I"make test-bundler ;F;;o;;[I"[To run a specific bundler spec file, we can use <code>BUNDLER_SPECS</code> as follows:;Fo;;[I";make test-bundler BUNDLER_SPECS=commands/exec_spec.rb ;F;;S; ; i;I"Troubleshooting;TS; ; i;I"2Running test suites on s390x CPU Architecture;To;;[I"�If we see failing tests related to the zlib library on s390x CPU architecture, we can run the test suites with <code>DFLTCC=0</code> to pass:;To;;[I"DFLTCC=0 make check ;T;;o;;[I",The failures can happen with the zlib library applying the patch {madler/zlib#410}[https://github.com/madler/zlib/pull/410] to enable the deflate algorithm producing a different compressed byte stream. We manage this issue at {[ruby-core:114942][Bug #19909]}[https://bugs.ruby-lang.org/issues/19909].;T: @file@:0@omit_headings_from_table_of_contents_below0