pgTAP is a unit testing framework for PostgreSQL written in PL/pgSQL and PL/SQL. It includes a comprehensive collection of TAP-emitting assertion functions, as well as the ability to integrate with other TAP-emitting test frameworks. It can also be used in the xUnit testing style. ok/hints afresh1@
30 lines
775 B
Makefile
30 lines
775 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2020/06/12 08:12:08 landry Exp $
|
|
|
|
V = 1.1.0
|
|
COMMENT = unit testing for PostgreSQL
|
|
DISTNAME = pgtap-${V}
|
|
CATEGORIES = databases
|
|
EXTRACT_SUFX = .zip
|
|
|
|
HOMEPAGE = https://pgtap.org/
|
|
|
|
# PostgreSQL
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
MASTER_SITES = https://api.pgxn.org/dist/pgtap/${V}/
|
|
MODULES = databases/postgresql
|
|
|
|
SUBST_VARS += V
|
|
USE_GMAKE = Yes
|
|
|
|
BUILD_DEPENDS = databases/postgresql
|
|
RUN_DEPENDS = databases/postgresql,-server \
|
|
databases/p5-TAP-Parser-SourceHandler-pgTAP
|
|
|
|
TEST_DEPENDS = ${BUILD_PKGPATH}
|
|
TEST_ENV += ALLOW_MISSING_EXTENSIONS=1
|
|
MODPOSTGRESQL_TEST_CMD = ${LOCALBASE}/bin/psql -c 'CREATE EXTENSION pgtap; ALTER DATABASE postgres OWNER TO postgres' && \
|
|
${MAKE_PROGRAM} ${ALL_TEST_FLAGS} -f ${MAKE_FILE} ${TEST_TARGET}
|
|
|
|
.include <bsd.port.mk>
|