@@ -33,13 +33,10 @@ DATA_built = $(RELEASE_SQL) \
33
33
pg_sphere--1.3.1--1.3.2.sql
34
34
35
35
DOCS = README.pg_sphere COPYRIGHT.pg_sphere
36
- REGRESS = init tables points euler circle line ellipse poly path box index \
37
- contains_ops contains_ops_compat bounding_box_gist gnomo epochprop \
38
- contains overlaps spoint_brin sbox_brin selectivity
39
-
40
- TESTS = init_test tables points euler circle line ellipse poly path box \
36
+ TESTS = tables points euler circle line ellipse poly path box \
41
37
index contains_ops contains_ops_compat bounding_box_gist gnomo \
42
38
epochprop contains overlaps spoint_brin sbox_brin selectivity
39
+ REGRESS = init $(TESTS )
43
40
44
41
PG_CFLAGS += -DPGSPHERE_VERSION=$(PGSPHERE_VERSION )
45
42
PG_CPPFLAGS += -DPGSPHERE_VERSION=$(PGSPHERE_VERSION )
@@ -61,7 +58,6 @@ PGS_SQL = pgs_types.sql pgs_point.sql pgs_euler.sql pgs_circle.sql \
61
58
pgs_gist.sql gnomo.sql pgs_brin.sql pgs_circle_sel.sql
62
59
63
60
ifneq ($(USE_HEALPIX ) ,0)
64
- REGRESS += healpix moc moc1 moc100 mocautocast
65
61
TESTS += healpix moc moc1 moc100 mocautocast
66
62
PGS_SQL += healpix.sql
67
63
endif
@@ -104,17 +100,17 @@ healpix_bare/healpix_bare.o : healpix_bare/healpix_bare.c
104
100
pg_version := $(word 2,$(shell $(PG_CONFIG ) --version) )
105
101
has_support_functions = $(if $(filter-out 9.% 10.% 11.% ,$(pg_version ) ) ,y,n)
106
102
107
- crushtest : REGRESS += $(CRUSH_TESTS )
103
+ crushtest : TESTS += $(CRUSH_TESTS )
108
104
crushtest : installcheck
109
105
110
106
ifeq ($(has_support_functions ) ,y)
111
107
PGS_SQL += pgs_gist_support.sql
112
- REGRESS += gist_support
113
108
TESTS += gist_support
114
109
endif
115
110
111
+ # "make test" uses a special initialization file that doesn't rely on "create extension"
116
112
test : pg_sphere.test.sql
117
- $(pg_regress_installcheck ) --temp-instance=tmp_check $(REGRESS_OPTS ) $(TESTS )
113
+ $(pg_regress_installcheck ) --temp-instance=tmp_check $(REGRESS_OPTS ) init_test $(TESTS )
118
114
119
115
pg_sphere.test.sql : $(RELEASE_SQL ) $(shlib )
120
116
tail -n+3 $< | sed ' s,MODULE_PATHNAME,$(realpath $(shlib)),g' > $@
0 commit comments