Skip to content

Commit

Permalink
Fix jt test cexts --no-gems to not test third party gems
Browse files Browse the repository at this point in the history
PullRequest: truffleruby/4390
  • Loading branch information
andrykonchin authored and eregon committed Nov 10, 2024
2 parents 8543705 + 959fc38 commit 8594c3a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tool/jt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1443,19 +1443,22 @@ def retag(*args)
out.sub('-', '--vm.')
end

ALL_CEXTS_TESTS = %w[
tools postinstallhook
minimum module method globals backtraces xopenssl werror no_timespec stripped
GEMS_CEXTS_TESTS = %w[
oily_png psd_native
puma sqlite3 unf_ext json grpc RubyInline msgpack
]

ALL_CEXTS_TESTS = %w[
tools postinstallhook
minimum module method globals backtraces xopenssl werror no_timespec stripped
] + GEMS_CEXTS_TESTS

private def test_cexts(*args)
no_openssl = args.delete('--no-openssl')
no_gems = args.delete('--no-gems')
tests = args.empty? ? ALL_CEXTS_TESTS : args
tests -= %w[xopenssl] if no_openssl
tests.delete 'gems' if no_gems
tests -= GEMS_CEXTS_TESTS if no_gems

tests.each do |test_name|
run_single_cexts_test(test_name)
Expand Down

0 comments on commit 8594c3a

Please sign in to comment.