summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-23 10:59:49 +0900
committerGitHub <noreply@github.com>2020-09-23 10:59:49 +0900
commitba889100d850e973e519cebc48d5b4f1e8ab0034 (patch)
tree9612c4712137d35404da81b425b45edd5d3a639a /tool
parente380f78851b27511f165bcd841626f2cb9fa87be (diff)
Bundle rbs gem as bundled gems (#3496)
* Added rbs as bundled gems * Added the missing dependencies for rbs gem
Notes
Notes: Merged-By: soutaro <matsumoto@soutaro.com>
Diffstat (limited to 'tool')
-rw-r--r--tool/test-bundled-gems.rb12
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)