Start testing the actual JIT code on CI

This commit is contained in:
Takashi Kokubun 2025-02-12 17:49:30 -08:00
parent 6f3f69098b
commit fc03b7353d
Notes: git 2025-04-18 13:48:46 +00:00
3 changed files with 25 additions and 2 deletions

View file

@ -28,11 +28,16 @@ jobs:
include:
- test_task: 'zjit-test'
configure: '--enable-zjit=dev'
# Test without ZJIT for now
#zjit_opts: '--zjit-call-threshold=1'
- test_task: 'btest-bruby'
configure: '--enable-zjit=dev'
zjit_opts: '--zjit'
btests: 'bootstraptest/test_zjit.rb'
- test_task: 'check'
configure: '--enable-zjit'
# Test without ZJIT for now
#zjit_opts: '--zjit-call-threshold=1'
env:
GITPULLOPTIONS: --no-tags origin ${{ github.ref }}

View file

@ -34,6 +34,11 @@ jobs:
- test_task: 'zjit-test'
configure: '--enable-zjit=dev'
- test_task: 'btest-bruby'
configure: '--enable-zjit=dev'
zjit_opts: '--zjit'
btests: 'bootstraptest/test_zjit.rb'
- test_task: 'check'
configure: '--enable-zjit'
# Test without ZJIT for now
@ -119,6 +124,7 @@ jobs:
SYNTAX_SUGGEST_TIMEOUT: '5'
YJIT_BINDGEN_DIFF_OPTS: '--exit-code'
LIBCLANG_PATH: ${{ matrix.libclang_path }}
BTESTS: ${{ matrix.btests }}
continue-on-error: ${{ matrix.continue-on-test_task || false }}
- uses: ./.github/actions/slack

View file

@ -0,0 +1,12 @@
# Tests of Ruby methods that ZJIT can currently compile.
# make btest-bruby BTESTS=bootstraptest/test_zjit.rb RUN_OPTS="--zjit"
assert_equal 'nil', %q{
def test = nil
test.inspect
}
assert_equal '1', %q{
def test = 1
test
}