diff options
author | fanquake <fanquake@gmail.com> | 2020-01-28 17:58:26 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-01-28 18:25:54 +0800 |
commit | 2755b2b1092d0286022cf3cc3028e96f6bee2b34 (patch) | |
tree | b0a1146817965d26ad6006de3457eb48b5620aa9 /src/logging.cpp | |
parent | 3774281327c83023fdd5a1e61bdc3673b21d7c79 (diff) | |
parent | b3c4d9bac6910f6c28f6008c5ca7064a315fd2a5 (diff) |
Merge #18010: test: rename test suite name "tx_validationcache_tests" to match filename
b3c4d9bac6910f6c28f6008c5ca7064a315fd2a5 test: rename test suite name "tx_validationcache_tests" to match filename (Sebastian Falbesoner)
Pull request description:
Quoting `src/test/README.md`, '`Adding test cases`':
> "The file naming convention is `<source_filename>_tests.cpp`
> and such files should wrap their tests in a test suite
> called `<source_filename>_tests`."
Currently the unit test source file `txvalidationcache_tests.cpp` contains a unit test suite with the name `tx_validationcache_tests`, which is fixed by this PR. The following shell script shows that this is the only mismatch and for all other unit test source files the test suite names are correct:
```
#!/bin/bash
shopt -s globstar
for test_full_filename in **/*_tests.cpp; do
test_name_file=`basename $test_full_filename .cpp`
test_name_suite=`sed -n "s/^.*TEST_SUITE(\(.*_tests\).*$/\1/p" $test_full_filename`
if [ $test_name_file != $test_name_suite ]; then
echo "TestFilename: $test_name_file != TestSuitname: $test_name_suite"
fi
done
```
ACKs for top commit:
practicalswift:
ACK b3c4d9bac6910f6c28f6008c5ca7064a315fd2a5 -- expected naming is better than unexpected naming :)
kristapsk:
ACK b3c4d9bac6910f6c28f6008c5ca7064a315fd2a5
Tree-SHA512: 29d409b1eb22057ee2cc407508e2580d2bc03f412401df11b8ecf77be5ada6bda8f7d2cb5338c5e079490fa12242c1fd6230a09e47252c1b0d9fe535a828ca4c
Diffstat (limited to 'src/logging.cpp')
0 files changed, 0 insertions, 0 deletions