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}
>
Thanks! I tried to do something similar but it didn't work out.
I can see now what sorts of things I can do with it now.
I have a another port which just isn't working with these tests.
I can now work better with figuring it out.
--
Chris Bennett