@@ -20,7 +20,6 @@ OBJS += src/healpix.o src/moc.o src/process_moc.o \
20
20
endif
21
21
22
22
DATA_built = $(RELEASE_SQL ) \
23
- pg_sphere--unpackaged--1.1.5beta0gavo.sql \
24
23
pg_sphere--1.0--1.0_gavo.sql \
25
24
pg_sphere--1.0_gavo--1.1.5beta0gavo.sql \
26
25
pg_sphere--1.1.5beta0gavo--1.1.5beta2gavo.sql \
@@ -38,18 +37,10 @@ REGRESS = init tables points euler circle line ellipse poly path box index \
38
37
contains_ops contains_ops_compat bounding_box_gist gnomo epochprop \
39
38
contains overlaps spoint_brin sbox_brin
40
39
41
- ifneq ($(USE_HEALPIX ) ,0)
42
- REGRESS += healpix moc mocautocast
43
- endif
44
-
45
40
TESTS = init_test tables points euler circle line ellipse poly path box \
46
41
index contains_ops contains_ops_compat bounding_box_gist gnomo \
47
42
epochprop contains overlaps spoint_brin sbox_brin
48
43
49
- ifneq ($(USE_HEALPIX ) ,0)
50
- TESTS += healpix moc mocautocast
51
- endif
52
-
53
44
PG_CFLAGS += -DPGSPHERE_VERSION=$(PGSPHERE_VERSION )
54
45
PG_CPPFLAGS += -DPGSPHERE_VERSION=$(PGSPHERE_VERSION )
55
46
@@ -70,6 +61,8 @@ PGS_SQL = pgs_types.sql pgs_point.sql pgs_euler.sql pgs_circle.sql \
70
61
pgs_gist.sql gnomo.sql pgs_brin.sql
71
62
72
63
ifneq ($(USE_HEALPIX ) ,0)
64
+ REGRESS += healpix moc moc1 moc100 mocautocast
65
+ TESTS += healpix moc moc1 moc100 mocautocast
73
66
PGS_SQL += healpix.sql
74
67
endif
75
68
@@ -109,17 +102,10 @@ healpix_bare/healpix_bare.o : healpix_bare/healpix_bare.c
109
102
$(COMPILE.c ) -Wno-declaration-after-statement -o $@ $^
110
103
111
104
pg_version := $(word 2,$(shell $(PG_CONFIG ) --version) )
112
- has_explain_summary = $(if $(filter-out 9.% ,$(pg_version ) ) ,y,n)
113
105
114
106
crushtest : REGRESS += $(CRUSH_TESTS )
115
107
crushtest : installcheck
116
108
117
- ifneq ($(USE_HEALPIX ) ,0)
118
- ifeq ($(has_explain_summary ) ,y)
119
- REGRESS += moc1 moc100
120
- endif
121
- endif
122
-
123
109
test : pg_sphere.test.sql
124
110
$(pg_regress_installcheck ) --temp-instance=tmp_check $(REGRESS_OPTS ) $(TESTS )
125
111
@@ -129,69 +115,22 @@ pg_sphere.test.sql: $(RELEASE_SQL) $(shlib)
129
115
$(RELEASE_SQL ) : pg_sphere_head.sql.in $(addsuffix .in, $(PGS_SQL ) )
130
116
cat $^ > $@
131
117
132
- # for "create extension from unpacked*":
133
-
134
- UPGRADE_UNP_COMMON = pgs_types.sql pgs_point.sql pgs_euler.sql pgs_circle.sql \
135
- pgs_line.sql pgs_ellipse.sql pgs_polygon.sql pgs_path.sql \
136
- pgs_box.sql pgs_contains_ops_compat.sql pgs_gist.sql \
137
- pgs_gist_contains_ops.sql contains-ops-fixes-1.sql
138
-
139
- AUGMENT_UNP_COMMON = upgrade_scripts/pgs_pre111.sql pgs_contains_ops.sql \
140
- gnomo.sql
141
- # for vanilla 1.1.1 users:
142
- AUGMENT_UNP_111 = $(AUGMENT_UNP_COMMON ) pgs_gist_pointkey.sql
143
-
144
- # for 1.1.2+ users: 'from unpacked_1.1.2plus'
145
- AUGMENT_UNP_FOR_112plus = $(AUGMENT_UNP_COMMON )
146
- UPGRADE_UNP_FOR_112plus = pgs_gist_pointkey.sql pgs_gist_drop_spoint2.sql.in
147
-
148
- # for "alter extension":
149
-
150
- # TODO: add dynamic pl/pgsql to do perform an additional
151
- # "ALTER EXTENSION pg_sphere UPDATE TO '1.1.5_from_before_2016-02-07';"
152
- # if required.
153
- #
154
118
# default 1.0 (after 2016-02-07) -> 1.1.5
155
119
UPGRADE_1_0_PRE_xxxxxx = contains-ops-fixes-2.sql
156
120
# '1.1.5_from_2015-08-31'
157
121
AUGMENT_1_0_PRE_AAF2D5 = pgs_contains_ops.sql gnomo.sql
158
122
UPGRADE_1_0_PRE_AAF2D5 = contains-ops-fixes-1.sql pgs_gist_drop_spoint2.sql.in \
159
123
pgs_gist_contains_ops.sql
160
124
161
- # vanilla 'create from unpackaged' must assume 1.1.1
162
- # ...
163
-
164
- # create "create extension from unpacked*" files
165
-
166
- # create "alter extension" files
167
-
168
- # local stuff follows here
169
- AUGMENT_GAVO_111 = $(AUGMENT_UNP_111 ) # for vanilla 1.1.1 users
170
- ifneq ($(USE_HEALPIX ) ,0)
171
- AUGMENT_GAVO_111 += healpix.sql
172
- endif
173
- UPGRADE_GAVO_111 = $(UPGRADE_UNP_COMMON )
174
-
175
125
# add new HEALPix functions and experimental spoint3
176
126
ifneq ($(USE_HEALPIX ) ,0)
177
127
AUGMENT_FROM_GAVO = healpix.sql
178
128
endif
179
129
AUGMENT_FROM_GAVO += pgs_gist_spoint3.sql
180
130
181
- AUGMENT_UNP_115B0G = $(AUGMENT_UNP_111 ) $(AUGMENT_FROM_GAVO )
182
- UPGRADE_UNP_115B0G = $(UPGRADE_UNP_COMMON )
183
-
184
131
AUGMENT_1_0_115B0G = $(AUGMENT_FROM_GAVO )
185
132
UPGRADE_1_0_115B0G = contains-ops-fixes-2.sql pgs_gist_drop_spoint2.sql
186
133
187
- # test installation 0
188
- pg_sphere--unpackaged--1.1.5beta0gavo.sql : $(addsuffix .in, \
189
- $(AUGMENT_GAVO_111 ) \
190
- $(addprefix upgrade_scripts/, $(UPGRADE_GAVO_111 ) ) )
191
- cat upgrade_scripts/$@ .in $^ > $@
192
-
193
- # (The upgrade of test installation A has been completed.)
194
-
195
134
# test installation B (generic)
196
135
pg_sphere--1.0--1.0_gavo.sql : # dummy upgrade to allow for descriptive names
197
136
cat upgrade_scripts/$@ .in > $@
0 commit comments