aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authormerge-script <fanquake@gmail.com>2024-09-06 10:51:34 +0100
committermerge-script <fanquake@gmail.com>2024-09-06 10:51:34 +0100
commit0e5cd608da5d8c3d9c758dbfa3fc36df4af4a100 (patch)
treecef1782ba27aad21fa14cbf1d09aefa61258b504 /ci
parent118b55c462e26ca732dd31c1f85bba5b58ef565c (diff)
parent3ae35b427fe59bc9ab24d07c1adb46faa702de20 (diff)
downloadbitcoin-0e5cd608da5d8c3d9c758dbfa3fc36df4af4a100.tar.xz
Merge bitcoin/bitcoin#30415: contrib: fix check-deps.sh to check for weak symbols
3ae35b427fe59bc9ab24d07c1adb46faa702de20 ci: run check-deps.sh as part of clang-tidy job (Ryan Ofsky) 0aaa1298a08f898318916661f2317b2e755206e6 contrib: fix check-deps.sh when libraries do not import symbols (Ryan Ofsky) 3c99f5a38a47e4e10a0daab3a114b5e476fcacfa contrib: fix check-deps.sh to check for weak symbols (Ryan Ofsky) 86c80e9cf296f6560f2f846bd4e7286f7b958b93 contrib: make check-deps.sh script work with cmake (Ryan Ofsky) Pull request description: Fix check-deps.sh to check for weak symbols so it can detect when an exported template function like is used from another library. Also update the script to work with cmake and configure it to run as part of CI. Problem was reported by hebasto in https://github.com/bitcoin/bitcoin/pull/29015#issuecomment-2209258843 ACKs for top commit: TheCharlatan: Re-ACK 3ae35b427fe59bc9ab24d07c1adb46faa702de20 hebasto: ACK 3ae35b427fe59bc9ab24d07c1adb46faa702de20, I have reviewed the code and it looks OK. Also I've tested it locally. Tree-SHA512: c3b58175450b675e6e848549b81bcfe42930ea9bcd693063867ce3f0ac3999c98cd2c3e961f163ff06641e8288f3a4e81530936a296a83d45d33364f27489521
Diffstat (limited to 'ci')
-rwxr-xr-xci/test/00_setup_env_native_tidy.sh1
-rwxr-xr-xci/test/03_test_script.sh4
2 files changed, 5 insertions, 0 deletions
diff --git a/ci/test/00_setup_env_native_tidy.sh b/ci/test/00_setup_env_native_tidy.sh
index 581de16bed..5105455df8 100755
--- a/ci/test/00_setup_env_native_tidy.sh
+++ b/ci/test/00_setup_env_native_tidy.sh
@@ -14,6 +14,7 @@ export NO_DEPENDS=1
export RUN_UNIT_TESTS=false
export RUN_FUNCTIONAL_TESTS=false
export RUN_FUZZ_TESTS=false
+export RUN_CHECK_DEPS=true
export RUN_TIDY=true
export GOAL="install"
export BITCOIN_CONFIG="\
diff --git a/ci/test/03_test_script.sh b/ci/test/03_test_script.sh
index 4de27ee60c..eebdfbc9e5 100755
--- a/ci/test/03_test_script.sh
+++ b/ci/test/03_test_script.sh
@@ -137,6 +137,10 @@ if [ -n "$USE_VALGRIND" ]; then
"${BASE_ROOT_DIR}/ci/test/wrap-valgrind.sh"
fi
+if [ "$RUN_CHECK_DEPS" = "true" ]; then
+ "${BASE_ROOT_DIR}/contrib/devtools/check-deps.sh" .
+fi
+
if [ "$RUN_UNIT_TESTS" = "true" ]; then
DIR_UNIT_TEST_DATA="${DIR_UNIT_TEST_DATA}" LD_LIBRARY_PATH="${DEPENDS_DIR}/${HOST}/lib" CTEST_OUTPUT_ON_FAILURE=ON ctest "${MAKEJOBS}"
fi