#!/usr/bin/bash
set -e
unset RELEASE_TESTING

# The tests write to temporary database which is placed in $DIR/t/testdb
DIR=$(mktemp -d)
pushd "$DIR"
cp -a /usr/libexec/perl-DBD-MariaDB/* ./

# Load the variables
. $DIR/$(basename /builddir/build/SOURCES/test-env.sh)

# Run tests
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
popd
rm -rf "$DIR"
