#!/bin/sh

# Force port 5432 and trust because we connect back to ourselves;
# stop any other running instance on 5432.

service postgresql stop

pg_buildext -c '--port=5432' -i '--auth=trust' installcheck ||
	case $(dpkg-architecture -qDEB_BUILD_ARCH_BITS) in
		32) echo "Ignoring test failure on 32-bit"; exit 0 ;;
		*) exit 1 ;;
	esac
