@@ -3,17 +3,18 @@ utilities in their entirety. It does not contain unit tests, which
3
3
can be found in [ /src/test] ( /src/test ) , [ /src/wallet/test] ( /src/wallet/test ) ,
4
4
etc.
5
5
6
- There are currently two sets of tests in this directory :
6
+ This directory contains the following sets of tests:
7
7
8
8
- [ functional] ( /test/functional ) which test the functionality of
9
9
bitcoind and bitcoin-qt by interacting with them through the RPC and P2P
10
10
interfaces.
11
11
- [ util] ( /test/util ) which tests the bitcoin utilities, currently only
12
12
bitcoin-tx.
13
+ - [ lint] ( /test/lint/ ) which perform various static analysis checks.
13
14
14
15
The util tests are run as part of ` make check ` target. The functional
15
- tests are run by the travis continuous build process whenever a pull
16
- request is opened. Both sets of tests can also be run locally.
16
+ tests and lint scripts are run by the travis continuous build process whenever a pull
17
+ request is opened. All sets of tests can also be run locally.
17
18
18
19
# Running tests locally
19
20
@@ -30,7 +31,7 @@ The ZMQ functional test requires a python ZMQ library. To install it:
30
31
31
32
#### Running the tests
32
33
33
- Individual tests can be run by directly calling the test script, eg :
34
+ Individual tests can be run by directly calling the test script, e.g. :
34
35
35
36
```
36
37
test/functional/feature_rbf.py
@@ -180,6 +181,26 @@ Note: gdb attach step may require `sudo`
180
181
Util tests can be run locally by running ` test/util/bitcoin-util-test.py ` .
181
182
Use the ` -v ` option for verbose output.
182
183
184
+ ### Lint tests
185
+
186
+ #### Dependencies
187
+
188
+ The lint tests require codespell and flake8. To install: ` pip3 install codespell flake8 ` .
189
+
190
+ #### Running the tests
191
+
192
+ Individual tests can be run by directly calling the test script, e.g.:
193
+
194
+ ```
195
+ test/lint/lint-filenames.sh
196
+ ```
197
+
198
+ You can run all the shell-based lint tests by running:
199
+
200
+ ```
201
+ test/lint/lint-all.sh
202
+ ```
203
+
183
204
# Writing functional tests
184
205
185
206
You are encouraged to write functional tests for new or existing features.
0 commit comments