1997-01-18 09:01:32 +01:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile--
|
|
|
|
# Makefile for regress (the regression test)
|
|
|
|
#
|
|
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# IDENTIFICATION
|
1999-06-10 19:49:32 +02:00
|
|
|
# $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.18 1999/06/10 17:49:29 wieck Exp $
|
1997-01-18 09:01:32 +01:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
SRCDIR= ../..
|
|
|
|
include ../../Makefile.global
|
|
|
|
|
1997-07-29 16:09:11 +02:00
|
|
|
CFLAGS+= -I$(LIBPQDIR) -I../../include $(CFLAGS_SL)
|
1997-01-18 09:01:32 +01:00
|
|
|
|
|
|
|
LDADD+= -L$(LIBPQDIR) -lpq
|
|
|
|
|
|
|
|
#
|
|
|
|
# DLOBJS is the dynamically-loaded object file. The regression test uses
|
|
|
|
# this when it does a CREATE FUNCTION ... LANGUAGE 'C').
|
|
|
|
#
|
|
|
|
DLOBJS= regress$(DLSUFFIX)
|
|
|
|
|
|
|
|
#
|
|
|
|
# ... plus test query inputs
|
|
|
|
#
|
|
|
|
# INFILES is the files the regression test uses for input.
|
1997-04-12 11:34:31 +02:00
|
|
|
INFILES= $(DLOBJS)
|
|
|
|
|
1997-01-18 09:01:32 +01:00
|
|
|
#
|
|
|
|
# plus exports files
|
|
|
|
#
|
|
|
|
ifdef EXPSUFF
|
|
|
|
INFILES+= $(DLOBJS:.o=$(EXPSUFF))
|
|
|
|
endif
|
|
|
|
|
1999-06-10 19:49:32 +02:00
|
|
|
#
|
|
|
|
# huge extra tests run in target bigtest
|
|
|
|
#
|
|
|
|
EXTRA_TESTS = numeric_big
|
|
|
|
|
1997-01-18 09:01:32 +01:00
|
|
|
#
|
|
|
|
# prepare to run the test (including clean-up after the last run)
|
|
|
|
#
|
|
|
|
all: $(INFILES)
|
1997-06-06 03:35:57 +02:00
|
|
|
cd input; $(MAKE) all; cd ..
|
|
|
|
cd output; $(MAKE) all; cd ..
|
1999-01-17 07:20:06 +01:00
|
|
|
#ifneq ($(PORTNAME), win)
|
1997-10-17 11:59:09 +02:00
|
|
|
$(MAKE) -C ../../../contrib/spi REFINT_VERBOSE=1 refint$(DLSUFFIX) \
|
|
|
|
autoinc$(DLSUFFIX)
|
1999-01-17 07:20:06 +01:00
|
|
|
#else
|
|
|
|
# cat /dev/null > ../../../contrib/spi/refint$(DLSUFFIX)
|
|
|
|
# cat /dev/null > ../../../contrib/spi/autoinc$(DLSUFFIX)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifeq ($(PORTNAME), win)
|
|
|
|
#regress.dll: regress.c
|
|
|
|
# cat /dev/null > $@
|
|
|
|
#endif
|
1997-01-18 09:01:32 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# run the test
|
|
|
|
#
|
1997-04-26 07:45:48 +02:00
|
|
|
runtest: $(INFILES)
|
1999-01-17 07:20:06 +01:00
|
|
|
ifneq ($(PORTNAME), win)
|
|
|
|
MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
|
|
|
|
$(SHELL) ./regress.sh $(PORTNAME) 2>&1 | tee regress.out
|
|
|
|
else
|
1998-07-26 06:31:41 +02:00
|
|
|
MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
|
1999-01-17 07:20:06 +01:00
|
|
|
./regress.sh $(PORTNAME) 2>&1 | tee regress.out
|
1999-06-10 19:49:32 +02:00
|
|
|
endif
|
|
|
|
@echo "ACTUAL RESULTS OF REGRESSION TEST ARE NOW IN FILE regress.out"
|
|
|
|
@echo ""
|
|
|
|
@echo "To run the optional huge test(s) too type 'make bigtest'"
|
|
|
|
@echo "These actually are: $(EXTRA_TESTS)"
|
|
|
|
|
|
|
|
#
|
|
|
|
# run the test including the huge extra tests
|
|
|
|
#
|
|
|
|
bigtest: $(INFILES)
|
|
|
|
ifneq ($(PORTNAME), win)
|
|
|
|
MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
|
|
|
|
$(SHELL) ./regress.sh $(PORTNAME) $(EXTRA_TESTS) 2>&1 | tee regress.out
|
|
|
|
else
|
|
|
|
MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
|
|
|
|
./regress.sh $(PORTNAME) $(EXTRA_TESTS) 2>&1 | tee regress.out
|
1999-01-17 07:20:06 +01:00
|
|
|
endif
|
1997-01-18 09:01:32 +01:00
|
|
|
@echo "ACTUAL RESULTS OF REGRESSION TEST ARE NOW IN FILE regress.out"
|
|
|
|
|
|
|
|
clean:
|
1999-01-17 07:20:06 +01:00
|
|
|
rm -f $(INFILES) regress.out regress.o regression.diffs
|
|
|
|
ifeq ($(PORTNAME), win)
|
|
|
|
rm -f regress.def
|
|
|
|
endif
|
1997-04-26 07:45:48 +02:00
|
|
|
$(MAKE) -C sql clean
|
|
|
|
$(MAKE) -C expected clean
|
1997-04-26 08:31:55 +02:00
|
|
|
$(MAKE) -C results clean
|
1998-01-01 06:37:29 +01:00
|
|
|
$(MAKE) -C ../../../contrib/spi clean
|