Skip to content

Commit 51a2918

Browse files
committed
Fix by 1st review
1 parent 4b67cfe commit 51a2918

File tree

50 files changed

+1558
-1604
lines changed

Some content is hidden

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

50 files changed

+1558
-1604
lines changed

Makefile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,23 @@ DATA = sqlite_fdw--1.0.sql sqlite_fdw--1.0--1.1.sql
1717

1818
ifdef ENABLE_GIS
1919
PG_CFLAGS += -DSQLITE_FDW_GIS_ENABLE
20-
GISTEST = postgis
21-
GISPREF = ok
20+
GIS_TEST = postgis
21+
GIS_DEP_TESTS_DIR = with_gis_support
22+
$(info There is PostGIS support for PostgreSQL SQLite FDW)
2223
else
23-
GISTEST = nogis
24-
GISPREF = no
24+
GIS_TEST = nogis
25+
GIS_DEP_TESTS_DIR = without_gis_support
26+
$(info There is NO PostGIS support for PostgreSQL SQLite FDW)
2527
endif
2628

2729
# Tests for PostgreSQL data types support
28-
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
30+
DATA_TYPE_TESTS = types/bitstring types/bool types/float4 types/float8 types/int4 types/int8 types/numeric types/$(GIS_TEST) types/macaddr types/macaddr8 types/out_of_range types/timestamp types/uuid
2931
# Tests with different versions with GIS support and without GIS support
30-
GISDEPTESTS = gis_$(GISPREF)/type gis_$(GISPREF)/auto_import
32+
GIS_DEP_TESTS = $(GIS_DEP_TESTS_DIR)/type $(GIS_DEP_TESTS_DIR)/auto_import
3133

3234
ifndef REGRESS
3335
# System tests, full default sequence
34-
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)
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)
3537
endif
3638

3739
# Other encodings also are tested. Client encoding should be UTF-8.
@@ -78,7 +80,7 @@ endif
7880
REGRESS := $(addprefix $(REGRESS_PREFIX_SUB)/,$(REGRESS))
7981
$(shell mkdir -p results/$(REGRESS_PREFIX_SUB)/extra)
8082
$(shell mkdir -p results/$(REGRESS_PREFIX_SUB)/types)
81-
$(shell mkdir -p results/$(REGRESS_PREFIX_SUB)/gis_$(GISPREF))
83+
$(shell mkdir -p results/$(REGRESS_PREFIX_SUB)/$(GIS_DEP_TESTS_DIR))
8284

8385

8486
ifdef ENABLE_GIS

expected/15.7/gis_ok/auto_import.out renamed to expected/13.15/with_gis_support/auto_import.out

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ CREATE EXTENSION sqlite_fdw;
55
--Testcase 02:
66
CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw
77
OPTIONS (database '/tmp/sqlite_fdw_test/common.db');
8-
--Testcase 03:
9-
CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw;
108
--Testcase 04:
119
IMPORT FOREIGN SCHEMA main FROM SERVER sqlite_svr INTO public;
1210
--Testcase 05:

expected/13.15/gis_no/auto_import.out renamed to expected/13.15/without_gis_support/auto_import.out

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ CREATE EXTENSION sqlite_fdw;
55
--Testcase 02:
66
CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw
77
OPTIONS (database '/tmp/sqlite_fdw_test/common.db');
8-
--Testcase 03:
9-
CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw;
108
--Testcase 04:
119
IMPORT FOREIGN SCHEMA main FROM SERVER sqlite_svr INTO public;
1210
--Testcase 05:
File renamed without changes.

expected/13.15/gis_ok/auto_import.out renamed to expected/14.12/with_gis_support/auto_import.out

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ CREATE EXTENSION sqlite_fdw;
55
--Testcase 02:
66
CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw
77
OPTIONS (database '/tmp/sqlite_fdw_test/common.db');
8-
--Testcase 03:
9-
CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw;
108
--Testcase 04:
119
IMPORT FOREIGN SCHEMA main FROM SERVER sqlite_svr INTO public;
1210
--Testcase 05:

expected/15.7/gis_no/auto_import.out renamed to expected/14.12/without_gis_support/auto_import.out

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ CREATE EXTENSION sqlite_fdw;
55
--Testcase 02:
66
CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw
77
OPTIONS (database '/tmp/sqlite_fdw_test/common.db');
8-
--Testcase 03:
9-
CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw;
108
--Testcase 04:
119
IMPORT FOREIGN SCHEMA main FROM SERVER sqlite_svr INTO public;
1210
--Testcase 05:
File renamed without changes.

expected/16.3/gis_ok/auto_import.out renamed to expected/15.7/with_gis_support/auto_import.out

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ CREATE EXTENSION sqlite_fdw;
55
--Testcase 02:
66
CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER sqlite_fdw
77
OPTIONS (database '/tmp/sqlite_fdw_test/common.db');
8-
--Testcase 03:
9-
CREATE SERVER sqlite2 FOREIGN DATA WRAPPER sqlite_fdw;
108
--Testcase 04:
119
IMPORT FOREIGN SCHEMA main FROM SERVER sqlite_svr INTO public;
1210
--Testcase 05:

0 commit comments

Comments
 (0)