mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Start testing the actual JIT code on CI
This commit is contained in:
parent
6f3f69098b
commit
fc03b7353d
Notes:
git
2025-04-18 13:48:46 +00:00
3 changed files with 25 additions and 2 deletions
9
.github/workflows/zjit-macos.yml
vendored
9
.github/workflows/zjit-macos.yml
vendored
|
@ -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 }}
|
||||
|
|
6
.github/workflows/zjit-ubuntu.yml
vendored
6
.github/workflows/zjit-ubuntu.yml
vendored
|
@ -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
|
||||
|
|
12
bootstraptest/test_zjit.rb
Normal file
12
bootstraptest/test_zjit.rb
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue