Skip to content

Commit afb3ea4

Browse files
committed
ZJIT: Edit testing sections in zjit.md
Running just one file under test/ is not running all tests.
1 parent 6e8f619 commit afb3ea4

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

doc/jit/zjit.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -287,28 +287,28 @@ cd zjit && cargo insta review
287287

288288
Test changes will be reviewed alongside code changes.
289289

290-
### Running integration tests
290+
### Running smoke tests
291291

292-
This command runs Ruby execution tests.
293-
294-
```bash
295-
make test-all TESTS="test/ruby/test_zjit_cli.rb"
296-
```
297-
298-
You can also run a single test case by matching the method name:
292+
Runs both `make zjit-test` and `test/ruby/test_zjit_cli.rb`:
299293

300294
```bash
301-
make test-all TESTS="test/ruby/test_zjit_cli.rb -n TestZJITCLI#test_enabled"
295+
make zjit-check
302296
```
303297

304-
### Running all tests
298+
### Integration testing
305299

306-
Runs both `make zjit-test` and `test/ruby/test_zjit_cli.rb`:
300+
A thorough test run will want to enable ZJIT on Ruby workloads. Some
301+
test suites written in Ruby in this repository accepts the `RUN_OPTS`
302+
Make macro for passing ruby(1) command-line arguments:
307303

308304
```bash
309-
make zjit-check
305+
make test-all RUN_OPTS='--zjit-call-threshold=2'
306+
make btest RUN_OPTS='--zjit-call-threshold=1'
310307
```
311308

309+
See [Testing Ruby](rdoc-ref:contributing/testing_ruby.md) for a list of
310+
test suites.
311+
312312
## Statistics Collection
313313

314314
ZJIT provides detailed statistics about JIT compilation and execution behavior.

0 commit comments

Comments
 (0)