blob: 7162ba4420cc15acb9a9164012a71a1b68f0bbc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
#-------------------------------------------------------------------------
#
# GNUmakefile--
# Makefile for regress (the regression tests)
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.22 2000/07/23 13:01:10 petere Exp $
#
#-------------------------------------------------------------------------
subdir = src/test/regress
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global
CONTRIB= $(top_builddir)/contrib
HOST := $(shell $(top_srcdir)/config/config.guess)
CFLAGS+= -I$(LIBPQDIR) $(CFLAGS_SL)
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.
INFILES= $(DLOBJS)
#
# plus exports files
#
ifdef EXPSUFF
INFILES+= $(DLOBJS:.o=$(EXPSUFF))
endif
#
# huge extra tests run in target bigtest
#
EXTRA_TESTS = numeric_big
#
# prepare to run the tests
#
all: $(INFILES)
cd input; $(MAKE) all; cd ..
cd output; $(MAKE) all; cd ..
#ifneq ($(PORTNAME), win)
$(MAKE) -C $(CONTRIB)/spi REFINT_VERBOSE=1 \
refint$(DLSUFFIX) autoinc$(DLSUFFIX)
#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
#
# run the tests
#
runtest: $(INFILES)
ifneq ($(PORTNAME), win)
MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
$(SHELL) ./regress.sh $(HOST) 2>&1 | tee regress.out
else
MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
./regress.sh $(HOST) 2>&1 | tee regress.out
endif
@echo "ACTUAL RESULTS OF REGRESSION TEST ARE NOW IN FILE regress.out"
@echo ""
@echo "To run the optional big test(s) too, type 'make bigtest'"
@echo "These big tests can take over an hour to complete"
@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 $(HOST) $(EXTRA_TESTS) 2>&1 | tee regress.out
else
MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
./regress.sh $(HOST) $(EXTRA_TESTS) 2>&1 | tee regress.out
endif
@echo "ACTUAL RESULTS OF REGRESSION TEST ARE NOW IN FILE regress.out"
#
# run the parallel test suite
#
runcheck: $(INFILES)
ifneq ($(PORTNAME), win)
MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
$(SHELL) ./run_check.sh $(HOST)
else
MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
./run_check.sh $(HOST)
endif
@echo "ACTUAL RESULTS OF REGRESSION TEST ARE NOW IN FILES run_check.out"
@echo "AND regress.out"
@echo ""
@echo "To run the optional big test(s) too, type 'make bigcheck'"
@echo "These big tests can take over an hour to complete"
@echo "These actually are: $(EXTRA_TESTS)"
#
# run the test including the huge extra tests
#
bigcheck: $(INFILES)
ifneq ($(PORTNAME), win)
MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
$(SHELL) ./run_check.sh $(HOST) $(EXTRA_TESTS)
else
MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
./run_check.sh $(HOST) $(EXTRA_TESTS)
endif
@echo "ACTUAL RESULTS OF REGRESSION TEST ARE NOW IN FILES run_check.out"
@echo "AND regress.out"
clean:
rm -f $(INFILES) regress.out run_check.out regress.o regression.diffs
ifeq ($(PORTNAME), win)
rm -f regress.def
endif
$(MAKE) -C sql clean
$(MAKE) -C expected clean
$(MAKE) -C results clean
$(MAKE) -C $(CONTRIB)/spi clean
rm -rf tmp_check
|