mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-10 06:52:55 +00:00
## Problem Some extensions do not contain tests, which can be easily run on top of docker-compose or staging. ## Summary of changes Added the pg_regress based tests for `pg_tiktoken`, `pgx_ulid`, `pg_rag` Now they will be run on top of docker-compose, but I intend to adopt them to be run on top staging in the next PRs
17 lines
533 B
Makefile
17 lines
533 B
Makefile
EXTENSION = pgx_ulid
|
|
|
|
PGFILEDESC = "pgx_ulid - ULID type for PostgreSQL"
|
|
|
|
PG_CONFIG ?= pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
PG_MAJOR_VERSION := $(word 2, $(subst ., , $(shell $(PG_CONFIG) --version)))
|
|
ifeq ($(shell test $(PG_MAJOR_VERSION) -lt 17; echo $$?),0)
|
|
REGRESS_OPTS = --load-extension=ulid
|
|
REGRESS = 00_ulid_generation 01_ulid_conversions 03_ulid_errors
|
|
else
|
|
REGRESS_OPTS = --load-extension=pgx_ulid
|
|
REGRESS = 00_ulid_generation 01_ulid_conversions 02_ulid_conversions 03_ulid_errors
|
|
endif
|
|
|
|
include $(PGXS)
|