Move regression tests from ./bin/ to ./regress/
This commit is contained in:
27
bin/Makefile
27
bin/Makefile
@ -8,38 +8,11 @@
|
||||
|
||||
PG_CONFIG ?= pg_config
|
||||
|
||||
# version as a number, e.g. 9.1.4 -> 901
|
||||
VERSION := $(shell $(PG_CONFIG) --version | awk '{print $$2}')
|
||||
INTVERSION := $(shell echo $$(($$(echo $(VERSION) | sed -E 's/([0-9]+)\.([0-9]+).*/\1*100+\2/'))))
|
||||
|
||||
SRCS = pg_repack.c pgut/pgut.c pgut/pgut-fe.c
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
PROGRAM = pg_repack
|
||||
|
||||
|
||||
#
|
||||
# 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
|
||||
|
||||
|
||||
# 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/')
|
||||
|
Reference in New Issue
Block a user