#!/bin/sh
#
# Run the lbdb testsuite
#
# (c) 2018-2025 Roland Rosenfeld <roland@debian.org>

echo "Running dh_auto_configure"
dh_auto_configure >/dev/null 2>&1

echo "Rebuild testsuite"
cd tests
rm -f testsuite
make testsuite

echo "Running testsuite"
./testsuite

# Place testsuite output into artifacts:
cp -a testsuite.log testsuite.dir $AUTOPKGTEST_ARTIFACTS/
