On Wed, Jun 10, 2020 at 08:12:25PM -0700, Andrew Hewus Fresh wrote:
> On Wed, Jun 10, 2020 at 08:01:36PM -0700, Andrew Hewus Fresh wrote:
> > MODPOSTGRESQL_TEST_CMD = ${LOCALBASE}/bin/psql -c 'CREATE EXTENSION pgtap;'
> > && \
> > PGUSER=${USER} PGDATABASE=postgres \
> > ${MAKE_PROGRAM} ${ALL_TEST_FLAGS} -f ${MAKE_FILE} ${TEST_TARGET}
>
>
> Could also change the db owner, which perhaps should be part of
> postgresql.port.mk?
>
> MODPOSTGRESQL_TEST_CMD = ${LOCALBASE}/bin/psql -c 'CREATE EXTENSION pgtap;'
> && \
> ${LOCALBASE}/bin/psql -c 'ALTER DATABASE postgres OWNER TO postgres;'
> && \
> ${MAKE_PROGRAM} ${ALL_TEST_FLAGS} -f ${MAKE_FILE} ${TEST_TARGET}
Yup - that definitely helps, should have thought about that... now all
tests pass, thanks! Pretty sure pgtap just uses postgres db, as the
bundled test/test_MVU.sh script just seem to do a createdb.
thanks for the hint !
Landry