Import pgtap 1.1.0.

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@
This commit is contained in:
landry 2020-06-12 08:12:08 +00:00
parent 80052808f1
commit b1598e8054
4 changed files with 59 additions and 0 deletions

29
databases/pgtap/Makefile Normal file
View File

@ -0,0 +1,29 @@
# $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>

2
databases/pgtap/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (pgtap-1.1.0.zip) = 6Ji5MzLlM6dt0rZO3z4ZBZnXxCccmeIM9Y4xmUwh25E=
SIZE (pgtap-1.1.0.zip) = 306590

View File

@ -0,0 +1,4 @@
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.

24
databases/pgtap/pkg/PLIST Normal file
View File

@ -0,0 +1,24 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/06/12 08:12:08 landry Exp $
share/doc/postgresql/
share/doc/postgresql/extension/
share/doc/postgresql/extension/pgtap.mmd
share/postgresql/extension/pgtap--0.90.0--0.91.0.sql
share/postgresql/extension/pgtap--0.91.0--0.92.0.sql
share/postgresql/extension/pgtap--0.92.0--0.93.0.sql
share/postgresql/extension/pgtap--0.93.0--0.94.0.sql
share/postgresql/extension/pgtap--0.94.0--0.95.0.sql
share/postgresql/extension/pgtap--0.95.0--0.96.0.sql
share/postgresql/extension/pgtap--0.96.0--0.97.0.sql
share/postgresql/extension/pgtap--0.97.0--0.98.0.sql
share/postgresql/extension/pgtap--0.98.0--0.99.0.sql
share/postgresql/extension/pgtap--0.99.0--1.0.0.sql
share/postgresql/extension/pgtap--1.0.0--${V}.sql
share/postgresql/extension/pgtap--${V}.sql
share/postgresql/extension/pgtap--unpackaged--0.91.0.sql
share/postgresql/extension/pgtap-core--${V}.sql
share/postgresql/extension/pgtap-core.sql
share/postgresql/extension/pgtap-schema--${V}.sql
share/postgresql/extension/pgtap-schema.sql
share/postgresql/extension/pgtap.control
share/postgresql/extension/pgtap.sql
share/postgresql/extension/uninstall_pgtap.sql