#!/bin/bash
set -e

export LC_ALL=C.UTF-8

./configure
cd tests
make testsuite envdump genfile
if ! ./testsuite; then
	if [ -d "$AUTOPKGTEST_ARTIFACTS" ]; then
		cp -r testsuite.dir "$AUTOPKGTEST_ARTIFACTS"
	fi
fi
