diff options
Diffstat (limited to 'tool/test-bundled-gems.rb')
-rw-r--r-- | tool/test-bundled-gems.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tool/test-bundled-gems.rb b/tool/test-bundled-gems.rb index 5d21311e51..7f04ff3eb3 100644 --- a/tool/test-bundled-gems.rb +++ b/tool/test-bundled-gems.rb @@ -13,10 +13,18 @@ File.foreach("#{gem_dir}/bundled_gems") do |line| gem = line.split.first puts "\nTesting the #{gem} gem" - test_command = "#{ruby} -C #{gem_dir}/src/#{gem} -Ilib #{rake}" + test_command = "#{ruby} -C #{gem_dir}/src/#{gem} -Ilib #{rake} test" + + if gem == "rbs" + racc = File.realpath("../../libexec/racc", __FILE__) + pid = Process.spawn("#{ruby} -C #{gem_dir}/src/#{gem} -Ilib #{racc} -v -o lib/rbs/parser.rb lib/rbs/parser.y") + Process.waitpid(pid) + test_command << " stdlib_test validate" + end + puts test_command pid = Process.spawn(test_command, "#{/mingw|mswin/ =~ RUBY_PLATFORM ? 'new_' : ''}pgroup": true) - {nil => 60, INT: 30, TERM: 10, KILL: nil}.each do |sig, sec| + {nil => 600, INT: 30, TERM: 10, KILL: nil}.each do |sig, sec| if sig puts "Sending #{sig} signal" Process.kill("-#{sig}", pid) |