From 6ebde0420224b73977a35877eb65f0d3700513d5 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 12 Aug 2023 12:33:05 +0900 Subject: [DOC] Update to use `SPECOPTS` instead of `MSPECOPT` --- doc/contributing/testing_ruby.md | 12 ++++++------ spec/README.md | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/contributing/testing_ruby.md b/doc/contributing/testing_ruby.md index 167ab55c55..8decc24083 100644 --- a/doc/contributing/testing_ruby.md +++ b/doc/contributing/testing_ruby.md @@ -99,28 +99,28 @@ We can run any of the make scripts [in parallel](building_ruby.md#label-Running+ make test-spec ``` - To run a specific directory, we can use `MSPECOPT` to specify the directory: + To run a specific directory, we can use `SPECOPTS` to specify the directory: ``` - make test-spec MSPECOPT=spec/ruby/core/array + make test-spec SPECOPTS=spec/ruby/core/array ``` - To run a specific file, we can also use `MSPECOPT` to specify the file: + To run a specific file, we can also use `SPECOPTS` to specify the file: ``` - make test-spec MSPECOPT=spec/ruby/core/array/any_spec.rb + make test-spec SPECOPTS=spec/ruby/core/array/any_spec.rb ``` To run a specific test, we can use the `--example` flag to match against the test name: ``` - make test-spec MSPECOPT="../spec/ruby/core/array/any_spec.rb --example='is false if the array is empty'" + make test-spec SPECOPTS="../spec/ruby/core/array/any_spec.rb --example='is false if the array is empty'" ``` To run these specs with logs, we can use: ``` - make test-spec MSPECOPT=-Vfs + make test-spec SPECOPTS=-Vfs ``` To run a ruby-spec file or directory with GNU make, we can use diff --git a/spec/README.md b/spec/README.md index 4fcf090759..6a88c06e09 100644 --- a/spec/README.md +++ b/spec/README.md @@ -91,24 +91,24 @@ To run all specs: make test-spec ``` -Extra arguments can be added via `MSPECOPT`. +Extra arguments can be added via `SPECOPTS`. For instance, to show the help: ```bash -make test-spec MSPECOPT=-h +make test-spec SPECOPTS=-h ``` You can also run the specs in parallel, which is currently experimental. It takes around 10s instead of 60s on a quad-core laptop. ```bash -make test-spec MSPECOPT=-j +make test-spec SPECOPTS=-j ``` To run a specific test, add its path to the command: ```bash -make test-spec MSPECOPT=spec/ruby/language/for_spec.rb +make test-spec SPECOPTS=spec/ruby/language/for_spec.rb ``` If ruby trunk is your current `ruby` in `$PATH`, you can also run `mspec` directly: -- cgit v1.2.3