Changeset View
Changeset View
Standalone View
Standalone View
test/lint/lint-circular-dependencies.sh
#!/usr/bin/env bash | #!/usr/bin/env bash | ||||
# | # | ||||
# Copyright (c) 2018 The Bitcoin Core developers | # Copyright (c) 2018 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
# | # | ||||
# Check for circular dependencies | # Check for circular dependencies | ||||
export LC_ALL=C | export LC_ALL=C | ||||
set -euo pipefail | set -euo pipefail | ||||
: "${TOPLEVEL:=$(git rev-parse --show-toplevel)}" | : "${TOPLEVEL:=$(git rev-parse --show-toplevel)}" | ||||
EXPECTED_CIRCULAR_DEPENDENCIES=( | EXPECTED_CIRCULAR_DEPENDENCIES=( | ||||
"index/txindex -> validation -> index/txindex" | "index/txindex -> validation -> index/txindex" | ||||
"index/blockfilterindex -> validation -> index/blockfilterindex" | "node/blockstorage -> validation -> node/blockstorage" | ||||
"index/blockfilterindex -> node/blockstorage -> validation -> index/blockfilterindex" | |||||
"index/base -> validation -> index/blockfilterindex -> index/base" | |||||
"qt/addresstablemodel -> qt/walletmodel -> qt/addresstablemodel" | "qt/addresstablemodel -> qt/walletmodel -> qt/addresstablemodel" | ||||
"qt/bitcoingui -> qt/walletframe -> qt/bitcoingui" | "qt/bitcoingui -> qt/walletframe -> qt/bitcoingui" | ||||
"qt/recentrequeststablemodel -> qt/walletmodel -> qt/recentrequeststablemodel" | "qt/recentrequeststablemodel -> qt/walletmodel -> qt/recentrequeststablemodel" | ||||
"qt/transactiontablemodel -> qt/walletmodel -> qt/transactiontablemodel" | "qt/transactiontablemodel -> qt/walletmodel -> qt/transactiontablemodel" | ||||
"txmempool -> validation -> txmempool" | "txmempool -> validation -> txmempool" | ||||
"wallet/fees -> wallet/wallet -> wallet/fees" | "wallet/fees -> wallet/wallet -> wallet/fees" | ||||
"wallet/rpcwallet -> wallet/wallet -> wallet/rpcwallet" | "wallet/rpcwallet -> wallet/wallet -> wallet/rpcwallet" | ||||
"wallet/wallet -> wallet/walletdb -> wallet/wallet" | "wallet/wallet -> wallet/walletdb -> wallet/wallet" | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |