Skip to content

Commit bd45f4f

Browse files
committed
Add zjit-test-all-ruby target to zjit.mk
1 parent 0873877 commit bd45f4f

1 file changed

Lines changed: 69 additions & 1 deletion

File tree

zjit/zjit.mk

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,80 @@ update-zjit-bench:
4848
$(Q) $(tooldir)/git-refresh -C $(srcdir) --branch main \
4949
https://github.com/Shopify/zjit-bench zjit-bench $(GIT_OPTS)
5050

51+
# List of test files to exclude for ZJIT
52+
ZJIT_EXCLUDED_TESTS = \
53+
test/ruby/bug-11928.rb \
54+
test/ruby/namespace/call_toplevel.rb \
55+
test/ruby/namespace/current.rb \
56+
test/ruby/namespace/ns.rb \
57+
test/ruby/namespace/raise.rb \
58+
test/ruby/namespace/string_ext_calling.rb \
59+
test/ruby/namespace/string_ext_eval_caller.rb \
60+
test/ruby/test_allocation.rb \
61+
test/ruby/test_autoload.rb \
62+
test/ruby/test_backtrace.rb \
63+
test/ruby/test_beginendblock.rb \
64+
test/ruby/test_compile_prism.rb \
65+
test/ruby/test_complex.rb \
66+
test/ruby/test_data.rb \
67+
test/ruby/test_defined.rb \
68+
test/ruby/test_dir_m17n.rb \
69+
test/ruby/test_env.rb \
70+
test/ruby/test_enumerator.rb \
71+
test/ruby/test_exception.rb \
72+
test/ruby/test_fiber.rb \
73+
test/ruby/test_file.rb \
74+
test/ruby/test_file_exhaustive.rb \
75+
test/ruby/test_float.rb \
76+
test/ruby/test_gc.rb \
77+
test/ruby/test_io.rb \
78+
test/ruby/test_iseq.rb \
79+
test/ruby/test_keyword.rb \
80+
test/ruby/test_lambda.rb \
81+
test/ruby/test_literal.rb \
82+
test/ruby/test_marshal.rb \
83+
test/ruby/test_memory_view.rb \
84+
test/ruby/test_method.rb \
85+
test/ruby/test_module.rb \
86+
test/ruby/test_namespace.rb \
87+
test/ruby/test_object.rb \
88+
test/ruby/test_object_id.rb \
89+
test/ruby/test_objectspace.rb \
90+
test/ruby/test_optimization.rb \
91+
test/ruby/test_parse.rb \
92+
test/ruby/test_proc.rb \
93+
test/ruby/test_process.rb \
94+
test/ruby/test_ractor.rb \
95+
test/ruby/test_rational.rb \
96+
test/ruby/test_regexp.rb \
97+
test/ruby/test_rubyoptions.rb \
98+
test/ruby/test_settracefunc.rb \
99+
test/ruby/test_super.rb \
100+
test/ruby/test_struct.rb \
101+
test/ruby/test_symbol.rb \
102+
test/ruby/test_syntax.rb \
103+
test/ruby/test_thread.rb \
104+
test/ruby/test_time_tz.rb \
105+
test/ruby/test_variable.rb \
106+
test/ruby/test_vm_dump.rb \
107+
test/ruby/test_yjit.rb
108+
109+
# Get all test files in test/ruby directory
110+
ZJIT_ALL_RUBY_TESTS := $(wildcard $(top_srcdir)/test/ruby/test_*.rb $(top_srcdir)/test/ruby/*/test_*.rb)
111+
112+
# Filter out excluded tests
113+
ZJIT_RUBY_TESTS := $(filter-out $(addprefix $(top_srcdir)/,$(ZJIT_EXCLUDED_TESTS)),$(ZJIT_ALL_RUBY_TESTS))
114+
115+
# Run all Ruby tests with ZJIT enabled, excluding known failing tests
116+
.PHONY: zjit-test-all-ruby
117+
zjit-test-all-ruby:
118+
$(MAKE) test-all TESTS='$(ZJIT_RUBY_TESTS)'
119+
51120
# Gives quick feedback about ZJIT. Not a replacement for a full test run.
52121
.PHONY: zjit-test-all
53122
zjit-test-all:
54123
$(MAKE) zjit-test
55124
$(MAKE) test-all TESTS='$(top_srcdir)/test/ruby/test_zjit.rb'
56-
57125
ZJIT_BINDGEN_DIFF_OPTS =
58126

59127
# Generate Rust bindings. See source for details.

0 commit comments

Comments
 (0)