From c0ad0c3e43816688c72dbb93a7a49e39c87082f5 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Thu, 11 Jul 2024 13:02:01 -0400 Subject: [PATCH] Update yjit.md, explain how to run a single test with test-all (#11151) --- doc/yjit/yjit.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/yjit/yjit.md b/doc/yjit/yjit.md index 4c564f135b..b2769a0f5d 100644 --- a/doc/yjit/yjit.md +++ b/doc/yjit/yjit.md @@ -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