File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,8 @@ task :stdlib_test => :compile do
238238 test_files . shuffle!
239239 end
240240
241+ ENV [ "TESTOPTS" ] ||= "--verbose"
242+
241243 sh "#{ ruby } -Ilib #{ bin } /test_runner.rb #{ test_files . join ( ' ' ) } "
242244 # TODO: Ractor tests need to be run in a separate process
243245 sh "#{ ruby } -Ilib #{ bin } /test_runner.rb test/stdlib/CGI-escape_test.rb"
Original file line number Diff line number Diff line change 1818 /cannot load such file -- #{ lib } /
1919end
2020
21+ require 'test/unit'
22+
2123ARGV . each do |arg |
2224 begin
2325 load arg
2931 end
3032 end
3133end
34+
35+ args = [ ]
36+
37+ unless ENV [ "TESTOPTS" ] . nil?
38+ require "shellwords"
39+ args . concat Shellwords . shellsplit ( ENV [ "TESTOPTS" ] )
40+ end
41+
42+ exit Test ::Unit ::AutoRunner . run ( false , nil , args )
43+
44+
You can’t perform that action at this time.
0 commit comments