Tests on COLLATE only run on PG versions supporting it

This commit is contained in:
Daniele Varrazzo
2013-04-18 00:34:44 +01:00
parent c314cbda75
commit dd06f25930
5 changed files with 91 additions and 81 deletions

View File

@ -16,6 +16,11 @@ SRCS = pg_repack.c pgut/pgut.c pgut/pgut-fe.c
OBJS = $(SRCS:.c=.o)
PROGRAM = pg_repack
#
# Test suite
#
ifeq ($(shell echo $$(($(INTVERSION) >= 90100))),1)
REGRESS = init-extension
else
@ -24,6 +29,12 @@ endif
REGRESS += repack tablespace
# This test depends on collate, not supported before 9.0
ifeq ($(shell echo $$(($(INTVERSION) >= 90000))),1)
REGRESS += issue3
endif
# The version number of the program. It should be the same of the library.
REPACK_VERSION = $(shell grep '"version":' ../META.json | head -1 \
| sed -e 's/[ ]*"version":[ ]*"\(.*\)",/\1/')