Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/developer-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ To enable LCOV report generation during test runs:
make
make cov

# A coverage report will now be accessible at `./test_bitcoin.coverage/index.html`,
# A coverage report will now be accessible at `./test_BGL.coverage/index.html`,
# which covers unit tests, and `./total.coverage/index.html`, which covers
# unit and functional tests.
```
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.test.include
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if USE_NATPMP
FUZZ_SUITE_LD_COMMON += $(NATPMP_LIBS)
endif

# test_bitcoin binary #
# test_BGL binary #
BGL_TESTS =\
test/addrman_tests.cpp \
test/allocator_tests.cpp \
Expand Down
10 changes: 5 additions & 5 deletions src/test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ standard terminal output.
... or to run just the doubledash test:

```bash
test_ --run_test=getarg_tests/doubledash
test_BGL --run_test=getarg_tests/doubledash
```

`test_BGL` creates a temporary working (data) directory with a randomly
Expand All @@ -72,7 +72,7 @@ have a `debug.log` file, for example.
The location of the temporary data directory can be specified with the
`-testdatadir` option. This can make debugging easier. The directory
path used is the argument path appended with
`/test_common_Bitcoin Core/<test-name>/datadir`.
`/test_common_BGL Core/<test-name>/datadir`.
The directory path is created if necessary.
Specifying this argument also causes the data directory
not to be removed after the last test. This is useful for looking at
Expand All @@ -81,12 +81,12 @@ what the test wrote to `debug.log` after it completes, for example.
so no leftover state is used.)

```bash
$ test_bitcoin --run_test=getarg_tests/doubledash -- -testdatadir=/somewhere/mydatadir
$ test_BGL --run_test=getarg_tests/doubledash -- -testdatadir=/somewhere/mydatadir
Test directory (will not be deleted): "/somewhere/mydatadir/test_common_BGL Core/getarg_tests/doubledash/datadir
Running 1 test case...

*** No errors detected
$ ls -l '/somewhere/mydatadir/test_common_Bitcoin Core/getarg_tests/doubledash/datadir'
$ ls -l '/somewhere/mydatadir/test_common_BGL Core/getarg_tests/doubledash/datadir'
total 8
drwxrwxr-x 2 admin admin 4096 Nov 27 22:45 blocks
-rw-rw-r-- 1 admin admin 1003 Nov 27 22:45 debug.log
Expand All @@ -96,7 +96,7 @@ If you run an entire test suite, such as `--run_test=getarg_tests`, or all the t
(by not specifying `--run_test`), a separate directory
will be created for each individual test.

Run `test_bitcoin --help` for the full list of tests.
Run `test_BGL --help` for the full list of tests.

### Adding test cases

Expand Down
4 changes: 2 additions & 2 deletions src/test/argsman_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ BOOST_FIXTURE_TEST_CASE(util_ArgsMerge, ArgsMergeTestingSetup)

// If check below fails, should manually dump the results with:
//
// ARGS_MERGE_TEST_OUT=results.txt ./test_bitcoin --run_test=argsman_tests/util_ArgsMerge
// ARGS_MERGE_TEST_OUT=results.txt ./test_BGL --run_test=argsman_tests/util_ArgsMerge
//
// And verify diff against previous results to make sure the changes are expected.
//
Expand Down Expand Up @@ -1009,7 +1009,7 @@ BOOST_FIXTURE_TEST_CASE(util_ChainMerge, ChainMergeTestingSetup)

// If check below fails, should manually dump the results with:
//
// CHAIN_MERGE_TEST_OUT=results.txt ./test_bitcoin --run_test=argsman_tests/util_ChainMerge
// CHAIN_MERGE_TEST_OUT=results.txt ./test_BGL --run_test=argsman_tests/util_ChainMerge
//
// And verify diff against previous results to make sure the changes are expected.
//
Expand Down
2 changes: 1 addition & 1 deletion src/test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const std::function<void(const std::string&)> G_TEST_LOG_FUN = [](const std::str
/**
* Retrieve the command line arguments from boost.
* Allows usage like:
* `test_bitcoin --run_test="net_tests/cnode_listen_port" -- -checkaddrman=1 -printtoconsole=1`
* `test_BGL --run_test="net_tests/cnode_listen_port" -- -checkaddrman=1 -printtoconsole=1`
* which would return `["-checkaddrman=1", "-printtoconsole=1"]`.
*/
const std::function<std::vector<const char*>()> G_TEST_COMMAND_LINE_ARGUMENTS = []() {
Expand Down
2 changes: 1 addition & 1 deletion src/test/settings_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ BOOST_FIXTURE_TEST_CASE(Merge, MergeTestingSetup)

// If check below fails, should manually dump the results with:
//
// SETTINGS_MERGE_TEST_OUT=results.txt ./test_bitcoin --run_test=settings_tests/Merge
// SETTINGS_MERGE_TEST_OUT=results.txt ./test_BGL --run_test=settings_tests/Merge
//
// And verify diff against previous results to make sure the changes are expected.
//
Expand Down