File tree Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,6 @@ ISOLATION_OPTS = --load-extension=rum
35
35
EXTRA_CLEAN = pglist_tmp
36
36
37
37
ifdef USE_PGXS
38
-
39
- # We cannot run isolation test for versions 12,13 in PGXS case
40
- # because 'pg_isolation_regress' is not copied to install
41
- # directory, see src/test/isolation/Makefile
42
- ifeq ($(MAJORVERSION ) ,$(filter 12% 13% ,$(MAJORVERSION ) ) )
43
- undefine ISOLATION
44
- undefine ISOLATION_OPTS
45
- endif
46
-
47
38
PG_CONFIG = pg_config
48
39
PGXS := $(shell $(PG_CONFIG ) --pgxs)
49
40
include $(PGXS )
57
48
$(EXTENSION ) --$(EXTVERSION ) .sql : rum_init.sql
58
49
cat $^ > $@
59
50
51
+ #
52
+ # On versions 12 and 13 isolation tests cannot be run using pgxs.
53
+ # Override installcheck target to avoid the error. This is just a
54
+ # shortcut version of installcheck target from pgxs.mk that runs
55
+ # all other tests besides isolation tests.
56
+ #
57
+ ifdef USE_PGXS
58
+ ifeq ($(MAJORVERSION ) , $(filter 12% 13% , $(MAJORVERSION ) ) )
59
+ installcheck : submake $(REGRESS_PREP )
60
+ ifdef REGRESS
61
+ $(pg_regress_installcheck) $(REGRESS_OPTS) $(REGRESS)
62
+ endif
63
+ ifdef TAP_TESTS
64
+ $(prove_installcheck)
65
+ endif
66
+ endif
67
+ endif
68
+
60
69
ifeq ($(MAJORVERSION ) , 9.6)
61
70
# arrays are not supported on 9.6
62
71
else
@@ -99,4 +108,4 @@ isolationcheck: | submake-isolation submake-rum temp-install
99
108
$(pg_isolation_regress_check ) \
100
109
--temp-config $(top_srcdir ) /contrib/rum/logical.conf \
101
110
$(ISOLATIONCHECKS )
102
- endif
111
+ endif
You can’t perform that action at this time.
0 commit comments