From f56b4734b22ec27e08060ff4b5c76276fd7d4892 Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Wed, 28 Aug 2024 12:10:53 -0400 Subject: [PATCH] Restore testing Signed-off-by: Cole Miller --- contrib/build-static.sh | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/contrib/build-static.sh b/contrib/build-static.sh index fd22f9a8a..54a5d8366 100755 --- a/contrib/build-static.sh +++ b/contrib/build-static.sh @@ -132,10 +132,18 @@ if [ ! -f "${BUILD_DIR}/dqlite/libdqlite.la" ]; then autoreconf -i ./configure --disable-shared --enable-build-raft --prefix="${INSTALL_DIR}" - make unit-test LDFLAGS=-all-static - pwd - ls -la - ldd ./unit-test - ./unit-test + # Don't run the raft addrinfo tests since they rely on libc being + # dynamically linked. + bins="unit-test integration-test \ + raft-core-fuzzy-test \ + raft-core-integration-test \ + raft-core-unit-test \ + raft-uv-integration-test \ + raft-uv-unit-test" + make -j LDFLAGS=-all-static $bins + for bin in $bins + do LIBDQLITE_TRACE=1 ./$bin || touch any-failed + done + test '!' -e any-failed ) fi