#!/bin/sh
#
# Run the fig2dev testsuite
#
# (c) 2017-2019 Roland Rosenfeld <roland@debian.org>

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

cd fig2dev/tests
echo "Running check and installcheck" # (check builds check_PROGRAMS)
make check installcheck

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