Skip to content

Commit

Permalink
Restore testing
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Miller <cole.miller@canonical.com>
  • Loading branch information
cole-miller committed Aug 28, 2024
1 parent 4b32327 commit e10b989
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions contrib/build-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,19 @@ 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-addrinfo-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

0 comments on commit e10b989

Please sign in to comment.