1# contrib/test_decoding/Makefile
2
3MODULES = test_decoding
4PGFILEDESC = "test_decoding - example of a logical decoding output plugin"
5
6REGRESS = ddl xact rewrite toast permissions decoding_in_xact \
7	decoding_into_rel binary prepared replorigin time messages \
8	spill slot truncate
9ISOLATION = mxact delayed_startup ondisk_startup concurrent_ddl_dml \
10	oldest_xmin snapshot_transfer subxact_without_top
11
12REGRESS_OPTS = --temp-config $(top_srcdir)/contrib/test_decoding/logical.conf
13ISOLATION_OPTS = --temp-config $(top_srcdir)/contrib/test_decoding/logical.conf
14
15# Disabled because these tests require "wal_level=logical", which
16# typical installcheck users do not have (e.g. buildfarm clients).
17NO_INSTALLCHECK = 1
18
19ifdef USE_PGXS
20PG_CONFIG = pg_config
21PGXS := $(shell $(PG_CONFIG) --pgxs)
22include $(PGXS)
23else
24subdir = contrib/test_decoding
25top_builddir = ../..
26include $(top_builddir)/src/Makefile.global
27include $(top_srcdir)/contrib/contrib-global.mk
28endif
29
30# But it can nonetheless be very helpful to run tests on preexisting
31# installation, allow to do so, but only if requested explicitly.
32installcheck-force:
33	$(pg_regress_installcheck) $(REGRESS)
34	$(pg_isolation_regress_installcheck) $(ISOLATION)
35