Add PGXS options to control TAP and isolation tests
The following options are added for extensions: - TAP_TESTS, to allow an extention to run TAP tests which are the ones present in t/*.pl. A subset of tests can always be run with the existing PROVE_TESTS for developers. - ISOLATION, to define a list of isolation tests. - ISOLATION_OPTS, to pass custom options to isolation_tester. A couple of custom Makefile targets have been accumulated across the tree to cover the lack of facility in PGXS for a couple of releases when using those test suites, which are all now replaced with the new flags, without reducing the test coverage. This also fixes an issue with contrib/bloom/, which had a custom target to trigger its TAP tests of its own not part of the main check runs. Author: Michael Paquier Reviewed-by: Adam Berlin, Álvaro Herrera, Tom Lane, Nikolay Shaplov, Arthur Zakirov Discussion: https://postgr.es/m/20180906014849.GG2726@paquier.xyz
This commit is contained in:
parent
2dedf4d9a8
commit
03faa4a8dd
|
@ -8,6 +8,7 @@ DATA = bloom--1.0.sql
|
||||||
PGFILEDESC = "bloom access method - signature file based index"
|
PGFILEDESC = "bloom access method - signature file based index"
|
||||||
|
|
||||||
REGRESS = bloom
|
REGRESS = bloom
|
||||||
|
TAP_TESTS = 1
|
||||||
|
|
||||||
ifdef USE_PGXS
|
ifdef USE_PGXS
|
||||||
PG_CONFIG = pg_config
|
PG_CONFIG = pg_config
|
||||||
|
@ -19,6 +20,3 @@ top_builddir = ../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
wal-check: temp-install
|
|
||||||
$(prove_check)
|
|
||||||
|
|
|
@ -6,11 +6,11 @@ PGAPPICON = win32
|
||||||
PROGRAM = oid2name
|
PROGRAM = oid2name
|
||||||
OBJS = oid2name.o $(WIN32RES)
|
OBJS = oid2name.o $(WIN32RES)
|
||||||
|
|
||||||
|
TAP_TESTS = 1
|
||||||
|
|
||||||
PG_CPPFLAGS = -I$(libpq_srcdir)
|
PG_CPPFLAGS = -I$(libpq_srcdir)
|
||||||
PG_LIBS_INTERNAL = $(libpq_pgport)
|
PG_LIBS_INTERNAL = $(libpq_pgport)
|
||||||
|
|
||||||
EXTRA_CLEAN = tmp_check
|
|
||||||
|
|
||||||
ifdef USE_PGXS
|
ifdef USE_PGXS
|
||||||
PG_CONFIG = pg_config
|
PG_CONFIG = pg_config
|
||||||
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
||||||
|
@ -21,9 +21,3 @@ top_builddir = ../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
check:
|
|
||||||
$(prove_check)
|
|
||||||
|
|
||||||
installcheck:
|
|
||||||
$(prove_installcheck)
|
|
||||||
|
|
|
@ -3,9 +3,20 @@
|
||||||
MODULES = test_decoding
|
MODULES = test_decoding
|
||||||
PGFILEDESC = "test_decoding - example of a logical decoding output plugin"
|
PGFILEDESC = "test_decoding - example of a logical decoding output plugin"
|
||||||
|
|
||||||
# Note: because we don't tell the Makefile there are any regression tests,
|
EXTRA_INSTALL=contrib/test_decoding
|
||||||
# we have to clean those result files explicitly
|
|
||||||
EXTRA_CLEAN = $(pg_regress_clean_files)
|
REGRESS = ddl xact rewrite toast permissions decoding_in_xact \
|
||||||
|
decoding_into_rel binary prepared replorigin time messages \
|
||||||
|
spill slot truncate
|
||||||
|
ISOLATION = mxact delayed_startup ondisk_startup concurrent_ddl_dml \
|
||||||
|
oldest_xmin snapshot_transfer
|
||||||
|
|
||||||
|
REGRESS_OPTS = --temp-config $(top_srcdir)/contrib/test_decoding/logical.conf
|
||||||
|
ISOLATION_OPTS = --temp-config $(top_srcdir)/contrib/test_decoding/logical.conf
|
||||||
|
|
||||||
|
# Disabled because these tests require "wal_level=logical", which
|
||||||
|
# typical installcheck users do not have (e.g. buildfarm clients).
|
||||||
|
NO_INSTALLCHECK = 1
|
||||||
|
|
||||||
ifdef USE_PGXS
|
ifdef USE_PGXS
|
||||||
PG_CONFIG = pg_config
|
PG_CONFIG = pg_config
|
||||||
|
@ -18,52 +29,8 @@ include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Disabled because these tests require "wal_level=logical", which
|
|
||||||
# typical installcheck users do not have (e.g. buildfarm clients).
|
|
||||||
installcheck:;
|
|
||||||
|
|
||||||
# But it can nonetheless be very helpful to run tests on preexisting
|
# But it can nonetheless be very helpful to run tests on preexisting
|
||||||
# installation, allow to do so, but only if requested explicitly.
|
# installation, allow to do so, but only if requested explicitly.
|
||||||
installcheck-force: regresscheck-install-force isolationcheck-install-force
|
installcheck-force:
|
||||||
|
$(pg_regress_installcheck) $(REGRESS)
|
||||||
check: regresscheck isolationcheck
|
$(pg_isolation_regress_installcheck) $(ISOLATION)
|
||||||
|
|
||||||
submake-regress:
|
|
||||||
$(MAKE) -C $(top_builddir)/src/test/regress all
|
|
||||||
|
|
||||||
submake-isolation:
|
|
||||||
$(MAKE) -C $(top_builddir)/src/test/isolation all
|
|
||||||
|
|
||||||
submake-test_decoding:
|
|
||||||
$(MAKE) -C $(top_builddir)/contrib/test_decoding
|
|
||||||
|
|
||||||
REGRESSCHECKS=ddl xact rewrite toast permissions decoding_in_xact \
|
|
||||||
decoding_into_rel binary prepared replorigin time messages \
|
|
||||||
spill slot truncate
|
|
||||||
|
|
||||||
regresscheck: | submake-regress submake-test_decoding temp-install
|
|
||||||
$(pg_regress_check) \
|
|
||||||
--temp-config $(top_srcdir)/contrib/test_decoding/logical.conf \
|
|
||||||
$(REGRESSCHECKS)
|
|
||||||
|
|
||||||
regresscheck-install-force: | submake-regress submake-test_decoding temp-install
|
|
||||||
$(pg_regress_installcheck) \
|
|
||||||
$(REGRESSCHECKS)
|
|
||||||
|
|
||||||
ISOLATIONCHECKS=mxact delayed_startup ondisk_startup concurrent_ddl_dml \
|
|
||||||
oldest_xmin snapshot_transfer
|
|
||||||
|
|
||||||
isolationcheck: | submake-isolation submake-test_decoding temp-install
|
|
||||||
$(pg_isolation_regress_check) \
|
|
||||||
--temp-config $(top_srcdir)/contrib/test_decoding/logical.conf \
|
|
||||||
$(ISOLATIONCHECKS)
|
|
||||||
|
|
||||||
isolationcheck-install-force: all | submake-isolation submake-test_decoding temp-install
|
|
||||||
$(pg_isolation_regress_installcheck) \
|
|
||||||
$(ISOLATIONCHECKS)
|
|
||||||
|
|
||||||
.PHONY: submake-test_decoding submake-regress check \
|
|
||||||
regresscheck regresscheck-install-force \
|
|
||||||
isolationcheck isolationcheck-install-force
|
|
||||||
|
|
||||||
temp-install: EXTRA_INSTALL=contrib/test_decoding
|
|
||||||
|
|
|
@ -6,11 +6,11 @@ PGAPPICON = win32
|
||||||
PROGRAM = vacuumlo
|
PROGRAM = vacuumlo
|
||||||
OBJS = vacuumlo.o $(WIN32RES)
|
OBJS = vacuumlo.o $(WIN32RES)
|
||||||
|
|
||||||
|
TAP_TESTS = 1
|
||||||
|
|
||||||
PG_CPPFLAGS = -I$(libpq_srcdir)
|
PG_CPPFLAGS = -I$(libpq_srcdir)
|
||||||
PG_LIBS_INTERNAL = $(libpq_pgport)
|
PG_LIBS_INTERNAL = $(libpq_pgport)
|
||||||
|
|
||||||
EXTRA_CLEAN = tmp_check
|
|
||||||
|
|
||||||
ifdef USE_PGXS
|
ifdef USE_PGXS
|
||||||
PG_CONFIG = pg_config
|
PG_CONFIG = pg_config
|
||||||
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
||||||
|
@ -21,9 +21,3 @@ top_builddir = ../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
check:
|
|
||||||
$(prove_check)
|
|
||||||
|
|
||||||
installcheck:
|
|
||||||
$(prove_installcheck)
|
|
||||||
|
|
|
@ -1303,6 +1303,34 @@ include $(PGXS)
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><varname>ISOLATION</varname></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
list of isolation test cases, see below for more details
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><varname>ISOLATION_OPTS</varname></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
additional switches to pass to
|
||||||
|
<application>pg_isolation_regress</application>
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><varname>TAP_TESTS</varname></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
switch defining if TAP tests need to be run, see below
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><varname>NO_INSTALLCHECK</varname></term>
|
<term><varname>NO_INSTALLCHECK</varname></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
@ -1423,13 +1451,42 @@ make VPATH=/path/to/extension/source/tree install
|
||||||
have all expected files.
|
have all expected files.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
The scripts listed in the <varname>ISOLATION</varname> variable are used
|
||||||
|
for tests stressing behavior of concurrent session with your module, which
|
||||||
|
can be invoked by <literal>make installcheck</literal> after doing
|
||||||
|
<literal>make install</literal>. For this to work you must have a
|
||||||
|
running <productname>PostgreSQL</productname> server. The script files
|
||||||
|
listed in <varname>ISOLATION</varname> must appear in a subdirectory
|
||||||
|
named <literal>specs/</literal> in your extension's directory. These files
|
||||||
|
must have extension <literal>.spec</literal>, which must not be included
|
||||||
|
in the <varname>ISOLATION</varname> list in the makefile. For each test
|
||||||
|
there should also be a file containing the expected output in a
|
||||||
|
subdirectory named <literal>expected/</literal>, with the same stem and
|
||||||
|
extension <literal>.out</literal>. <literal>make installcheck</literal>
|
||||||
|
executes each test script, and compares the resulting output to the
|
||||||
|
matching expected file. Any differences will be written to the file
|
||||||
|
<literal>output_iso/regression.diffs</literal> in
|
||||||
|
<command>diff -c</command> format. Note that trying to run a test that is
|
||||||
|
missing its expected file will be reported as <quote>trouble</quote>, so
|
||||||
|
make sure you have all expected files.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
<literal>TAP_TESTS</literal> enables the use of TAP tests. Data from each
|
||||||
|
run is present in a subdirectory named <literal>tmp_check/</literal>.
|
||||||
|
See also <xref linkend="regress-tap"/> for more details.
|
||||||
|
</para>
|
||||||
|
|
||||||
<tip>
|
<tip>
|
||||||
<para>
|
<para>
|
||||||
The easiest way to create the expected files is to create empty files,
|
The easiest way to create the expected files is to create empty files,
|
||||||
then do a test run (which will of course report differences). Inspect
|
then do a test run (which will of course report differences). Inspect
|
||||||
the actual result files found in the <literal>results/</literal>
|
the actual result files found in the <literal>results/</literal>
|
||||||
directory, then copy them to <literal>expected/</literal> if they match
|
directory (for tests in <literal>REGRESS</literal>), or
|
||||||
what you expect from the test.
|
<literal>output_iso/results/</literal> directory (for tests in
|
||||||
|
<literal>ISOLATION</literal>), then copy them to
|
||||||
|
<literal>expected/</literal> if they match what you expect from the test.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
</tip>
|
</tip>
|
||||||
|
|
|
@ -46,6 +46,9 @@
|
||||||
# HEADERS_built_$(MODULE) -- as above but built first (also NOT cleaned)
|
# HEADERS_built_$(MODULE) -- as above but built first (also NOT cleaned)
|
||||||
# REGRESS -- list of regression test cases (without suffix)
|
# REGRESS -- list of regression test cases (without suffix)
|
||||||
# REGRESS_OPTS -- additional switches to pass to pg_regress
|
# REGRESS_OPTS -- additional switches to pass to pg_regress
|
||||||
|
# TAP_TESTS -- switch to enable TAP tests
|
||||||
|
# ISOLATION -- list of isolation test cases
|
||||||
|
# ISOLATION_OPTS -- additional switches to pass to pg_isolation_regress
|
||||||
# NO_INSTALLCHECK -- don't define an installcheck target, useful e.g. if
|
# NO_INSTALLCHECK -- don't define an installcheck target, useful e.g. if
|
||||||
# tests require special configuration, or don't use pg_regress
|
# tests require special configuration, or don't use pg_regress
|
||||||
# EXTRA_CLEAN -- extra files to remove in 'make clean'
|
# EXTRA_CLEAN -- extra files to remove in 'make clean'
|
||||||
|
@ -349,6 +352,12 @@ ifeq ($(PORTNAME), win)
|
||||||
rm -f regress.def
|
rm -f regress.def
|
||||||
endif
|
endif
|
||||||
endif # REGRESS
|
endif # REGRESS
|
||||||
|
ifdef TAP_TESTS
|
||||||
|
rm -rf tmp_check/
|
||||||
|
endif
|
||||||
|
ifdef ISOLATION
|
||||||
|
rm -rf output_iso/ tmp_check_iso/
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef MODULE_big
|
ifdef MODULE_big
|
||||||
clean: clean-lib
|
clean: clean-lib
|
||||||
|
@ -383,28 +392,47 @@ $(test_files_build): $(abs_builddir)/%: $(srcdir)/%
|
||||||
$(MKDIR_P) $(dir $@)
|
$(MKDIR_P) $(dir $@)
|
||||||
ln -s $< $@
|
ln -s $< $@
|
||||||
endif # VPATH
|
endif # VPATH
|
||||||
|
endif # REGRESS
|
||||||
|
|
||||||
.PHONY: submake
|
.PHONY: submake
|
||||||
submake:
|
submake:
|
||||||
ifndef PGXS
|
ifndef PGXS
|
||||||
$(MAKE) -C $(top_builddir)/src/test/regress pg_regress$(X)
|
$(MAKE) -C $(top_builddir)/src/test/regress pg_regress$(X)
|
||||||
|
$(MAKE) -C $(top_builddir)/src/test/isolation all
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# against installed postmaster
|
# Standard rules to run regression tests including multiple test suites.
|
||||||
|
# Runs against an installed postmaster
|
||||||
ifndef NO_INSTALLCHECK
|
ifndef NO_INSTALLCHECK
|
||||||
installcheck: submake $(REGRESS_PREP)
|
installcheck: submake $(REGRESS_PREP)
|
||||||
|
ifdef REGRESS
|
||||||
$(pg_regress_installcheck) $(REGRESS_OPTS) $(REGRESS)
|
$(pg_regress_installcheck) $(REGRESS_OPTS) $(REGRESS)
|
||||||
endif
|
endif
|
||||||
|
ifdef ISOLATION
|
||||||
|
$(pg_isolation_regress_installcheck) $(ISOLATION_OPTS) $(ISOLATION)
|
||||||
|
endif
|
||||||
|
ifdef TAP_TESTS
|
||||||
|
$(prove_installcheck)
|
||||||
|
endif
|
||||||
|
endif # NO_INSTALLCHECK
|
||||||
|
|
||||||
|
# Runs independently of any installation
|
||||||
ifdef PGXS
|
ifdef PGXS
|
||||||
check:
|
check:
|
||||||
@echo '"$(MAKE) check" is not supported.'
|
@echo '"$(MAKE) check" is not supported.'
|
||||||
@echo 'Do "$(MAKE) install", then "$(MAKE) installcheck" instead.'
|
@echo 'Do "$(MAKE) install", then "$(MAKE) installcheck" instead.'
|
||||||
else
|
else
|
||||||
check: submake $(REGRESS_PREP)
|
check: submake $(REGRESS_PREP)
|
||||||
|
ifdef REGRESS
|
||||||
$(pg_regress_check) $(REGRESS_OPTS) $(REGRESS)
|
$(pg_regress_check) $(REGRESS_OPTS) $(REGRESS)
|
||||||
endif
|
endif
|
||||||
endif # REGRESS
|
ifdef ISOLATION
|
||||||
|
$(pg_isolation_regress_check) $(ISOLATION_OPTS) $(ISOLATION)
|
||||||
|
endif
|
||||||
|
ifdef TAP_TESTS
|
||||||
|
$(prove_check)
|
||||||
|
endif
|
||||||
|
endif # PGXS
|
||||||
|
|
||||||
ifndef NO_TEMP_INSTALL
|
ifndef NO_TEMP_INSTALL
|
||||||
temp-install: EXTRA_INSTALL+=$(subdir)
|
temp-install: EXTRA_INSTALL+=$(subdir)
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# Generated subdirectories
|
# Generated subdirectories
|
||||||
/isolation_output/
|
/output_iso/
|
||||||
/tmp_check/
|
/tmp_check/
|
||||||
|
|
|
@ -1,12 +1,9 @@
|
||||||
# src/test/modules/brin/Makefile
|
# src/test/modules/brin/Makefile
|
||||||
|
|
||||||
# Note: because we don't tell the Makefile there are any regression tests,
|
EXTRA_INSTALL = contrib/pageinspect
|
||||||
# we have to clean those result files explicitly
|
|
||||||
EXTRA_CLEAN = $(pg_regress_clean_files) ./isolation_output
|
|
||||||
|
|
||||||
EXTRA_INSTALL=contrib/pageinspect
|
ISOLATION = summarization-and-inprogress-insertion
|
||||||
|
TAP_TESTS = 1
|
||||||
ISOLATIONCHECKS=summarization-and-inprogress-insertion
|
|
||||||
|
|
||||||
ifdef USE_PGXS
|
ifdef USE_PGXS
|
||||||
PG_CONFIG = pg_config
|
PG_CONFIG = pg_config
|
||||||
|
@ -18,19 +15,3 @@ top_builddir = ../../../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
check: isolation-check prove-check
|
|
||||||
|
|
||||||
isolation-check: | submake-isolation temp-install
|
|
||||||
$(MKDIR_P) isolation_output
|
|
||||||
$(pg_isolation_regress_check) \
|
|
||||||
--outputdir=./isolation_output \
|
|
||||||
$(ISOLATIONCHECKS)
|
|
||||||
|
|
||||||
prove-check: | temp-install
|
|
||||||
$(prove_check)
|
|
||||||
|
|
||||||
.PHONY: check isolation-check prove-check
|
|
||||||
|
|
||||||
submake-isolation:
|
|
||||||
$(MAKE) -C $(top_builddir)/src/test/isolation all
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
REGRESS = commit_timestamp
|
REGRESS = commit_timestamp
|
||||||
REGRESS_OPTS = --temp-config=$(top_srcdir)/src/test/modules/commit_ts/commit_ts.conf
|
REGRESS_OPTS = --temp-config=$(top_srcdir)/src/test/modules/commit_ts/commit_ts.conf
|
||||||
|
TAP_TESTS = 1
|
||||||
|
|
||||||
ifdef USE_PGXS
|
ifdef USE_PGXS
|
||||||
PG_CONFIG = pg_config
|
PG_CONFIG = pg_config
|
||||||
|
@ -13,8 +14,3 @@ top_builddir = ../../../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
check: prove-check
|
|
||||||
|
|
||||||
prove-check: | temp-install
|
|
||||||
$(prove_check)
|
|
||||||
|
|
|
@ -4,7 +4,12 @@
|
||||||
# we have to clean those result files explicitly
|
# we have to clean those result files explicitly
|
||||||
EXTRA_CLEAN = $(pg_regress_clean_files)
|
EXTRA_CLEAN = $(pg_regress_clean_files)
|
||||||
|
|
||||||
ISOLATIONCHECKS=sto_using_cursor sto_using_select sto_using_hash_index
|
ISOLATION = sto_using_cursor sto_using_select sto_using_hash_index
|
||||||
|
ISOLATION_OPTS = --temp-config $(top_srcdir)/src/test/modules/snapshot_too_old/sto.conf
|
||||||
|
|
||||||
|
# Disabled because these tests require "old_snapshot_threshold" >= 0, which
|
||||||
|
# typical installcheck users do not have (e.g. buildfarm clients).
|
||||||
|
NO_INSTALLCHECK = 1
|
||||||
|
|
||||||
ifdef USE_PGXS
|
ifdef USE_PGXS
|
||||||
PG_CONFIG = pg_config
|
PG_CONFIG = pg_config
|
||||||
|
@ -17,31 +22,7 @@ include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Disabled because these tests require "old_snapshot_threshold" >= 0, which
|
|
||||||
# typical installcheck users do not have (e.g. buildfarm clients).
|
|
||||||
installcheck:;
|
|
||||||
|
|
||||||
# But it can nonetheless be very helpful to run tests on preexisting
|
# But it can nonetheless be very helpful to run tests on preexisting
|
||||||
# installation, allow to do so, but only if requested explicitly.
|
# installation, allow to do so, but only if requested explicitly.
|
||||||
installcheck-force: isolationcheck-install-force
|
installcheck-force:
|
||||||
|
$(pg_isolation_regress_installcheck) $(ISOLATION)
|
||||||
check: isolationcheck
|
|
||||||
|
|
||||||
submake-isolation:
|
|
||||||
$(MAKE) -C $(top_builddir)/src/test/isolation all
|
|
||||||
|
|
||||||
submake-test_snapshot_too_old:
|
|
||||||
$(MAKE) -C $(top_builddir)/src/test/modules/snapshot_too_old
|
|
||||||
|
|
||||||
isolationcheck: | submake-isolation submake-test_snapshot_too_old temp-install
|
|
||||||
$(pg_isolation_regress_check) \
|
|
||||||
--temp-config $(top_srcdir)/src/test/modules/snapshot_too_old/sto.conf \
|
|
||||||
$(ISOLATIONCHECKS)
|
|
||||||
|
|
||||||
isolationcheck-install-force: all | submake-isolation submake-test_snapshot_too_old temp-install
|
|
||||||
$(pg_isolation_regress_installcheck) \
|
|
||||||
$(ISOLATIONCHECKS)
|
|
||||||
|
|
||||||
.PHONY: check submake-test_snapshot_too_old isolationcheck isolationcheck-install-force
|
|
||||||
|
|
||||||
temp-install: EXTRA_INSTALL=src/test/modules/snapshot_too_old
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ EXTENSION = test_pg_dump
|
||||||
DATA = test_pg_dump--1.0.sql
|
DATA = test_pg_dump--1.0.sql
|
||||||
|
|
||||||
REGRESS = test_pg_dump
|
REGRESS = test_pg_dump
|
||||||
|
TAP_TESTS = 1
|
||||||
|
|
||||||
ifdef USE_PGXS
|
ifdef USE_PGXS
|
||||||
PG_CONFIG = pg_config
|
PG_CONFIG = pg_config
|
||||||
|
@ -18,8 +19,3 @@ top_builddir = ../../../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
check: prove-check
|
|
||||||
|
|
||||||
prove-check: | temp-install
|
|
||||||
$(prove_check)
|
|
||||||
|
|
Loading…
Reference in New Issue