1#------------------------------------------------------------------------- 2# 3# Makefile for src/test/recovery 4# 5# Losely based on the makefile found in postgres' src/test/recovery. 6# We need to define our own invocation of prove to pass the correct path 7# to pg_regress and include citus in the shared preload libraries. 8# 9#------------------------------------------------------------------------- 10 11subdir = src/test/recovery 12top_builddir = ../../.. 13include $(top_builddir)/Makefile.global 14 15# copied from pgxs/Makefile.global to use postgres' abs build dir for pg_regress 16ifeq ($(enable_tap_tests),yes) 17 18define citus_prove_installcheck 19rm -rf '$(CURDIR)'/tmp_check 20$(MKDIR_P) '$(CURDIR)'/tmp_check 21cd $(srcdir) && \ 22TESTDIR='$(CURDIR)' \ 23PATH="$(bindir):$$PATH" \ 24PGPORT='6$(DEF_PGPORT)' \ 25top_builddir='$(CURDIR)/$(top_builddir)' \ 26PG_REGRESS='$(pgxsdir)/src/test/regress/pg_regress' \ 27TEMP_CONFIG='$(CURDIR)'/postgresql.conf \ 28$(PROVE) $(PG_PROVE_FLAGS) $(PROVE_FLAGS) $(if $(PROVE_TESTS),$(PROVE_TESTS),t/*.pl) 29endef 30 31else 32citus_prove_installcheck = @echo "TAP tests not enabled when postgres was compiled" 33endif 34 35installcheck: 36 $(citus_prove_installcheck) 37 38clean distclean maintainer-clean: 39 rm -rf tmp_check 40