#!/bin/sh

set -eux

# avoid build failure with TZ=Etc/GMT+12
export TZ=UTC

rm -f test
cp /usr/share/misc/config.* .
[ -f Makefile ] || ./configure
make test CFLAGS+=-I/usr/include/postgresql
pg_virtualenv ./test ""
