We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53952e7 commit 431cdb7Copy full SHA for 431cdb7
1 file changed
Makefile
@@ -22,8 +22,15 @@ TESTS = 01_username 02_password 03_rename 04_alter_pwd \
22
23
REGRESS = $(patsubst test/sql/%.sql,%,$(TESTS))
24
25
-TAP_TESTS = 1
26
-
27
PG_CONFIG = pg_config
+
+# Extract the major version number
28
+PG_MAJORVERSION := $(shell $(PG_CONFIG) --version | sed -e 's/^[a-zA-Z ]*//' -e 's/\..*//')
29
30
+# Check if major version is greater than or equal to 15 to run tap test
31
+ifeq ($(shell test $(PG_MAJORVERSION) -ge 15; echo $$?),0)
32
+ TAP_TESTS = 1
33
+endif
34
35
PGXS := $(shell $(PG_CONFIG) --pgxs)
36
include $(PGXS)
0 commit comments