@@ -21,12 +21,12 @@ RELATIVE_INCLUDES = $(addprefix src/, $(INCLUDES))
21
21
22
22
LDFLAGS_SL +=$(filter -lm,$(LIBS ) )
23
23
24
- REGRESS = security rum rum_validate rum_hash ruminv timestamporderby orderby_hash \
25
- altorder altorder_hash limits\
24
+ REGRESS = security rum rum_validate rum_hash ruminv timestamp\
25
+ orderby orderby_hash altorder altorder_hash limits\
26
26
int2 int4 int8 float4 float8 money oid\
27
27
time timetz date interval\
28
28
macaddr inet cidr text varchar char bytea bit varbit\
29
- numeric rum_weight expr
29
+ numeric rum_weight expr array
30
30
31
31
TAP_TESTS = 1
32
32
@@ -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,25 +48,35 @@ endif
57
48
$(EXTENSION ) --$(EXTVERSION ) .sql : rum_init.sql
58
49
cat$^ > $@
59
50
60
- ifeq ($(MAJORVERSION ) , 9.6)
61
- # arrays are not supported on 9.6
62
- else
63
- REGRESS += array
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
64
67
endif
65
68
66
- # For 9.6-11 we have to make specific target with tap tests
69
+ # --------------------------------------------------------
70
+ # Make conditional targets to save backward compatibility
71
+ # with PG11, PG10 and PG9.6.
72
+ # --------------------------------------------------------
67
73
ifeq ($(MAJORVERSION ) ,$(filter 9.6% 10% 11% ,$(MAJORVERSION ) ) )
68
- wal-check : temp-install
69
- $(prove_check )
70
74
71
- check : wal-check
75
+ # arrays are not supported on 9.6
76
+ ifeq ($(MAJORVERSION ) , 9.6)
77
+ REGRESS :=$(filter-out array,$(REGRESS ) )
72
78
endif
73
79
74
- #
75
- # Make conditional targets to save backward compatibility with PG11, PG10 and PG9.6.
76
- #
77
- ifeq ($(MAJORVERSION ) ,$(filter 9.6% 10% 11% ,$(MAJORVERSION ) ) )
78
-
79
80
install : installincludes
80
81
81
82
installincludes :
@@ -99,4 +100,9 @@ isolationcheck: | submake-isolation submake-rum temp-install
99
100
$(pg_isolation_regress_check ) \
100
101
--temp-config$(top_srcdir ) /contrib/rum/logical.conf\
101
102
$(ISOLATIONCHECKS )
102
- endif
103
+
104
+ # For 9.6-11 we have to make specific target with tap tests
105
+ check : temp-install
106
+ $(prove_check )
107
+
108
+ endif