injection_points: Fix race condition with local injection point tests
[pgsql.git] / src / test / modules / injection_points / Makefile
blob31bd787994be52880ec7741cbd69fef04ed7639a
1 # src/test/modules/injection_points/Makefile
3 MODULES = injection_points
5 EXTENSION = injection_points
6 DATA = injection_points--1.0.sql
7 PGFILEDESC = "injection_points - facility for injection points"
9 REGRESS = injection_points
10 REGRESS_OPTS = --dlpath=$(top_builddir)/src/test/regress
12 # The injection points are cluster-wide, so disable installcheck
13 NO_INSTALLCHECK = 1
15 ifdef USE_PGXS
16 PG_CONFIG = pg_config
17 PGXS := $(shell $(PG_CONFIG) --pgxs)
18 include $(PGXS)
19 else
20 subdir = src/test/modules/injection_points
21 top_builddir = ../../../..
22 include $(top_builddir)/src/Makefile.global
24 # XXX: This test is conditional on enable_injection_points in the
25 # parent Makefile, so we should never get here in the first place if
26 # injection points are not enabled. But the buildfarm 'misc-check'
27 # step doesn't pay attention to the if-condition in the parent
28 # Makefile. To work around that, disable running the test here too.
29 ifeq ($(enable_injection_points),yes)
30 include $(top_srcdir)/contrib/contrib-global.mk
31 else
32 check:
33 @echo "injection points are disabled in this build"
34 endif
36 endif