diff --git a/docker-compose/ext-src/pg_jsonschema-src/Makefile b/docker-compose/ext-src/pg_jsonschema-src/Makefile index d79364d8b5..72da141b97 100644 --- a/docker-compose/ext-src/pg_jsonschema-src/Makefile +++ b/docker-compose/ext-src/pg_jsonschema-src/Makefile @@ -1,8 +1,13 @@ EXTENSION = pg_jsonschema DATA = pg_jsonschema--1.0.sql REGRESS = jsonschema_valid_api jsonschema_edge_cases -REGRESS_OPTS = --load-extension=pg_jsonschema PG_CONFIG ?= pg_config PGXS := $(shell $(PG_CONFIG) --pgxs) -include $(PGXS) +PG_REGRESS := $(dir $(PGXS))../../src/test/regress/pg_regress +.PHONY installcheck: +installcheck: + dropdb --if-exists contrib_regression + createdb contrib_regression + psql -d contrib_regression -c "CREATE EXTENSION $(EXTENSION)" + $(PG_REGRESS) --use-existing --dbname=contrib_regression $(REGRESS) diff --git a/docker-compose/ext-src/pg_session_jwt-src/Makefile b/docker-compose/ext-src/pg_session_jwt-src/Makefile index c61c9777ad..34ed074c18 100644 --- a/docker-compose/ext-src/pg_session_jwt-src/Makefile +++ b/docker-compose/ext-src/pg_session_jwt-src/Makefile @@ -6,4 +6,10 @@ export PGOPTIONS = -c pg_session_jwt.jwk={"crv":"Ed25519","kty":"OKP","x":"R_Abz PG_CONFIG ?= pg_config PGXS := $(shell $(PG_CONFIG) --pgxs) -include $(PGXS) \ No newline at end of file +PG_REGRESS := $(dir $(PGXS))../../src/test/regress/pg_regress +.PHONY installcheck: +installcheck: + dropdb --if-exists contrib_regression + createdb contrib_regression + psql -d contrib_regression -c "CREATE EXTENSION $(EXTENSION)" + $(PG_REGRESS) --use-existing --dbname=contrib_regression $(REGRESS)