Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,27 @@ EXTENSION = sqlite_fdw
DATA = sqlite_fdw--1.0.sql sqlite_fdw--1.0--1.1.sql

ifdef ENABLE_GIS
override PG_CFLAGS += -DSQLITE_FDW_GIS_ENABLE
GISTEST=postgis
PG_CFLAGS += -DSQLITE_FDW_GIS_ENABLE
GISTEST = postgis
GISPREF = ok
else
GISTEST=nogis
GISTEST = nogis
GISPREF = no
endif

# Tests for PostgreSQL data types support
TYPETESTS = types/bitstring types/bool types/float4 types/float8 types/int4 types/int8 types/numeric types/$(GISTEST) types/macaddr types/macaddr8 types/out_of_range types/timestamp types/uuid
# Tests with different versions with GIS support and without GIS support
GISDEPTESTS = gis_$(GISPREF)/type gis_$(GISPREF)/auto_import

ifndef REGRESS
REGRESS = extra/sqlite_fdw_post types/bitstring types/bool types/float4 types/float8 types/int4 types/int8 types/numeric types/$(GISTEST) types/macaddr types/macaddr8 types/out_of_range types/timestamp types/uuid extra/join extra/limit extra/aggregates extra/prepare extra/select_having extra/select extra/insert extra/update extra/encodings sqlite_fdw type_$(GISTEST) aggregate selectfunc
# System tests, full default sequence
REGRESS = extra/sqlite_fdw_post $(TYPETESTS) extra/join extra/limit extra/aggregates extra/prepare extra/select_having extra/select extra/insert extra/update extra/encodings sqlite_fdw aggregate selectfunc $(GISDEPTESTS)
endif

# Other encodings also are tested. Client encoding should be UTF-8.
REGRESS_OPTS = --encoding=utf8

SQLITE_LIB = sqlite3

UNAME = uname
OS := $(shell $(UNAME))
ifeq ($(OS), Darwin)
Expand All @@ -44,6 +51,7 @@ ifdef ENABLE_GIS
override SHLIB_LINK += -lspatialite
endif


ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
Expand All @@ -70,6 +78,8 @@ endif
REGRESS := $(addprefix $(REGRESS_PREFIX_SUB)/,$(REGRESS))
$(shell mkdir -p results/$(REGRESS_PREFIX_SUB)/extra)
$(shell mkdir -p results/$(REGRESS_PREFIX_SUB)/types)
$(shell mkdir -p results/$(REGRESS_PREFIX_SUB)/gis_$(GISPREF))


ifdef ENABLE_GIS
check: temp-install
Expand Down
622 changes: 622 additions & 0 deletions expected/13.15/gis_no/auto_import.out

Large diffs are not rendered by default.

Loading