@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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 oliphaunt-wasix Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Third-Party Notices
|
|
2
|
+
|
|
3
|
+
Oliphaunt source code in this repository is licensed under the MIT license in
|
|
4
|
+
`LICENSE`.
|
|
5
|
+
|
|
6
|
+
This file is the repository-level notice index. Product-specific runtime and
|
|
7
|
+
packaging notices live next to the product that ships the relevant artifacts:
|
|
8
|
+
|
|
9
|
+
- `src/runtimes/liboliphaunt/native/THIRD_PARTY_NOTICES.md`
|
|
10
|
+
- `src/bindings/wasix-rust/THIRD_PARTY_NOTICES.md`
|
|
11
|
+
|
|
12
|
+
Shared PostgreSQL source pins, third-party source pins, and extension metadata
|
|
13
|
+
are maintained in `src/postgres/versions/18/`, `src/sources/third-party/`, and
|
|
14
|
+
`src/extensions/`. Generated release artifacts must include the notices and
|
|
15
|
+
exact pinned license bytes for every product and third-party component they
|
|
16
|
+
ship.
|
|
17
|
+
|
|
18
|
+
Canonical runtime license snapshots live in
|
|
19
|
+
`src/runtimes/liboliphaunt/licenses/`; their source pins and digests are
|
|
20
|
+
enforced by `tools/release/release-notices.mjs`.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "oliphaunt-npm-extension-contract-v1",
|
|
3
|
+
"product": "oliphaunt-extension-pgtap",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"family": "native",
|
|
6
|
+
"target": "linux-arm64-gnu",
|
|
7
|
+
"members": [
|
|
8
|
+
{
|
|
9
|
+
"sqlName": "pgtap",
|
|
10
|
+
"createsExtension": true,
|
|
11
|
+
"nativeModuleStem": null,
|
|
12
|
+
"dependencies": [],
|
|
13
|
+
"dataFiles": [],
|
|
14
|
+
"extensionSqlFileNames": [
|
|
15
|
+
"uninstall_pgtap.sql"
|
|
16
|
+
],
|
|
17
|
+
"extensionSqlFilePrefixes": [
|
|
18
|
+
"pgtap-core",
|
|
19
|
+
"pgtap-schema"
|
|
20
|
+
],
|
|
21
|
+
"sharedPreloadLibraries": [],
|
|
22
|
+
"licenseFiles": [
|
|
23
|
+
{
|
|
24
|
+
"path": "share/licenses/pgtap/README.md",
|
|
25
|
+
"sha256": "ffe79b36e67976724f6f5896c4f16d0ffe2f65382ec7987426735ffde9c5399c",
|
|
26
|
+
"mode": "0644"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@oliphaunt/extension-pgtap-linux-arm64-gnu",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "linux-arm64-gnu Oliphaunt extension runtime package for PostgreSQL pgtap.",
|
|
5
|
+
"license": "MIT AND PostgreSQL",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/f0rr0/oliphaunt.git"
|
|
10
|
+
},
|
|
11
|
+
"os": [
|
|
12
|
+
"linux"
|
|
13
|
+
],
|
|
14
|
+
"cpu": [
|
|
15
|
+
"arm64"
|
|
16
|
+
],
|
|
17
|
+
"libc": [
|
|
18
|
+
"glibc"
|
|
19
|
+
],
|
|
20
|
+
"optional": true,
|
|
21
|
+
"oliphaunt": {
|
|
22
|
+
"product": "oliphaunt-extension-pgtap",
|
|
23
|
+
"kind": "exact-extension-target",
|
|
24
|
+
"sqlName": "pgtap",
|
|
25
|
+
"members": [
|
|
26
|
+
"pgtap"
|
|
27
|
+
],
|
|
28
|
+
"extensionContract": "extension-contract.json",
|
|
29
|
+
"target": "linux-arm64-gnu",
|
|
30
|
+
"runtimeRelativePath": "runtime",
|
|
31
|
+
"liboliphauntVersion": "0.1.0"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public",
|
|
35
|
+
"provenance": true
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"runtime",
|
|
39
|
+
"extension-contract.json",
|
|
40
|
+
"README.md",
|
|
41
|
+
"LICENSE",
|
|
42
|
+
"THIRD_PARTY_NOTICES.md",
|
|
43
|
+
"share/licenses/**"
|
|
44
|
+
],
|
|
45
|
+
"exports": {
|
|
46
|
+
"./extension-contract": "./extension-contract.json",
|
|
47
|
+
"./package.json": "./package.json"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -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.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
CREATE OR REPLACE FUNCTION pgtap_version()
|
|
2
|
+
RETURNS NUMERIC AS 'SELECT 0.91;'
|
|
3
|
+
LANGUAGE SQL IMMUTABLE;
|
|
4
|
+
|
|
5
|
+
CREATE OR REPLACE FUNCTION has_tablespace( NAME, TEXT, TEXT )
|
|
6
|
+
RETURNS TEXT AS $$
|
|
7
|
+
BEGIN
|
|
8
|
+
IF pg_version_num() >= 90200 THEN
|
|
9
|
+
RETURN ok(
|
|
10
|
+
EXISTS(
|
|
11
|
+
SELECT true
|
|
12
|
+
FROM pg_catalog.pg_tablespace
|
|
13
|
+
WHERE spcname = $1
|
|
14
|
+
AND pg_tablespace_location(oid) = $2
|
|
15
|
+
), $3
|
|
16
|
+
);
|
|
17
|
+
ELSE
|
|
18
|
+
RETURN ok(
|
|
19
|
+
EXISTS(
|
|
20
|
+
SELECT true
|
|
21
|
+
FROM pg_catalog.pg_tablespace
|
|
22
|
+
WHERE spcname = $1
|
|
23
|
+
AND spclocation = $2
|
|
24
|
+
), $3
|
|
25
|
+
);
|
|
26
|
+
END IF;
|
|
27
|
+
END;
|
|
28
|
+
$$ LANGUAGE plpgsql;
|
|
29
|
+
|