@@ -48,40 +48,8 @@ update-zjit-bench:
48
48
$(Q ) $(tooldir ) /git-refresh -C $(srcdir ) --branch main \
49
49
https://github.com/Shopify/zjit-bench zjit-bench $(GIT_OPTS )
50
50
51
- # List of test files to exclude for ZJIT
52
- ZJIT_EXCLUDED_TESTS = \
53
- test/ruby/test_env.rb \
54
- test/ruby/test_enumerator.rb \
55
- test/ruby/test_fiber.rb \
56
- test/ruby/test_file_exhaustive.rb \
57
- test/ruby/test_gc.rb \
58
- test/ruby/test_io.rb \
59
- test/ruby/test_keyword.rb \
60
- test/ruby/test_marshal.rb \
61
- test/ruby/test_memory_view.rb \
62
- test/ruby/test_module.rb \
63
- test/ruby/test_namespace.rb \
64
- test/ruby/test_object.rb \
65
- test/ruby/test_object_id.rb \
66
- test/ruby/test_objectspace.rb \
67
- test/ruby/test_optimization.rb \
68
- test/ruby/test_parse.rb \
69
- test/ruby/test_proc.rb \
70
- test/ruby/test_process.rb \
71
- test/ruby/test_ractor.rb \
72
- test/ruby/test_rational.rb \
73
- test/ruby/test_regexp.rb \
74
- test/ruby/test_rubyoptions.rb \
75
- test/ruby/test_settracefunc.rb \
76
- test/ruby/test_super.rb \
77
- test/ruby/test_struct.rb \
78
- test/ruby/test_symbol.rb \
79
- test/ruby/test_syntax.rb \
80
- test/ruby/test_thread.rb \
81
- test/ruby/test_time_tz.rb \
82
- test/ruby/test_variable.rb \
83
- test/ruby/test_vm_dump.rb \
84
- test/ruby/test_yjit.rb
51
+ # Load test files to exclude for ZJIT from .excludes-zjit file
52
+ ZJIT_EXCLUDED_TESTS = $(shell grep -v '^\#' $(top_srcdir ) /.excludes-zjit 2>/dev/null | grep -v '^$$')
85
53
86
54
# Get all test files in test/ruby directory
87
55
ZJIT_ALL_RUBY_TESTS := $(wildcard $(top_srcdir ) /test/ruby/test_* .rb $(top_srcdir ) /test/ruby/* /test_* .rb)
@@ -92,16 +60,16 @@ ZJIT_RUBY_TESTS := $(filter-out $(addprefix $(top_srcdir)/,$(ZJIT_EXCLUDED_TESTS
92
60
# Run all Ruby tests with ZJIT enabled (temporarily excluding known failing tests)
93
61
.PHONY : zjit-test-ruby-all
94
62
zjit-test-ruby-all :
95
- $(MAKE ) test-all RUST_BACKTRACE=1 RUN_OPTS=' --zjit --zjit-call-threshold=1' TESTS=' ../test/ruby/test_integer.rb '
63
+ $(MAKE ) test-all RUST_BACKTRACE=1 RUN_OPTS=' --zjit --zjit-call-threshold=1' TESTS=' $(ZJIT_RUBY_TESTS) '
96
64
97
65
# Run only the ZJIT-specific Ruby tests
98
66
.PHONY : zjit-test-ruby
99
67
zjit-test-ruby :
100
68
$(MAKE ) test-all TESTS=' $(top_srcdir)/test/ruby/test_zjit.rb'
101
69
102
70
# Gives quick feedback about ZJIT. Not a replacement for a full test run.
103
- .PHONY : zjit-test-suite
104
- zjit-test-suite :
71
+ .PHONY : zjit-check
72
+ zjit-check :
105
73
$(MAKE ) zjit-test-rust
106
74
$(MAKE ) zjit-test-ruby
107
75
ZJIT_BINDGEN_DIFF_OPTS =
0 commit comments