@oliphaunt/extension-pgtap-linux-arm64-gnu 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +6 -0
- package/THIRD_PARTY_NOTICES.md +20 -0
- package/extension-contract.json +31 -0
- package/package.json +49 -0
- package/runtime/share/licenses/pgtap/README.md +153 -0
- package/runtime/share/postgresql/extension/pgtap--0.90.0--0.91.0.sql +29 -0
- package/runtime/share/postgresql/extension/pgtap--0.91.0--0.92.0.sql +1650 -0
- package/runtime/share/postgresql/extension/pgtap--0.92.0--0.93.0.sql +679 -0
- package/runtime/share/postgresql/extension/pgtap--0.93.0--0.94.0.sql +193 -0
- package/runtime/share/postgresql/extension/pgtap--0.94.0--0.95.0.sql +639 -0
- package/runtime/share/postgresql/extension/pgtap--0.95.0--0.96.0.sql +415 -0
- package/runtime/share/postgresql/extension/pgtap--0.96.0--0.97.0.sql +375 -0
- package/runtime/share/postgresql/extension/pgtap--0.97.0--0.98.0.sql +441 -0
- package/runtime/share/postgresql/extension/pgtap--0.98.0--0.99.0.sql +209 -0
- package/runtime/share/postgresql/extension/pgtap--0.99.0--1.0.0.sql +737 -0
- package/runtime/share/postgresql/extension/pgtap--1.0.0--1.1.0.sql +186 -0
- package/runtime/share/postgresql/extension/pgtap--1.1.0--1.2.0.sql +889 -0
- package/runtime/share/postgresql/extension/pgtap--1.2.0--1.3.0.sql +495 -0
- package/runtime/share/postgresql/extension/pgtap--1.3.0--1.3.1.sql +229 -0
- package/runtime/share/postgresql/extension/pgtap--1.3.1--1.3.2.sql +34 -0
- package/runtime/share/postgresql/extension/pgtap--1.3.2--1.3.3.sql +42 -0
- package/runtime/share/postgresql/extension/pgtap--1.3.3--1.3.4.sql +89 -0
- package/runtime/share/postgresql/extension/pgtap--1.3.4--1.3.5.sql +1 -0
- package/runtime/share/postgresql/extension/pgtap--1.3.5.sql +11520 -0
- package/runtime/share/postgresql/extension/pgtap--unpackaged--0.91.0.sql +714 -0
- package/runtime/share/postgresql/extension/pgtap-core--1.3.5.sql +4390 -0
- package/runtime/share/postgresql/extension/pgtap-core.sql +4390 -0
- package/runtime/share/postgresql/extension/pgtap-schema--1.3.5.sql +6764 -0
- package/runtime/share/postgresql/extension/pgtap-schema.sql +6764 -0
- package/runtime/share/postgresql/extension/pgtap.control +6 -0
- package/runtime/share/postgresql/extension/pgtap.sql +11520 -0
- package/runtime/share/postgresql/extension/uninstall_pgtap.sql +1088 -0
- package/share/licenses/pgtap/README.md +153 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
pgTAP 1.3.5
|
|
2
|
+
===========
|
|
3
|
+
|
|
4
|
+
[pgTAP](https://pgtap.org) is a unit testing framework for PostgreSQL written
|
|
5
|
+
in PL/pgSQL and PL/SQL. It includes a comprehensive collection of
|
|
6
|
+
[TAP](https://testanything.org)-emitting assertion functions, as well as the
|
|
7
|
+
ability to integrate with other TAP-emitting test frameworks. It can also be
|
|
8
|
+
used in the xUnit testing style. For detailed documentation, see the
|
|
9
|
+
documentation in `doc/pgtap.md` or
|
|
10
|
+
[online](https://pgtap.org/documentation.html "Complete pgTAP Documentation").
|
|
11
|
+
|
|
12
|
+
[](https://badge.fury.io/pg/pgtap)
|
|
13
|
+
[](https://github.com/theory/pgtap/actions/workflows/test.yml)
|
|
14
|
+
|
|
15
|
+
pgTAP must be installed on a host with PostgreSQL server running; it cannot
|
|
16
|
+
be installed remotely.
|
|
17
|
+
|
|
18
|
+
To build it, just do this:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
make
|
|
22
|
+
make install
|
|
23
|
+
make installcheck
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
If you encounter an error such as:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
"Makefile", line 8: Need an operator
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
You need to use GNU make, which may well be installed on your system as
|
|
33
|
+
`gmake`:
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
gmake
|
|
37
|
+
gmake install
|
|
38
|
+
gmake installcheck
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
If you encounter an error such as:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
make: pg_config: Command not found
|
|
45
|
+
```
|
|
46
|
+
Or:
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
Makefile:52: *** pgTAP requires PostgreSQL 9.1 or later. This is . Stop.
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Be sure that you have `pg_config` installed and in your path. If you used a
|
|
53
|
+
package management system such as RPM to install PostgreSQL, be sure that the
|
|
54
|
+
`-devel` package is also installed. If necessary tell the build process where
|
|
55
|
+
to find it:
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
env PG_CONFIG=/path/to/pg_config make && make install && make installcheck
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
And finally, if all that fails, copy the entire distribution directory to the
|
|
62
|
+
`contrib/` subdirectory of the PostgreSQL source tree and try it there without
|
|
63
|
+
`pg_config`:
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
env NO_PGXS=1 make && make install && make installcheck
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
If you encounter an error such as:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
ERROR: must be owner of database regression
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
You need to run the test suite using a super user, such as the default
|
|
76
|
+
"postgres" super user:
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
make installcheck PGUSER=postgres
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
If you encounter an error such as:
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
ERROR: Missing extensions required for testing: citext isn ltree
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Install the PostgreSQL
|
|
89
|
+
[Additional Supplied Modules](https://www.postgresql.org/docs/current/contrib.html),
|
|
90
|
+
which are required to run the tests. If you used a package management system
|
|
91
|
+
such as RPM to install PostgreSQL, install the `-contrib` package.
|
|
92
|
+
|
|
93
|
+
To install the extension in a custom prefix on PostgreSQL 18 or later, pass
|
|
94
|
+
the `prefix` argument to `install` (but no other `make` targets):
|
|
95
|
+
|
|
96
|
+
```sh
|
|
97
|
+
make install prefix=/usr/local/extras
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Then ensure that the prefix is included in the following [`postgresql.conf`
|
|
101
|
+
parameters]:
|
|
102
|
+
|
|
103
|
+
```ini
|
|
104
|
+
extension_control_path = '/usr/local/extras/postgresql/share:$system'
|
|
105
|
+
dynamic_library_path = '/usr/local/extras/postgresql/lib:$libdir'
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Once pgTAP is installed, you can add it to a database by connecting as a super
|
|
109
|
+
user and running:
|
|
110
|
+
|
|
111
|
+
```sql
|
|
112
|
+
CREATE EXTENSION pgtap;
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
If you've upgraded your cluster to PostgreSQL 9.1 and already had pgTAP
|
|
116
|
+
installed, you can upgrade it to a properly packaged extension with:
|
|
117
|
+
|
|
118
|
+
```sql
|
|
119
|
+
CREATE EXTENSION pgtap FROM unpackaged;
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
If you want to install pgTAP and all of its supporting objects into a specific
|
|
123
|
+
schema, use the `SCHEMA` clause to specify the schema, like so:
|
|
124
|
+
|
|
125
|
+
```sql
|
|
126
|
+
CREATE EXTENSION pgtap SCHEMA tap;
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Dependencies
|
|
130
|
+
------------
|
|
131
|
+
|
|
132
|
+
pgTAP requires PostgreSQL 9.1 or higher.
|
|
133
|
+
|
|
134
|
+
Copyright and License
|
|
135
|
+
---------------------
|
|
136
|
+
|
|
137
|
+
Copyright (c) 2008-2025 David E. Wheeler. Some rights reserved.
|
|
138
|
+
|
|
139
|
+
Permission to use, copy, modify, and distribute this software and its
|
|
140
|
+
documentation for any purpose, without fee, and without a written agreement is
|
|
141
|
+
hereby granted, provided that the above copyright notice and this paragraph
|
|
142
|
+
and the following two paragraphs appear in all copies.
|
|
143
|
+
|
|
144
|
+
IN NO EVENT SHALL DAVID E. WHEELER BE LIABLE TO ANY PARTY FOR DIRECT,
|
|
145
|
+
INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST
|
|
146
|
+
PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
|
|
147
|
+
IF DAVID E. WHEELER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
148
|
+
|
|
149
|
+
DAVID E. WHEELER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
|
|
150
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
|
151
|
+
PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
|
|
152
|
+
AND DAVID E. WHEELER HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
|
|
153
|
+
UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|