@@ -35,15 +35,26 @@ the `src/qt/test/test_main.cpp` file.
35
35
36
36
### Running individual tests
37
37
38
- ` test_bitcoin ` accepts the command line arguments from the boost framework.
39
- For example, to run just the ` getarg_tests ` suite of tests:
38
+ The ` test_bitcoin ` runner accepts command line arguments from the Boost
39
+ framework. To see the list of arguments that may be passed, run:
40
+
41
+ ```
42
+ test_bitcoin --help
43
+ ```
44
+
45
+ For example, to run only the tests in the ` getarg_tests ` file, with full logging:
40
46
41
47
``` bash
42
48
build/src/test/test_bitcoin --log_level=all --run_test=getarg_tests
43
49
```
44
50
45
- ` log_level ` controls the verbosity of the test framework, which logs when a
46
- test case is entered, for example.
51
+ or
52
+
53
+ ``` bash
54
+ build/src/test/test_bitcoin -l all -t getarg_tests
55
+ ```
56
+
57
+ The ` --log_level= ` (or ` -l ` ) argument controls the verbosity of the test output.
47
58
48
59
` test_bitcoin ` also accepts some of the command line arguments accepted by
49
60
` bitcoind ` . Use ` -- ` to separate these sets of arguments:
@@ -62,7 +73,7 @@ standard terminal output.
62
73
build/src/test/test_bitcoin --run_test=getarg_tests/doubledash
63
74
```
64
75
65
- ` test_bitcoin ` creates a temporary working (data) directory with a randomly
76
+ Running ` test_bitcoin ` creates a temporary working (data) directory with a randomly
66
77
generated pathname within ` test_common bitcoin/ ` , which in turn is within
67
78
the system's temporary directory (see
68
79
[ ` temp_directory_path ` ] ( https://en.cppreference.com/w/cpp/filesystem/temp_directory_path ) ).
@@ -97,8 +108,6 @@ If you run an entire test suite, such as `--run_test=getarg_tests`, or all the t
97
108
(by not specifying ` --run_test ` ), a separate directory
98
109
will be created for each individual test.
99
110
100
- Run ` test_bitcoin --help ` for the full list of arguments that can be passed.
101
-
102
111
### Adding test cases
103
112
104
113
To add a new unit test file to our test suite, you need
0 commit comments