@@ -547,6 +547,8 @@ def help
547
547
jt puts 14 + 2 evaluate and print an expression
548
548
jt cextc directory clang-args compile the C extension in directory, with optional extra clang arguments
549
549
jt test run all mri tests, specs and integration tests
550
+ jt test basictest run MRI's basictest suite
551
+ jt test bootstraptest run MRI's bootstraptest suite
550
552
jt test mri run mri tests
551
553
#{ MRI_TEST_MODULES . map { |k , h | format ' ' *10 +'%-16s%s' , k , h [ :help ] } . join ( "\n " ) }
552
554
--native use native TruffleRuby image (set AOT_BIN)
@@ -879,6 +881,8 @@ def test(*args)
879
881
when 'gems' then test_gems ( *rest )
880
882
when 'ecosystem' then test_ecosystem ( *rest )
881
883
when 'specs' then test_specs ( 'run' , *rest )
884
+ when 'basictest' then test_basictest ( *rest )
885
+ when 'bootstraptest' then test_bootstraptest ( *rest )
882
886
when 'mri' then test_mri ( *rest )
883
887
else
884
888
if File . expand_path ( path , TRUFFLERUBY_DIR ) . start_with? ( "#{ TRUFFLERUBY_DIR } /test" )
@@ -894,6 +898,27 @@ def jt(*args)
894
898
end
895
899
private :jt
896
900
901
+ def test_basictest ( *args )
902
+ run_runner_test 'basictest/runner.rb' , *args
903
+ end
904
+ private :test_basictest
905
+
906
+ def test_bootstraptest ( *args )
907
+ run_runner_test 'bootstraptest/runner.rb' , *args
908
+ end
909
+ private :test_bootstraptest
910
+
911
+ def run_runner_test ( runner , *args )
912
+ double_dash_index = args . index '--'
913
+ if double_dash_index
914
+ args , runner_args = args [ 0 ...double_dash_index ] , args [ ( double_dash_index +1 ) ..-1 ]
915
+ else
916
+ runner_args = [ ]
917
+ end
918
+ run_ruby *args , "#{ TRUFFLERUBY_DIR } /test/#{ runner } " , *runner_args
919
+ end
920
+ private :run_runner_test
921
+
897
922
def test_mri ( *args )
898
923
double_dash_index = args . index '--'
899
924
if double_dash_index
0 commit comments