Skip to content

Commit 05b6d3b

Browse files
committed
Add jt test mri --fast
1 parent 633ad63 commit 05b6d3b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

test/mri/capi_tests.list

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ cext-ruby/bug_reporter/test_bug_reporter.rb
1010
cext-ruby/class/test_class2name.rb
1111
cext-ruby/debug/test_debug.rb
1212
cext-ruby/debug/test_profile_frames.rb
13+
cext-ruby/econv/test_append.rb
1314
cext-ruby/exception/test_data_error.rb
1415
cext-ruby/exception/test_enc_raise.rb
1516
cext-ruby/exception/test_ensured.rb

tool/jt.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,10 +820,10 @@ def help
820820
MRI tests commands:
821821
jt test mri run MRI tests
822822
#{MRI_TEST_MODULES.map { |k, h| format ' ' * 4 + '%-16s%s', k, h[:help] }.join("\n")}
823-
jt test mri test/mri/tests/test_find.rb [-- <MRI runner options>]
823+
jt test mri [--fast] test/mri/tests/test_find.rb [-- <MRI runner options>]
824824
run tests in given file, -n option of the runner can be used to further
825825
limit executed test methods
826-
MRI_TEST_SUBPROCESSES=false skip MRI tests using subprocesses
826+
--fast skip MRI tests using subprocesses
827827
jt retag FILE Remove MRI excludes and re-add as necessary for MRI tests
828828
---
829829
jt test basictest run MRI's basictest suite
@@ -1279,6 +1279,10 @@ def test(*args)
12791279
'MKMF_SET_EXTMK_TO_TRUE' => 'true',
12801280
}
12811281

1282+
if extra_args.delete '--fast'
1283+
env_vars['MRI_TEST_SUBPROCESSES'] = 'false'
1284+
end
1285+
12821286
cext_tests = test_files.select do |f|
12831287
f.include?('cext-ruby') || MRI_TEST_CAPI_TESTS.include?(f)
12841288
end

0 commit comments

Comments
 (0)