File tree 3 files changed +16
-4
lines changed
contrib/pg_stat_statements
3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ LDFLAGS_SL += $(filter -lm, $(LIBS))
13
13
14
14
REGRESS_OPTS = --temp-config $(top_srcdir ) /contrib/pg_stat_statements/pg_stat_statements.conf
15
15
REGRESS = pg_stat_statements
16
+ # Disabled because these tests require "shared_preload_libraries=pg_stat_statements",
17
+ # which typical installcheck users do not have (e.g. buildfarm clients).
18
+ NO_INSTALLCHECK = 1
16
19
17
20
ifdef USE_PGXS
18
21
PG_CONFIG = pg_config
@@ -24,7 +27,3 @@ top_builddir = ../..
24
27
include $(top_builddir ) /src/Makefile.global
25
28
include $(top_srcdir ) /contrib/contrib-global.mk
26
29
endif
27
-
28
- # Disabled because these tests require "shared_preload_libraries=pg_stat_statements",
29
- # which typical installcheck users do not have (e.g. buildfarm clients).
30
- installcheck : REGRESS=
Original file line number Diff line number Diff line change @@ -1193,6 +1193,15 @@ include $(PGXS)
1193
1193
</listitem>
1194
1194
</varlistentry>
1195
1195
1196
+ <varlistentry>
1197
+ <term><varname>NO_INSTALLCHECK</varname></term>
1198
+ <listitem>
1199
+ <para>
1200
+ don't define an installcheck target, useful e.g. if tests require special configuration, or don't use pg_regress
1201
+ </para>
1202
+ </listitem>
1203
+ </varlistentry>
1204
+
1196
1205
<varlistentry>
1197
1206
<term><varname>EXTRA_CLEAN</varname></term>
1198
1207
<listitem>
Original file line number Diff line number Diff line change 40
40
# which need to be built first
41
41
# REGRESS -- list of regression test cases (without suffix)
42
42
# REGRESS_OPTS -- additional switches to pass to pg_regress
43
+ # NO_INSTALLCHECK -- don't define an installcheck target, useful e.g. if
44
+ # tests require special configuration, or don't use pg_regress
43
45
# EXTRA_CLEAN -- extra files to remove in 'make clean'
44
46
# PG_CPPFLAGS -- will be added to CPPFLAGS
45
47
# PG_LIBS -- will be added to PROGRAM link line
@@ -268,8 +270,10 @@ ifndef PGXS
268
270
endif
269
271
270
272
# against installed postmaster
273
+ ifndef NO_INSTALLCHECK
271
274
installcheck : submake $(REGRESS_PREP )
272
275
$(pg_regress_installcheck ) $(REGRESS_OPTS ) $(REGRESS )
276
+ endif
273
277
274
278
ifdef PGXS
275
279
check :
You can’t perform that action at this time.
0 commit comments