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 коммит произвёл GitHub
Родитель 9962e39547
Коммит c0ad0c3e43
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -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