Update yjit.md, explain how to run a single test with test-all (#11151)

This commit is contained in:
Maxime Chevalier-Boisvert 2024-07-11 13:02:01 -04:00 committed by GitHub
parent 9962e39547
commit c0ad0c3e43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -385,12 +385,18 @@ Or single-threaded like this, to more easily identify which specific test is fai
make test-all TESTOPTS=--verbose RUN_OPTS="--yjit-call-threshold=1"
```
To debug a single test in `test-all`:
To run a single test file with `test-all`:
```sh
make test-all TESTS='test/-ext-/marshal/test_usrmarshal.rb' RUNRUBYOPT=--debugger=lldb RUN_OPTS="--yjit-call-threshold=1"
```
It's also possible to filter tests by name to run a single test:
```sh
make test-all TESTS='-n /test_float_plus/' RUN_OPTS="--yjit-call-threshold=1"
```
You can also run one specific test in `btest`:
```sh