Streamline tests to run only on supported versions
This commit is contained in:
parent
914d1c4b3d
commit
329f30e3ce
@ -17,26 +17,8 @@ INTVERSION := $(shell echo $$(($$(echo $(VERSION) | sed 's/\([[:digit:]]\{1,\}\)
|
||||
# Test suite
|
||||
#
|
||||
|
||||
ifeq ($(shell echo $$(($(INTVERSION) >= 901))),1)
|
||||
REGRESS := init-extension
|
||||
else
|
||||
REGRESS := init-legacy
|
||||
endif
|
||||
|
||||
# plpgsql not available by default on pg < 9.0
|
||||
ifeq ($(shell echo $$(($(INTVERSION) < 900))),1)
|
||||
REGRESS += plpgsql
|
||||
endif
|
||||
|
||||
REGRESS += repack tablespace
|
||||
|
||||
# This test depends on collate, not supported before 9.1
|
||||
ifeq ($(shell echo $$(($(INTVERSION) >= 901))),1)
|
||||
REGRESS += issue3
|
||||
endif
|
||||
|
||||
REGRESS := init-extension repack tablespace issue3
|
||||
|
||||
USE_PGXS = 1 # use pgxs if not in contrib directory
|
||||
PG_CONFIG = pg_config
|
||||
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
||||
include $(PGXS)
|
||||
|
@ -1,3 +0,0 @@
|
||||
SET client_min_messages = warning;
|
||||
\set ECHO none
|
||||
RESET client_min_messages;
|
@ -1 +0,0 @@
|
||||
CREATE LANGUAGE plpgsql;
|
@ -1,5 +0,0 @@
|
||||
SET client_min_messages = warning;
|
||||
\set ECHO none
|
||||
\i ../lib/pg_repack.sql
|
||||
\set ECHO all
|
||||
RESET client_min_messages;
|
@ -1 +0,0 @@
|
||||
CREATE LANGUAGE plpgsql;
|
Loading…
x
Reference in New Issue
Block a user