aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormj-xmr <mjxmr@protonmail.com>2021-05-14 11:27:56 +0200
committermj-xmr <mjxmr@protonmail.com>2021-05-14 11:27:56 +0200
commit3450f4bc04cefe01997aa3156a86fab8ee359df6 (patch)
treec325b7e19ea1429ea11e19f634a1be41d2086b8e /tests
parentMerge pull request #7697 (diff)
downloadmonero-3450f4bc04cefe01997aa3156a86fab8ee359df6.tar.xz
Doc: funtional_tests add new mining env vars and how to use them
Diffstat (limited to 'tests')
-rw-r--r--tests/README.md21
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/README.md b/tests/README.md
index c4ad1ce37..908482c99 100644
--- a/tests/README.md
+++ b/tests/README.md
@@ -50,7 +50,7 @@ To run the same tests on a release build, replace `debug` with `release`.
# Functional tests
[TODO]
-Functional tests are located under the `tests/functional` directory.
+Functional tests are located under the `tests/functional_tests` directory.
Building all the tests requires installing the following dependencies:
```bash
@@ -70,6 +70,25 @@ velvet lymph giddy number token physics poetry unquoted nibs useful sabotage lim
Open the wallet file with `monero-wallet-rpc` with RPC port 18083. Finally, start tests by invoking ./blockchain.py or ./speed.py
+## Parameters
+
+Configuration of individual tests.
+
+### Mining test
+
+The following environment variables may be set to control the mining test:
+
+- `MINING_NO_MEASUREMENT` - set to anything to use large enough and fixed mining timeouts (use case: very slow PCs and no intention to change the mining code)
+- `MINING_SILENT` - set to anything to disable mining logging
+
+For example, to customize the run of the functional tests, you may run the following commands from the build directory:
+
+```bash
+export MINING_NO_MEASUREMENT=1
+ctest -V -R functional_tests_rpc
+unset MINING_NO_MEASUREMENT
+```
+
# Fuzz tests
Fuzz tests are written using American Fuzzy Lop (AFL), and located under the `tests/fuzz` directory.