#!/bin/sh
# This runs the upstream testsuite, but with PostgreSQL tests included
# that can't be ran during the normal upstream build.
set -eux

sudo -u postgres createuser "$USER"
sudo -u postgres createdb soju --owner "$USER"
export SOJU_TEST_POSTGRES="host=/run/postgresql dbname=soju sslmode=none"

exec /usr/bin/dh_golang_autopkgtest
