File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # Copyright (c) 2018 The Bitcoin Core developers
4
+ # Distributed under the MIT software license, see the accompanying
5
+ # file COPYING or http://www.opensource.org/licenses/mit-license.php.
6
+ #
7
+ # Check the test suite naming convention
8
+
9
+ NAMING_INCONSISTENCIES=$( git grep -E ' ^BOOST_FIXTURE_TEST_SUITE\(' -- \
10
+ " src/test/**.cpp" " src/wallet/test/**.cpp" | \
11
+ grep -vE ' /(.*?)\.cpp:BOOST_FIXTURE_TEST_SUITE\(\1, .*\)$' )
12
+ if [[ ${NAMING_INCONSISTENCIES} != " " ]]; then
13
+ echo " The test suite in file src/test/foo_tests.cpp should be named"
14
+ echo " \" foo_tests\" . Please make sure the following test suites follow"
15
+ echo " that convention:"
16
+ echo
17
+ echo " ${NAMING_INCONSISTENCIES} "
18
+ exit 1
19
+ fi
You can’t perform that action at this time.
0 commit comments