Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit24daa22

Browse files
committed
Maintain only one list of tests
Make evaluates "=" variables lazily, so we can add items to TESTS laterin the file and still have them show up in REGRESS.
1 parent4dfc663 commit24daa22

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

‎Makefile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,10 @@ DATA_built = $(RELEASE_SQL) \
3333
pg_sphere--1.3.1--1.3.2.sql
3434

3535
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\
4137
index contains_ops contains_ops_compat bounding_box_gist gnomo\
4238
epochprop contains overlaps spoint_brin sbox_brin selectivity
39+
REGRESS = init$(TESTS)
4340

4441
PG_CFLAGS+= -DPGSPHERE_VERSION=$(PGSPHERE_VERSION)
4542
PG_CPPFLAGS+= -DPGSPHERE_VERSION=$(PGSPHERE_VERSION)
@@ -61,7 +58,6 @@ PGS_SQL = pgs_types.sql pgs_point.sql pgs_euler.sql pgs_circle.sql \
6158
pgs_gist.sql gnomo.sql pgs_brin.sql pgs_circle_sel.sql
6259

6360
ifneq ($(USE_HEALPIX),0)
64-
REGRESS += healpix moc moc1 moc100 mocautocast
6561
TESTS += healpix moc moc1 moc100 mocautocast
6662
PGS_SQL += healpix.sql
6763
endif
@@ -104,17 +100,17 @@ healpix_bare/healpix_bare.o : healpix_bare/healpix_bare.c
104100
pg_version :=$(word 2,$(shell$(PG_CONFIG) --version))
105101
has_support_functions =$(if$(filter-out 9.% 10.% 11.%,$(pg_version)),y,n)
106102

107-
crushtest:REGRESS +=$(CRUSH_TESTS)
103+
crushtest:TESTS +=$(CRUSH_TESTS)
108104
crushtest: installcheck
109105

110106
ifeq ($(has_support_functions),y)
111107
PGS_SQL += pgs_gist_support.sql
112-
REGRESS += gist_support
113108
TESTS += gist_support
114109
endif
115110

111+
# "make test" uses a special initialization file that doesn't rely on "create extension"
116112
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)
118114

119115
pg_sphere.test.sql:$(RELEASE_SQL)$(shlib)
120116
tail -n+3$<| sed's,MODULE_PATHNAME,$(realpath $(shlib)),g'>$@

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp