bitcoin/test/lint
Wladimir J. van der Laan 3516a31eaa
Merge #18234: refactor: Replace boost::mutex,condition_var,chrono with std equivalents in scheduler
70a6b529f3 lint-cppcheck: Remove -DHAVE_WORKING_BOOST_SLEEP_FOR (Anthony Towns)
294937b39d scheduler_tests: re-enable mockforward test (Anthony Towns)
cea19f6859 Drop unused reverselock.h (Anthony Towns)
d0ebd93270 scheduler: switch from boost to std (Anthony Towns)
b9c4260127 sync.h: add REVERSE_LOCK (Anthony Towns)
306f71b4eb scheduler: don't rely on boost interrupt on shutdown (Anthony Towns)

Pull request description:

  Replacing boost functionality with C++11 stuff.

  Motivated by #18227, but should stand alone. Changing from `boost::condition_var` to `std::condition_var` means `threadGroup.interrupt_all` isn't enough to interrupt `serviceQueue` anymore, so that means calling `stop()` before `join_all()` is needed. And the existing reverselock.h code doesn't work with sync.h's DebugLock code (because the reversed lock won't be removed from `g_lockstack` which then leads to incorrect potential deadlock warnings), so I've replaced that with a dedicated class and macro that's aware of our debug lock behaviour.

  Fixes #16027, Fixes #14200, Fixes #18227

ACKs for top commit:
  laanwj:
    ACK 70a6b529f3

Tree-SHA512: d1da13adeabcf9186d114e2dad9a4fdbe2e440f7afbccde0c13dfbaf464efcd850b69d3371c5bf8b179d7ceb9d81f4af3cc22960b90834e41eaaf6d52ef7d331
2020-03-06 20:51:56 +01:00
..
check-doc.py
check-rpc-mappings.py
commit-script-check.sh
extended-lint-all.sh scripted-diff: Bump copyright of files changed in 2020 2020-01-15 02:18:00 +07:00
extended-lint-cppcheck.sh lint-cppcheck: Remove -DHAVE_WORKING_BOOST_SLEEP_FOR 2020-03-07 04:20:41 +10:00
git-subtree-check.sh
lint-all.sh
lint-assertions.sh
lint-circular-dependencies.sh gui: Drop PeerTableModel dependency to ClientModel 2020-02-03 14:48:40 +00:00
lint-filenames.sh
lint-format-strings.py Refactor: Copy CWallet signals and print function to LegacyScriptPubKeyMan 2020-01-23 16:35:08 -05:00
lint-format-strings.sh tests: Add fuzzing harness for strprintf(...) 2020-01-27 21:31:42 +00:00
lint-include-guards.sh test: Add crc32c exception to various linters and generation scripts 2020-01-28 17:01:48 +01:00
lint-includes.sh scheduler: switch from boost to std 2020-03-06 23:14:08 +10:00
lint-locale-dependence.sh tests: Add fuzzing harness for locale independence testing 2020-03-06 13:29:21 +00:00
lint-logs.sh
lint-python-mutable-default-parameters.sh
lint-python-utf8-encoding.sh test: Add crc32c exception to various linters and generation scripts 2020-01-28 17:01:48 +01:00
lint-python.sh
lint-qt.sh
lint-rpc-help.sh
lint-shebang.sh scripted-diff: Add missed copyright headers 2020-01-04 20:18:28 +02:00
lint-shell-locale.sh
lint-shell.sh doc: Correct spelling errors in comments 2020-03-02 23:07:21 -08:00
lint-spelling.ignore-words.txt doc: Correct spelling errors in comments 2020-03-02 23:07:21 -08:00
lint-spelling.sh test: Add crc32c exception to various linters and generation scripts 2020-01-28 17:01:48 +01:00
lint-submodule.sh ci: Check for submodules 2020-02-10 16:48:15 +01:00
lint-tests.sh
lint-whitespace.sh test: Add crc32c exception to various linters and generation scripts 2020-01-28 17:01:48 +01:00
README.md test: Add crc32c to subtree check linter 2020-01-28 17:01:48 +01:00

This folder contains lint scripts.

check-doc.py

Check for missing documentation of command line options.

commit-script-check.sh

Verification of scripted diffs. Scripted diffs are only assumed to run on the latest LTS release of Ubuntu. Running them on other operating systems might require installing GNU tools, such as GNU sed.

git-subtree-check.sh

Run this script from the root of the repository to verify that a subtree matches the contents of the commit it claims to have been updated to.

To use, make sure that you have fetched the upstream repository branch in which the subtree is maintained:

Usage: git-subtree-check.sh DIR (COMMIT)

COMMIT may be omitted, in which case HEAD is used.

lint-all.sh

Calls other scripts with the lint- prefix.