Changeset View
Changeset View
Standalone View
Standalone View
doc/functional-tests.md
Show First 20 Lines • Show All 174 Lines • ▼ Show 20 Lines | |||||
``` | ``` | ||||
Note: gdb attach step may require `sudo`. To get rid of this, you can run: | Note: gdb attach step may require `sudo`. To get rid of this, you can run: | ||||
```bash | ```bash | ||||
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope | echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope | ||||
``` | ``` | ||||
##### Prevent using deprecated features | |||||
Python will issue a `DeprecationWarning` when a deprecated feature is | |||||
encountered in a script. By default, this warning message is ignored and not | |||||
displayed to the user. This behavior can be changed by setting the environment | |||||
variable `PYTHONWARNINGS` as follow: | |||||
`PYTHONWARNINGS=default::DeprecationWarning` | |||||
The warning message will now be printed to the `sys.stderr` output. | |||||
### Util tests | ### Util tests | ||||
Util tests can be run locally by running `test/util/bitcoin-util-test.py`. | Util tests can be run locally by running `test/util/bitcoin-util-test.py`. | ||||
Use the `-v` option for verbose output. | Use the `-v` option for verbose output. | ||||
# Writing functional tests | # Writing functional tests | ||||
#### Example test | #### Example test | ||||
▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines |