Skip to content

Commit b82bc16

Browse files
mkgrgist-hiroshige
authored andcommitted
Add auto_import test for IMPORT FOREIGN TABLE and test sequence refactoring #116
1 parent 8f7f4f4 commit b82bc16

File tree

125 files changed

+12936
-8554
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+12936
-8554
lines changed

Makefile

+17-6
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,29 @@ EXTENSION = sqlite_fdw
1616
DATA = sqlite_fdw--1.0.sql sqlite_fdw--1.0--1.1.sql
1717

1818
ifdef ENABLE_GIS
19-
override PG_CFLAGS += -DSQLITE_FDW_GIS_ENABLE
20-
GISTEST=postgis
19+
PG_CFLAGS += -DSQLITE_FDW_GIS_ENABLE
20+
GIS_DEP_TESTS_DIR = with_gis_support
21+
GIS_TEST = postgis
22+
$(info There is PostGIS support for SQLite FDW)
2123
else
22-
GISTEST=nogis
24+
GIS_DEP_TESTS_DIR = without_gis_support
25+
GIS_TEST = nogis
26+
$(info There is NO PostGIS support for SQLite FDW)
2327
endif
2428

29+
# Tests for PostgreSQL data types support
30+
DATA_TYPE_TESTS = types/bitstring types/bool types/float4 types/float8 types/int4 types/int8 types/numeric types/macaddr types/macaddr8 types/out_of_range types/timestamp types/uuid
31+
# Tests with different versions with GIS support and without GIS support
32+
GIS_DEP_TESTS = $(GIS_DEP_TESTS_DIR)/type $(GIS_DEP_TESTS_DIR)/auto_import $(GIS_DEP_TESTS_DIR)/$(GIS_TEST)
33+
2534
ifndef REGRESS
26-
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
35+
# System tests, full default sequence
36+
REGRESS = extra/sqlite_fdw_post $(DATA_TYPE_TESTS) extra/join extra/limit extra/aggregates extra/prepare extra/select_having extra/select extra/insert extra/update extra/encodings sqlite_fdw aggregate selectfunc $(GIS_DEP_TESTS)
2737
endif
2838

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

31-
SQLITE_LIB = sqlite3
32-
3342
UNAME = uname
3443
OS := $(shell $(UNAME))
3544
ifeq ($(OS), Darwin)
@@ -70,6 +79,8 @@ endif
7079
REGRESS := $(addprefix $(REGRESS_PREFIX_SUB)/,$(REGRESS))
7180
$(shell mkdir -p results/$(REGRESS_PREFIX_SUB)/extra)
7281
$(shell mkdir -p results/$(REGRESS_PREFIX_SUB)/types)
82+
$(shell mkdir -p results/$(REGRESS_PREFIX_SUB)/$(GIS_DEP_TESTS_DIR))
83+
7384

7485
ifdef ENABLE_GIS
7586
check: temp-install

0 commit comments

Comments
 (0)