Skip to content

Commit ee6eb20

Browse files
committed
test: update runner usage docs
Update stale references to the current suite/case filter spelling and --list_content option.
1 parent c2c4a51 commit ee6eb20

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/test/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ and tests weren't explicitly disabled.
2323
The unit tests can be run with `ctest --test-dir build`, which includes unit
2424
tests from subtrees.
2525

26-
Run `build/bin/test_bitcoin --list` for the full list of tests.
26+
Run `build/bin/test_bitcoin --list_content` for the full list of tests.
2727

2828
To run the unit tests manually, launch `build/bin/test_bitcoin`. To recompile
2929
after a test file was modified, run `cmake --build build` and then run the test again. If you
@@ -57,7 +57,7 @@ build/bin/test_bitcoin -l all -t getarg_tests
5757
or to run only the `doubledash` test in `getarg_tests`
5858

5959
```bash
60-
build/bin/test_bitcoin --run_test=getarg_tests::doubledash
60+
build/bin/test_bitcoin --run_test=getarg_tests/doubledash
6161
```
6262

6363
The `--log_level=` (or `-l`) argument controls the verbosity of the test output.

src/test/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* Retrieve the user-supplied command line arguments — everything after the
1616
* `--` separator on the command line. Allows usage like:
17-
* `test_bitcoin --run_test="net_tests::cnode_listen_port" -- -checkaddrman=1 -printtoconsole=1`
17+
* `test_bitcoin --run_test="net_tests/cnode_listen_port" -- -checkaddrman=1 -printtoconsole=1`
1818
* which would return `["-checkaddrman=1", "-printtoconsole=1"]`.
1919
*/
2020
const std::function<std::vector<const char*>()> G_TEST_COMMAND_LINE_ARGUMENTS = []() {
@@ -23,7 +23,7 @@ const std::function<std::vector<const char*>()> G_TEST_COMMAND_LINE_ARGUMENTS =
2323
};
2424

2525
/**
26-
* Retrieve the full name (`suite::case`) of the currently-running test.
26+
* Retrieve the full name (`suite/case`) of the currently-running test.
2727
*/
2828
const std::function<std::string()> G_TEST_GET_FULL_NAME = []() {
2929
return framework::current_test_full_name();

0 commit comments

Comments
 (0)