summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoichi Sasada <[email protected]>2021-10-01 03:13:00 +0900
committerKoichi Sasada <[email protected]>2021-10-05 02:07:33 +0900
commitbc96a45f12503956e323e6c2a47aa550ca1da3dc ()
treec2bffe24d2e5d9ee80c42e00e34f9d437ccbd73b
parentae1da7e1f76cabc6c2d9b45a6c56b1607200147a (diff)
introduce debug.gem
For the `test-bundled-gems`, make `debug.so` with extconf.rb and `make` command directly because `rake-compiler` assume ruby is installed (but `test-bundled-gems` can run without installation).
Notes: Merged: https://.com/ruby/ruby/pull/4804
-rw-r--r--common.mk2
-rw-r--r--gems/bundled_gems1
-rwxr-xr-xtool/rbinstall.rb17
-rw-r--r--tool/test-bundled-gems.rb10
4 files changed, 28 insertions, 2 deletions
@@ -1377,7 +1377,7 @@ no-test-bundled-gems-prepare: no-test-bundled-gems-precheck
yes-test-bundled-gems-prepare: yes-test-bundled-gems-precheck
$(ACTIONS_GROUP)
$(XRUBY) -C "$(srcdir)" bin/gem install --no-document \
- --install-dir .bundle --conservative "bundler" "minitest:~> 5" "test-unit" "rake" "hoe" "yard" "pry" "packnga" "rexml" "json-schema"
$(ACTIONS_ENDGROUP)
PREPARE_BUNDLED_GEMS = test-bundled-gems-prepare
@@ -13,3 +13,4 @@ matrix 0.4.2 https://.com/ruby/matrix
prime 0.1.2 https://.com/ruby/prime
rbs 1.6.2 https://.com/ruby/rbs
typeprof 0.15.3 https://.com/ruby/typeprof
@@ -989,6 +989,20 @@ def install_default_gem(dir, srcdir, bindir)
end
install?(:ext, :comm, :gem, :'bundled-gems') do
gem_dir = Gem.default_dir
install_dir = with_destdir(gem_dir)
prepare "bundled gems", gem_dir
@@ -1009,7 +1023,8 @@ install?(:ext, :comm, :gem, :'bundled-gems') do
:format_executable => true,
}
gem_ext_dir = "#$extout/gems/#{CONFIG['arch']}"
- extensions_dir = Gem::StubSpecification.gemspec_stub("", gem_dir, gem_dir).extensions_dir
File.foreach("#{srcdir}/gems/bundled_gems") do |name|
next if /^\s*(?:#|$)/ =~ name
next unless /^(\S+)\s+(\S+).*/ =~ name
@@ -1,5 +1,6 @@
require 'rbconfig'
require 'timeout'
_actions = ENV["_ACTIONS"] == "true"
@@ -40,6 +41,15 @@ File.foreach("#{gem_dir}/bundled_gems") do |line|
test_command << " 'TESTOPTS=-e /test_stub_value_block_args_5__break_if_not_passed|test_no_method_error_on_unexpected_methods/'"
end
print "[command]" if _actions
puts test_command
pid = Process.spawn(test_command, "#{/mingw|mswin/ =~ RUBY_PLATFORM ? 'new_' : ''}pgroup": true)