mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
YJIT: ZJIT: CI: Smoke test for --[y,z]jit-dump-disasm
This commit is contained in:
parent
dfc0fe3679
commit
ce5eb2803e
Notes:
git
2025-05-20 15:40:28 +00:00
7
.github/workflows/yjit-macos.yml
vendored
7
.github/workflows/yjit-macos.yml
vendored
@ -112,6 +112,13 @@ jobs:
|
||||
|
||||
- run: make
|
||||
|
||||
- name: Verify that --yjit-dump-disasm works
|
||||
run: |
|
||||
./miniruby --yjit-call-threshold=1 --yjit-dump-disasm -e0 | \
|
||||
wc -l | \
|
||||
ruby -ne 'raise "Disassembly seems broken in dev build (output has too few lines)" unless $_.to_i > 10'
|
||||
if: ${{ contains(matrix.configure, 'jit=dev') }}
|
||||
|
||||
- name: Enable YJIT through ENV
|
||||
run: echo "RUBY_YJIT_ENABLE=1" >> $GITHUB_ENV
|
||||
|
||||
|
||||
7
.github/workflows/yjit-ubuntu.yml
vendored
7
.github/workflows/yjit-ubuntu.yml
vendored
@ -163,6 +163,13 @@ jobs:
|
||||
|
||||
- run: make
|
||||
|
||||
- name: Verify that --yjit-dump-disasm works
|
||||
run: |
|
||||
./miniruby --yjit-call-threshold=1 --yjit-dump-disasm -e0 | \
|
||||
wc -l | \
|
||||
ruby -ne 'raise "Disassembly seems broken in dev build (output has too few lines)" unless $_.to_i > 10'
|
||||
if: ${{ contains(matrix.configure, 'jit=dev') }}
|
||||
|
||||
- name: Enable YJIT through ENV
|
||||
run: echo "RUBY_YJIT_ENABLE=1" >> $GITHUB_ENV
|
||||
|
||||
|
||||
7
.github/workflows/zjit-macos.yml
vendored
7
.github/workflows/zjit-macos.yml
vendored
@ -96,6 +96,13 @@ jobs:
|
||||
|
||||
- run: make
|
||||
|
||||
- name: Verify that --zjit-dump-disasm works
|
||||
run: |
|
||||
./miniruby --zjit-call-threshold=1 --zjit-dump-disasm -e0 | \
|
||||
wc -l | \
|
||||
ruby -ne 'raise "Disassembly seems broken in dev build (output has too few lines)" unless $_.to_i > 10'
|
||||
if: ${{ contains(matrix.configure, 'jit=dev') }}
|
||||
|
||||
- name: make ${{ matrix.test_task }}
|
||||
run: >-
|
||||
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"}
|
||||
|
||||
7
.github/workflows/zjit-ubuntu.yml
vendored
7
.github/workflows/zjit-ubuntu.yml
vendored
@ -110,6 +110,13 @@ jobs:
|
||||
|
||||
- run: make
|
||||
|
||||
- name: Verify that --zjit-dump-disasm works
|
||||
run: |
|
||||
./miniruby --zjit-call-threshold=1 --zjit-dump-disasm -e0 | \
|
||||
wc -l | \
|
||||
ruby -ne 'raise "Disassembly seems broken in dev build (output has too few lines)" unless $_.to_i > 10'
|
||||
if: ${{ contains(matrix.configure, 'jit=dev') }}
|
||||
|
||||
# Check that the binary was built with ZJIT
|
||||
- name: Check ZJIT enabled
|
||||
run: ./miniruby --zjit -v | grep "+ZJIT"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user