head	1.83;
access;
symbols
	REL9_0_0:1.83
	REL9_1_ALPHA1:1.83
	REL9_0_RC1:1.83
	REL9_0_BETA4:1.83
	REL9_0_STABLE:1.83.0.2
	REL9_0_BETA3:1.83
	REL9_0_BETA2:1.82
	REL7_4_29:1.43.2.1
	REL8_0_25:1.48.4.2
	REL8_1_21:1.53
	REL8_2_17:1.62
	REL8_3_11:1.71
	REL8_4_4:1.77
	REL9_0_BETA1:1.82
	REL9_0_ALPHA5_BRANCH:1.82.0.4
	REL9_0_ALPHA5:1.82
	REL7_4_28:1.43.2.1
	REL8_0_24:1.48.4.2
	REL8_1_20:1.53
	REL8_2_16:1.62
	REL8_3_10:1.71
	REL8_4_3:1.77
	REL9_0_ALPHA4:1.82
	REL9_0_ALPHA4_BRANCH:1.82.0.2
	REL8_5_ALPHA3:1.81
	REL8_5_ALPHA3_BRANCH:1.81.0.2
	REL7_4_27:1.43.2.1
	REL8_0_23:1.48.4.2
	REL8_1_19:1.53
	REL8_2_15:1.62
	REL8_3_9:1.71
	REL8_4_2:1.77
	REL8_5_ALPHA2:1.78
	REL8_5_ALPHA2_BRANCH:1.78.0.2
	REL7_4_26:1.43.2.1
	REL8_0_22:1.48.4.2
	REL8_1_18:1.53
	REL8_2_14:1.62
	REL8_3_8:1.71
	REL8_4_1:1.77
	REL8_5_ALPHA1:1.77
	REL8_5_ALPHA1_BRANCH:1.77.0.4
	REL8_4_STABLE:1.77.0.2
	REL8_4_0:1.77
	REL8_4_RC2:1.77
	REL8_4_RC1:1.77
	REL8_4_BETA2:1.77
	REL8_4_BETA1:1.77
	REL7_4_25:1.43.2.1
	REL8_0_21:1.48.4.2
	REL8_1_17:1.53
	REL8_2_13:1.62
	REL8_3_7:1.71
	REL7_4_24:1.43.2.1
	REL8_0_20:1.48.4.2
	REL8_1_16:1.53
	REL8_2_12:1.62
	REL8_3_6:1.71
	REL7_4_23:1.43.2.1
	REL8_0_19:1.48.4.2
	REL8_1_15:1.53
	REL8_2_11:1.62
	REL8_3_5:1.71
	REL7_4_22:1.43.2.1
	REL8_0_18:1.48.4.2
	REL8_1_14:1.53
	REL8_2_10:1.62
	REL8_3_4:1.71
	REL7_4_21:1.43.2.1
	REL8_0_17:1.48.4.2
	REL8_1_13:1.53
	REL8_2_9:1.62
	REL8_3_3:1.71
	REL7_4_20:1.43.2.1
	REL8_0_16:1.48.4.2
	REL8_1_12:1.53
	REL8_2_8:1.62
	REL8_3_2:1.71
	REL8_2_7:1.62
	REL8_3_1:1.71
	REL8_3_STABLE:1.71.0.2
	REL8_3_0:1.71
	REL8_3_RC2:1.71
	REL7_3_21:1.41
	REL7_4_19:1.43.2.1
	REL8_0_15:1.48.4.2
	REL8_1_11:1.53
	REL8_2_6:1.62
	REL8_3_RC1:1.71
	REL8_3_BETA4:1.70
	REL8_3_BETA3:1.70
	REL8_3_BETA2:1.70
	REL8_3_BETA1:1.70
	REL7_3_20:1.41
	REL7_4_18:1.43.2.1
	REL8_0_14:1.48.4.2
	REL8_1_10:1.53
	REL8_2_5:1.62
	REL7_3_19:1.41
	REL7_4_17:1.43.2.1
	REL8_0_13:1.48.4.2
	REL8_1_9:1.53
	REL8_2_4:1.62
	REL8_0_12:1.48.4.2
	REL8_1_8:1.53
	REL8_2_3:1.62
	REL7_3_18:1.41
	REL7_4_16:1.43.2.1
	REL8_0_11:1.48.4.2
	REL8_1_7:1.53
	REL8_2_2:1.62
	REL8_0_10:1.48.4.2
	REL8_1_6:1.53
	REL8_2_1:1.62
	REL7_4_15:1.43.2.1
	REL7_3_17:1.41
	REL8_2_STABLE:1.62.0.2
	REL8_2_0:1.62
	REL8_2_RC1:1.62
	REL8_2_BETA3:1.62
	REL8_2_BETA2:1.62
	REL8_1_5:1.53
	REL8_0_9:1.48.4.2
	REL7_4_14:1.43.2.1
	REL7_3_16:1.41
	REL8_2_BETA1:1.62
	REL7_3_15:1.41
	REL7_4_13:1.43.2.1
	REL8_0_8:1.48.4.2
	REL8_1_4:1.53
	REL7_3_14:1.41
	REL7_4_12:1.43.2.1
	REL8_0_7:1.48.4.2
	REL8_1_3:1.53
	REL7_3_13:1.41
	REL7_4_11:1.43.2.1
	REL8_0_6:1.48.4.2
	REL8_1_2:1.53
	REL7_3_12:1.41
	REL7_4_10:1.43.2.1
	REL8_0_5:1.48.4.2
	REL8_1_1:1.53
	REL8_1_STABLE:1.53.0.2
	REL8_1_0:1.53
	REL8_1_0RC1:1.52
	REL8_1_0BETA4:1.52
	REL8_1_0BETA3:1.52
	REL7_3_11:1.41
	REL7_4_9:1.43.2.1
	REL8_0_4:1.48.4.1
	REL8_1_0BETA2:1.52
	REL8_1_0BETA1:1.52
	REL7_2_8:1.36
	REL7_3_10:1.41
	REL7_4_8:1.43
	REL8_0_3:1.48
	REL8_0_2:1.48
	REL7_2_7:1.36
	REL7_3_9:1.41
	REL7_4_7:1.43
	REL8_0_1:1.48
	REL8_0_STABLE:1.48.0.4
	REL8_0_0:1.48.0.2
	REL8_0_0RC5:1.48
	REL8_0_0RC4:1.48
	REL8_0_0RC3:1.48
	REL8_0_0RC2:1.48
	REL8_0_0RC1:1.48
	REL8_0_0BETA5:1.48
	REL8_0_0BETA4:1.47
	REL7_4_6:1.43
	REL7_3_8:1.41
	REL7_2_6:1.36
	REL8_0_0BETA3:1.47
	REL8_0_0BETA2:1.47
	REL7_2_5:1.36
	REL7_4_5:1.43
	REL7_3_7:1.41
	REL7_4_4:1.43
	REL8_0_0BETA1:1.47
	REL7_4_3:1.43
	REL7_4_2:1.43
	REL7_3_6:1.41
	REL7_4_1:1.43
	REL7_3_5:1.41
	REL7_4:1.43
	REL7_4_RC2:1.43
	REL7_4_STABLE:1.43.0.2
	REL7_4_RC1:1.43
	REL7_4_BETA5:1.42
	REL7_4_BETA4:1.42
	REL7_4_BETA3:1.42
	REL7_4_BETA2:1.42
	WIN32_DEV:1.42.0.2
	REL7_4_BETA1:1.42
	REL7_3_4:1.41
	REL7_3_2:1.41
	REL7_2_4:1.36
	REL7_3_STABLE:1.41.0.2
	REL7_2_3:1.36
	REL7_2_STABLE:1.36.0.2
	REL7_2:1.36
	REL7_2_RC2:1.36
	REL7_2_RC1:1.36
	REL7_2_BETA5:1.36
	REL7_2_BETA4:1.35
	REL7_2_BETA3:1.35
	REL7_2_BETA2:1.35
	REL7_2_BETA1:1.35
	REL7_1_2:1.34
	REL7_1_STABLE:1.34.0.2
	REL7_1_BETA:1.32
	REL7_1_BETA3:1.32
	REL7_1_BETA2:1.32
	REL7_1:1.34
	REL6_5_PATCHES:1.19.0.2
	REL6_5:1.19
	REL6_4:1.16.0.2
	release-6-3:1.14;
locks; strict;
comment	@# @;


1.83
date	2010.07.05.18.54.38;	author tgl;	state Exp;
branches;
next	1.82;

1.82
date	2010.01.02.16.58.13;	author momjian;	state Exp;
branches;
next	1.81;

1.81
date	2009.12.19.01.32.45;	author sriggs;	state Exp;
branches;
next	1.80;

1.80
date	2009.12.18.21.28.42;	author momjian;	state Exp;
branches;
next	1.79;

1.79
date	2009.10.26.21.11.22;	author petere;	state Exp;
branches;
next	1.78;

1.78
date	2009.08.26.22.24.43;	author petere;	state Exp;
branches;
next	1.77;

1.77
date	2009.01.01.17.24.04;	author momjian;	state Exp;
branches;
next	1.76;

1.76
date	2008.11.28.12.45.34;	author petere;	state Exp;
branches;
next	1.75;

1.75
date	2008.10.01.22.38.57;	author petere;	state Exp;
branches;
next	1.74;

1.74
date	2008.05.30.00.04.32;	author tgl;	state Exp;
branches;
next	1.73;

1.73
date	2008.04.07.14.15.58;	author petere;	state Exp;
branches;
next	1.72;

1.72
date	2008.03.18.16.24.50;	author petere;	state Exp;
branches;
next	1.71;

1.71
date	2008.01.01.19.46.00;	author momjian;	state Exp;
branches;
next	1.70;

1.70
date	2007.09.09.22.53.33;	author adunstan;	state Exp;
branches;
next	1.69;

1.69
date	2007.09.09.20.40.54;	author adunstan;	state Exp;
branches;
next	1.68;

1.68
date	2007.06.12.11.07.32;	author mha;	state Exp;
branches;
next	1.67;

1.67
date	2007.03.13.22.56.48;	author tgl;	state Exp;
branches;
next	1.66;

1.66
date	2007.02.09.15.56.00;	author petere;	state Exp;
branches;
next	1.65;

1.65
date	2007.01.31.19.38.50;	author neilc;	state Exp;
branches;
next	1.64;

1.64
date	2007.01.19.16.42.24;	author alvherre;	state Exp;
branches;
next	1.63;

1.63
date	2007.01.05.22.20.03;	author momjian;	state Exp;
branches;
next	1.62;

1.62
date	2006.07.21.00.24.04;	author tgl;	state Exp;
branches;
next	1.61;

1.61
date	2006.07.20.01.16.57;	author tgl;	state Exp;
branches;
next	1.60;

1.60
date	2006.07.19.17.02.59;	author tgl;	state Exp;
branches;
next	1.59;

1.59
date	2006.07.19.04.02.31;	author tgl;	state Exp;
branches;
next	1.58;

1.58
date	2006.07.19.02.37.00;	author tgl;	state Exp;
branches;
next	1.57;

1.57
date	2006.03.05.15.59.11;	author momjian;	state Exp;
branches;
next	1.56;

1.56
date	2006.02.27.16.09.50;	author petere;	state Exp;
branches;
next	1.55;

1.55
date	2005.12.09.21.19.36;	author petere;	state Exp;
branches;
next	1.54;

1.54
date	2005.11.28.12.03.56;	author alvherre;	state Exp;
branches;
next	1.53;

1.53
date	2005.11.01.15.09.11;	author adunstan;	state Exp;
branches;
next	1.52;

1.52
date	2005.07.28.04.32.32;	author tgl;	state Exp;
branches;
next	1.51;

1.51
date	2005.07.25.00.58.27;	author tgl;	state Exp;
branches;
next	1.50;

1.50
date	2005.07.17.18.28.45;	author tgl;	state Exp;
branches;
next	1.49;

1.49
date	2005.05.11.21.52.03;	author tgl;	state Exp;
branches;
next	1.48;

1.48
date	2004.11.17.18.05.06;	author tgl;	state Exp;
branches
	1.48.4.1;
next	1.47;

1.47
date	2004.06.18.06.14.25;	author tgl;	state Exp;
branches;
next	1.46;

1.46
date	2004.03.03.04.22.47;	author momjian;	state Exp;
branches;
next	1.45;

1.45
date	2003.12.23.21.56.21;	author tgl;	state Exp;
branches;
next	1.44;

1.44
date	2003.11.29.19.52.14;	author pgsql;	state Exp;
branches;
next	1.43;

1.43
date	2003.11.02.21.56.15;	author tgl;	state Exp;
branches
	1.43.2.1;
next	1.42;

1.42
date	2003.03.21.17.18.34;	author petere;	state Exp;
branches;
next	1.41;

1.41
date	2002.10.03.18.40.02;	author tgl;	state Exp;
branches;
next	1.40;

1.40
date	2002.09.05.18.28.46;	author petere;	state Exp;
branches;
next	1.39;

1.39
date	2002.09.03.21.45.44;	author petere;	state Exp;
branches;
next	1.38;

1.38
date	2002.07.02.05.43.34;	author momjian;	state Exp;
branches;
next	1.37;

1.37
date	2002.07.02.04.53.52;	author momjian;	state Exp;
branches;
next	1.36;

1.36
date	2002.01.08.21.00.30;	author tgl;	state Exp;
branches;
next	1.35;

1.35
date	2001.09.16.16.11.11;	author petere;	state Exp;
branches;
next	1.34;

1.34
date	2001.04.04.21.15.56;	author tgl;	state Exp;
branches;
next	1.33;

1.33
date	2001.02.20.19.20.30;	author petere;	state Exp;
branches;
next	1.32;

1.32
date	2000.11.22.13.16.24;	author petere;	state Exp;
branches;
next	1.31;

1.31
date	2000.11.21.23.40.28;	author petere;	state Exp;
branches;
next	1.30;

1.30
date	2000.10.27.20.00.19;	author petere;	state Exp;
branches;
next	1.29;

1.29
date	2000.10.23.21.44.07;	author petere;	state Exp;
branches;
next	1.28;

1.28
date	2000.10.20.21.04.25;	author petere;	state Exp;
branches;
next	1.27;

1.27
date	2000.10.18.16.16.14;	author momjian;	state Exp;
branches;
next	1.26;

1.26
date	2000.10.07.20.23.03;	author petere;	state Exp;
branches;
next	1.25;

1.25
date	2000.10.02.06.07.25;	author tgl;	state Exp;
branches;
next	1.24;

1.24
date	2000.09.29.17.17.37;	author petere;	state Exp;
branches;
next	1.23;

1.23
date	2000.08.31.16.12.26;	author petere;	state Exp;
branches;
next	1.22;

1.22
date	2000.07.23.13.01.10;	author petere;	state Exp;
branches;
next	1.21;

1.21
date	2000.01.09.07.53.58;	author tgl;	state dead;
branches;
next	1.20;

1.20
date	99.11.19.18.51.48;	author wieck;	state Exp;
branches;
next	1.19;

1.19
date	99.06.28.18.40.34;	author momjian;	state Exp;
branches;
next	1.18;

1.18
date	99.06.10.17.49.29;	author wieck;	state Exp;
branches;
next	1.17;

1.17
date	99.01.17.06.19.57;	author momjian;	state Exp;
branches;
next	1.16;

1.16
date	98.07.26.04.31.41;	author scrappy;	state Exp;
branches;
next	1.15;

1.15
date	98.03.15.07.39.01;	author scrappy;	state Exp;
branches;
next	1.14;

1.14
date	98.01.17.23.39.22;	author scrappy;	state Exp;
branches;
next	1.13;

1.13
date	98.01.01.05.37.29;	author thomas;	state Exp;
branches;
next	1.12;

1.12
date	97.10.17.09.57.49;	author vadim;	state Exp;
branches;
next	1.11;

1.11
date	97.09.24.08.35.07;	author vadim;	state Exp;
branches;
next	1.10;

1.10
date	97.09.11.09.13.27;	author vadim;	state Exp;
branches;
next	1.9;

1.9
date	97.07.29.14.09.11;	author momjian;	state Exp;
branches;
next	1.8;

1.8
date	97.06.06.01.35.57;	author scrappy;	state Exp;
branches;
next	1.7;

1.7
date	97.04.27.02.56.03;	author scrappy;	state Exp;
branches;
next	1.6;

1.6
date	97.04.26.06.31.55;	author scrappy;	state Exp;
branches;
next	1.5;

1.5
date	97.04.26.05.44.06;	author scrappy;	state Exp;
branches;
next	1.4;

1.4
date	97.04.12.09.34.31;	author scrappy;	state Exp;
branches;
next	1.3;

1.3
date	97.04.05.21.33.24;	author scrappy;	state Exp;
branches;
next	1.2;

1.2
date	97.04.05.21.24.06;	author scrappy;	state Exp;
branches;
next	1.1;

1.1
date	97.01.21.01.27.18;	author momjian;	state Exp;
branches;
next	;

1.43.2.1
date	2005.07.17.18.29.37;	author tgl;	state Exp;
branches;
next	;

1.48.4.1
date	2005.07.17.18.29.13;	author tgl;	state Exp;
branches;
next	1.48.4.2;

1.48.4.2
date	2005.11.01.15.32.52;	author adunstan;	state Exp;
branches;
next	;


desc
@@


1.83
log
@Split the LDFLAGS make variable into two parts: LDFLAGS is now used for
linking both executables and shared libraries, and we add on LDFLAGS_EX when
linking executables or LDFLAGS_SL when linking shared libraries.  This
provides a significantly cleaner way of dealing with link-time switches than
the former behavior.  Also, make sure that the various platform-specific
%.so: %.o rules incorporate LDFLAGS and LDFLAGS_SL; most of them missed that
before.  (I did not add these variables for the platforms that invoke $(LD)
directly, however.  It's not clear if we can do that safely, since for the
most part we assume these variables use CC command-line syntax.)

Per gripe from Aaron Swenson and subsequent investigation.
@
text
@#-------------------------------------------------------------------------
#
# GNUmakefile--
#    Makefile for src/test/regress (the regression tests)
#
# Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.82 2010/01/02 16:58:13 momjian Exp $
#
#-------------------------------------------------------------------------

subdir = src/test/regress
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global

# file with extra config for temp build
TEMP_CONF =
ifdef TEMP_CONFIG
TEMP_CONF += --temp-config=$(TEMP_CONFIG)
endif

# where to find psql for testing an existing installation
PSQLDIR = $(bindir)

# default encoding
MULTIBYTE = SQL_ASCII

# maximum simultaneous connections for parallel tests
MAXCONNOPT =
ifdef MAX_CONNECTIONS
MAXCONNOPT += --max-connections=$(MAX_CONNECTIONS)
endif

# locale
NOLOCALE =
ifdef NO_LOCALE
NOLOCALE += --no-locale
endif

# stuff to pass into build of pg_regress
EXTRADEFS = '-DHOST_TUPLE="$(host_tuple)"' \
	'-DMAKEPROG="$(MAKE)"' \
	'-DSHELLPROG="$(SHELL)"' \
	'-DDLSUFFIX="$(DLSUFFIX)"'

##
## Prepare for tests
##

# Build regression test driver

all: submake-libpgport pg_regress$(X)

pg_regress$(X): pg_regress.o pg_regress_main.o
	$(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@@

# dependencies ensure that path changes propagate
pg_regress.o: pg_regress.c $(top_builddir)/src/port/pg_config_paths.h
	$(CC) $(CFLAGS) $(CPPFLAGS) -I$(top_builddir)/src/port $(EXTRADEFS) -c -o $@@ $<

$(top_builddir)/src/port/pg_config_paths.h: $(top_builddir)/src/Makefile.global
	$(MAKE) -C $(top_builddir)/src/port pg_config_paths.h

install: all installdirs
	$(INSTALL_PROGRAM) pg_regress$(X) '$(DESTDIR)$(pgxsdir)/$(subdir)/pg_regress$(X)'

installdirs:
	$(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(subdir)'

uninstall:
	rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/pg_regress$(X)'


# Build dynamically-loaded object file for CREATE FUNCTION ... LANGUAGE C.

NAME = regress
OBJS = regress.o

include $(top_srcdir)/src/Makefile.shlib

all: all-lib

# Test input and expected files.  These are created by pg_regress itself, so we
# don't have a rule to create them.  We do need rules to clean them however.
input_files = $(patsubst $(srcdir)/input/%.source,sql/%.sql, $(wildcard $(srcdir)/input/*.source))
output_files := $(patsubst $(srcdir)/output/%.source,expected/%.out, $(wildcard $(srcdir)/output/*.source))


# not installed by default

regress_data_files = \
	$(filter-out $(addprefix $(srcdir)/,$(output_files)),$(wildcard $(srcdir)/expected/*.out)) \
	$(wildcard $(srcdir)/input/*.source) \
	$(wildcard $(srcdir)/output/*.source) \
	$(filter-out $(addprefix $(srcdir)/,$(input_files)),$(wildcard $(srcdir)/sql/*.sql)) \
	$(wildcard $(srcdir)/data/*.data) \
	$(srcdir)/parallel_schedule $(srcdir)/serial_schedule $(srcdir)/resultmap

install-tests: all install install-lib installdirs-tests
	$(MAKE) -C $(top_builddir)/contrib/spi install
	for file in $(regress_data_files); do \
	  $(INSTALL_DATA) $$file '$(DESTDIR)$(pkglibdir)/regress/'$$file || exit; \
	done

installdirs-tests: installdirs
	$(MKDIR_P)  $(patsubst $(srcdir)/%/,'$(DESTDIR)$(pkglibdir)/regress/%',$(sort $(dir $(regress_data_files))))


# Get some extra C modules from contrib/spi...

all: refint$(DLSUFFIX) autoinc$(DLSUFFIX)

refint$(DLSUFFIX): $(top_builddir)/contrib/spi/refint$(DLSUFFIX)
	cp $< $@@

autoinc$(DLSUFFIX): $(top_builddir)/contrib/spi/autoinc$(DLSUFFIX)
	cp $< $@@

$(top_builddir)/contrib/spi/refint$(DLSUFFIX): $(top_srcdir)/contrib/spi/refint.c
	$(MAKE) -C $(top_builddir)/contrib/spi refint$(DLSUFFIX)

$(top_builddir)/contrib/spi/autoinc$(DLSUFFIX): $(top_srcdir)/contrib/spi/autoinc.c
	$(MAKE) -C $(top_builddir)/contrib/spi autoinc$(DLSUFFIX)


# Tablespace setup

all: tablespace-setup

.PHONY: tablespace-setup
tablespace-setup:
	rm -rf ./testtablespace
	mkdir ./testtablespace


##
## Run tests
##

pg_regress_call = ./pg_regress --inputdir=$(srcdir) --dlpath=. --multibyte=$(MULTIBYTE) $(NOLOCALE)

check: all
	$(pg_regress_call) --temp-install=./tmp_check --top-builddir=$(top_builddir) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(TEMP_CONF)

installcheck: all
	$(pg_regress_call) --psqldir=$(PSQLDIR) --schedule=$(srcdir)/serial_schedule

installcheck-parallel: all
	$(pg_regress_call) --psqldir=$(PSQLDIR) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT)

standbycheck: all
	$(pg_regress_call) --psqldir=$(PSQLDIR) --schedule=$(srcdir)/standby_schedule --use-existing

# old interfaces follow...

runcheck: check
runtest: installcheck
runtest-parallel: installcheck-parallel

bigtest: all
	$(pg_regress_call) --psqldir=$(PSQLDIR) --schedule=$(srcdir)/serial_schedule numeric_big 

bigcheck: all
	$(pg_regress_call) --temp-install=./tmp_check --top-builddir=$(top_builddir) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) numeric_big


##
## Clean up
##

clean distclean maintainer-clean: clean-lib
# things built by `all' target
	rm -f $(OBJS) refint$(DLSUFFIX) autoinc$(DLSUFFIX) pg_regress_main.o pg_regress.o pg_regress$(X)
# things created by various check targets
	rm -f $(output_files) $(input_files)
	rm -rf testtablespace
	rm -rf results tmp_check log
	rm -f regression.diffs regression.out regress.out run_check.out
@


1.82
log
@Update copyright for the year 2010.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.81 2009/12/19 01:32:45 sriggs Exp $
d56 1
a56 1
	$(CC) $(CFLAGS) $^ $(LDFLAGS) $(LIBS) -o $@@
@


1.81
log
@Allow read only connections during recovery, known as Hot Standby.

Enabled by recovery_connections = on (default) and forcing archive recovery using a recovery.conf. Recovery processing now emulates the original transactions as they are replayed, providing full locking and MVCC behaviour for read only queries. Recovery must enter consistent state before connections are allowed, so there is a delay, typically short, before connections succeed. Replay of recovering transactions can conflict and in some cases deadlock with queries during recovery; these result in query cancellation after max_standby_delay seconds have expired. Infrastructure changes have minor effects on normal running, though introduce four new types of WAL record.

New test mode "make standbycheck" allows regression tests of static command behaviour on a standby server while in recovery. Typical and extreme dynamic behaviours have been checked via code inspection and manual testing. Few port specific behaviours have been utilised, though primary testing has been on Linux only so far.

This commit is the basic patch. Additional changes will follow in this release to enhance some aspects of behaviour, notably improved handling of conflicts, deadlock detection and query cancellation. Changes to VACUUM FULL are also required.

Simon Riggs, with significant and lengthy review by Heikki Linnakangas, including streamlined redesign of snapshot creation and two-phase commit.

Important contributions from Florian Pflug, Mark Kirkwood, Merlin Moncure, Greg Stark, Gianni Ciolli, Gabriele Bartolini, Hannu Krosing, Robert Haas, Tatsuo Ishii, Hiroyuki Yamada plus support and feedback from many other community members.
@
text
@d6 1
a6 1
# Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.80 2009/12/18 21:28:42 momjian Exp $
@


1.80
log
@Install server-side language PL/pgSQL by default.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.79 2009/10/26 21:11:22 petere Exp $
d152 2
@


1.79
log
@Check errors in for loop
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.78 2009/08/26 22:24:43 petere Exp $
d141 1
a141 1
pg_regress_call = ./pg_regress --inputdir=$(srcdir) --dlpath=. --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE)
@


1.78
log
@Update of install-sh, mkinstalldirs, and associated configury

Update install-sh to that from Autoconf 2.63, plus our Darwin-specific
changes (which I simplified a bit).  install-sh is now able to install
multiple files in one run, so we could simplify our makefiles sometime.

install-sh also now has a -d option to create directories, so we don't need
mkinstalldirs anymore.

Use AC_PROG_MKDIR_P in configure.in, so we can use mkdir -p when available
instead of install-sh -d.  For consistency with the rest of the world,
the corresponding make variable has been renamed from $(mkinstalldirs) to
$(MKDIR_P).
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.77 2009/01/01 17:24:04 momjian Exp $
d103 1
a103 1
	  $(INSTALL_DATA) $$file '$(DESTDIR)$(pkglibdir)/regress/'$$file; \
@


1.77
log
@Update copyright for 2009.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.76 2008/11/28 12:45:34 petere Exp $
d69 1
a69 1
	$(mkinstalldirs) '$(DESTDIR)$(pgxsdir)/$(subdir)'
d107 1
a107 1
	$(mkinstalldirs)  $(patsubst $(srcdir)/%/,'$(DESTDIR)$(pkglibdir)/regress/%',$(sort $(dir $(regress_data_files))))
@


1.76
log
@Reduce risk of accidentally running temp-install regression tests against
a mismatching installation.  Pick a default port number calculated from the
version number, and try a few times with other numbers if that one doesn't
work.  Check if we can connect to the port before starting our own postmaster,
to detect some other server already running there.  To simplify the code,
drop --temp-port option and use --port for both temp-install and pre-installed
case.
@
text
@d6 1
a6 1
# Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.75 2008/10/01 22:38:57 petere Exp $
@


1.75
log
@Allow pg_regress to be run outside the build tree.  Look for input files
in both input and output dir, to handle vpath builds more simply.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.74 2008/05/30 00:04:32 tgl Exp $
a16 3
# port number for temp-installation test postmaster
TEMP_PORT = 5$(DEF_PGPORT)

d144 1
a144 1
	$(pg_regress_call) --temp-install=./tmp_check --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(TEMP_CONF)
d163 1
a163 1
	$(pg_regress_call) --temp-install=./tmp_check --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) numeric_big
@


1.74
log
@Copy refint.so and autoinc.so into the src/test/regress directory during
"make all", and then reference them there during the actual tests.  This
makes the handling of these files more parallel to that of regress.so,
and in particular simplifies use of the regression tests outside the
original build tree.  The PGDG and Red Hat RPMs have been doing this via
patches for a very long time.  Inclusion of the change in core was requested
by Jrgen Austvik of Sun, and I can't see any reason not to.

I attempted to fix the MSVC scripts for this too, but they may need
further tweaking ...
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.73 2008/04/07 14:15:58 petere Exp $
d68 1
a68 1
install: pg_regress$(X)
d71 3
d89 19
a107 12
ifile_list := $(subst .source,, $(notdir $(wildcard $(top_srcdir)/$(subdir)/input/*.source)))
input_files  := $(foreach file, $(ifile_list), sql/$(file).sql)
ofile_list := $(subst .source,, $(notdir $(wildcard $(top_srcdir)/$(subdir)/output/*.source)))
output_files := $(foreach file, $(ofile_list), expected/$(file).out)

ifneq ($(PORTNAME),win32)
abs_srcdir := $(shell cd $(srcdir) && pwd)
abs_builddir := $(shell pwd)
else
abs_srcdir := $(shell cd $(srcdir) && pwd -W)
abs_builddir := $(shell pwd -W)
endif
d109 2
a110 15
# When doing a VPATH build, copy over the remaining .sql and .out
# files so that the driver script can find them.  We have to use an
# absolute path for the targets, because otherwise make will try to
# locate the missing files using VPATH, and will find them in
# $(srcdir), but the point here is that we want to copy them from
# $(srcdir) to the build directory.

ifdef VPATH
remaining_files_src := $(wildcard $(srcdir)/sql/*.sql) $(wildcard $(srcdir)/expected/*.out) $(srcdir)/resultmap
remaining_files_build := $(patsubst $(srcdir)/%, $(abs_builddir)/%, $(remaining_files_src))

all: $(remaining_files_build)
$(remaining_files_build): $(abs_builddir)/%: $(srcdir)/%
	ln -s $< $@@
endif
d144 2
d147 1
a147 1
	./pg_regress --temp-install=./tmp_check --top-builddir=$(top_builddir) --srcdir=$(abs_srcdir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE) $(TEMP_CONF)
d150 1
a150 1
	./pg_regress --psqldir=$(PSQLDIR) --schedule=$(srcdir)/serial_schedule --srcdir=$(abs_srcdir) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE)
d153 1
a153 1
	./pg_regress --psqldir=$(PSQLDIR) --schedule=$(srcdir)/parallel_schedule --srcdir=$(abs_srcdir) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE)
d163 1
a163 1
	./pg_regress --psqldir=$(PSQLDIR) --schedule=$(srcdir)/serial_schedule --srcdir=$(abs_srcdir) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) numeric_big 
d166 1
a166 1
	./pg_regress --temp-install=./tmp_check --top-builddir=$(top_builddir) --srcdir=$(abs_srcdir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE) numeric_big
d175 1
a175 2
	rm -f $(OBJS) refint$(DLSUFFIX) autoinc$(DLSUFFIX)
	rm -f $(output_files) $(input_files) pg_regress_main.o pg_regress.o pg_regress$(X)
d177 1
a180 6
ifeq ($(PORTNAME), cygwin)
	rm -f regress.def
endif
ifdef VPATH
	rm -f $(remaining_files_build)
endif
@


1.73
log
@Implement a few changes to how shared libraries and dynamically loadable
modules are built.  Foremost, it creates a solid distinction between these two
types of targets based on what had already been implemented and duplicated in
ad hoc ways before.  Specifically,

- Dynamically loadable modules no longer get a soname.  The numbers previously
set in the makefiles were dummy numbers anyway, and the presence of a soname
upset a few packaging tools, so it is nicer not to have one.

- The cumbersome detour taken on installation (build a libfoo.so.0.0.0 and
then override the rule to install foo.so instead) is removed.

- Lots of duplicated code simplified.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.72 2008/03/18 16:24:50 petere Exp $
a16 2
contribdir = $(top_builddir)/contrib

d116 9
a124 1
# And finally some extra C modules...
d126 5
a130 1
all: all-spi tablespace-setup
a131 3
.PHONY: all-spi
all-spi:
	$(MAKE) -C $(contribdir)/spi refint$(DLSUFFIX) autoinc$(DLSUFFIX)
d134 3
d142 1
d176 1
a176 2
	rm -f $(OBJS)
	$(MAKE) -C $(contribdir)/spi clean
@


1.72
log
@Catch all errors in for and while loops in makefiles.  Don't ignore any
errors in any commands, including in various clean targets that have so far
been handled inconsistently.  make -i is available to ignore all errors in
a consistent and official way.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.71 2008/01/01 19:46:00 momjian Exp $
a79 2
SO_MAJOR_VERSION= 0
SO_MINOR_VERSION= 0
a80 1
SHLIB_LINK = $(BE_DLLLIBS)
d84 1
a84 5
all: $(NAME)$(DLSUFFIX)

$(NAME)$(DLSUFFIX): $(shlib)
	rm -f $(NAME)$(DLSUFFIX)
	$(LN_S) $(shlib) $(NAME)$(DLSUFFIX)
d165 1
a165 1
	rm -f $(NAME)$(DLSUFFIX) $(OBJS)
@


1.71
log
@Update copyrights in source tree to 2008.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.70 2007/09/09 22:53:33 adunstan Exp $
d136 1
a136 1
	-rm -rf ./testtablespace
@


1.70
log
@fix typo in regression Makefile.
@
text
@d6 1
a6 1
# Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.69 2007/09/09 20:40:54 adunstan Exp $
@


1.69
log
@Provide for a file specifying non-standard config options for temp install
for pg_regress, via --temp-config option. Pick this up in the make file
via TEMP_CONFIG setting.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.68 2007/06/12 11:07:32 mha Exp $
d25 1
a25 1
TEMP_CONF += --temp-config=S(TEMP_CONFIG)
@


1.68
log
@Rewrite ECPG regression test driver in C, by splitting the standard
regression driver into two parts and reusing half of it. Required to
run ECPG tests without a shell on MSVC builds.

Fix ECPG thread tests for MSVC build (incl output files).

Joachim Wieland and Magnus Hagander
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.67 2007/03/13 22:56:48 tgl Exp $
d22 6
d144 1
a144 1
	./pg_regress --temp-install=./tmp_check --top-builddir=$(top_builddir) --srcdir=$(abs_srcdir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE)
@


1.67
log
@Regression makefile now needs to make separate lists of what to clean
for input/ and output/ directories, because with the addition of
largeobject_1.source, they're not the same list.  Apparently the current
buildfarm process does not exercise whether 'make distclean' leaves a
clean tree behind, else the farm would have been failing for awhile.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.66 2007/02/09 15:56:00 petere Exp $
d54 1
a54 1
pg_regress$(X): pg_regress.o
d168 1
a168 1
	rm -f $(output_files) $(input_files) pg_regress.o pg_regress$(X)
@


1.66
log
@Replace useless uses of := by = in makefiles.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.65 2007/01/31 19:38:50 neilc Exp $
d89 4
a92 3
file_list := $(subst .source,, $(notdir $(wildcard $(top_srcdir)/$(subdir)/input/*.source)))
input_files  := $(foreach file, $(file_list), sql/$(file).sql)
output_files := $(foreach file, $(file_list), expected/$(file).out)
@


1.65
log
@Add missing Makefile dependencies for the "bigtest" and "bigcheck"
targets, and refactor the tablespace setup code into a separate
Makefile target.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.64 2007/01/19 16:42:24 alvherre Exp $
d17 1
a17 1
contribdir := $(top_builddir)/contrib
d29 1
a29 1
MAXCONNOPT :=
d35 1
a35 1
NOLOCALE :=
@


1.64
log
@Change the sed rules in the regression test for pg_regress hackery to create
the generated files, to help Visual C++ to run these tests.  The tests still
pass in VPATH and normal builds.

Patch from Magnus Hagander, editorialized by me.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.63 2007/01/05 22:20:03 momjian Exp $
d120 1
a120 1
all: all-spi
d126 5
a136 2
	-rm -rf ./testtablespace
	mkdir ./testtablespace
a139 2
	-rm -rf ./testtablespace
	mkdir ./testtablespace
a142 2
	-rm -rf ./testtablespace
	mkdir ./testtablespace
d152 1
a152 1
bigtest:
d155 1
a155 1
bigcheck:
@


1.63
log
@Update CVS HEAD for 2007 copyright.  Back branches are typically not
back-stamped for this.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.62 2006/07/21 00:24:04 tgl Exp $
d43 2
a44 1
	'-DSHELLPROG="$(SHELL)"'
d87 3
a89 3
# Build test input and expected files

file_list := copy create_function_1 create_function_2 misc constraints tablespace
a92 2
all: $(input_files) $(output_files)

a100 16
testtablespace := $(abs_builddir)/testtablespace


define sed-command
sed -e 's,@@abs_srcdir@@,$(abs_srcdir),g' \
    -e 's,@@abs_builddir@@,$(abs_builddir),g' \
    -e 's,@@testtablespace@@,$(testtablespace),g' \
    -e 's/@@DLSUFFIX@@/$(DLSUFFIX)/g' $< >$@@
endef

$(input_files): sql/%.sql: input/%.source
	$(sed-command)

$(output_files): expected/%.out: output/%.source
	$(sed-command)

d134 1
a134 1
	./pg_regress --temp-install=./tmp_check --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE)
d139 1
a139 1
	./pg_regress --psqldir=$(PSQLDIR) --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE)
d144 1
a144 1
	./pg_regress --psqldir=$(PSQLDIR) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE)
d154 1
a154 1
	./pg_regress --psqldir=$(PSQLDIR) --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) numeric_big 
d157 1
a157 1
	./pg_regress --temp-install=./tmp_check --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE) numeric_big
@


1.62
log
@Ah, I finally realize why Magnus wanted to add a --bindir option to
pg_regress: there's no other way to cope with testing a relocated
installation.  Seems better to call it --psqldir though, since the
only thing we need to find in that case is psql.  It'd be better if
we could use find_other_exec, but that's not happening unless we are
willing to install pg_regress alongside psql, which seems unlikely
to happen.
@
text
@d6 1
a6 1
# Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.61 2006/07/20 01:16:57 tgl Exp $
@


1.61
log
@Make pg_regress.c get paths from pg_config_paths.h, instead of -D
switches passed from the Makefile.  This looks like it will fix
problem with virtual vs real paths under msys.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.60 2006/07/19 17:02:59 tgl Exp $
d22 3
d156 1
a156 1
	./pg_regress --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE)
d161 1
a161 1
	./pg_regress --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE)
d171 1
a171 1
	./pg_regress --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) numeric_big 
@


1.60
log
@Adjust spawn_process() to avoid unnecessary overhead processes: we can
just exec instead of creating a subprocess.  This reduces process usage
from four processes per parallel test to two.  I have no idea whether
a comparable optimization is possible or useful in the Windows port.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.59 2006/07/19 04:02:31 tgl Exp $
d38 1
a38 4
EXTRADEFS = '-DPGBINDIR="$(bindir)"' \
	'-DLIBDIR="$(libdir)"' \
	'-DPGSHAREDIR="$(datadir)"' \
	'-DHOST_TUPLE="$(host_tuple)"' \
d53 6
a58 3
# depend on Makefile.global to ensure that symbol changes propagate
pg_regress.o: pg_regress.c $(top_builddir)/src/Makefile.global
	$(CC) $(CFLAGS) $(CPPFLAGS) $(EXTRADEFS) -c -o $@@ $<
@


1.59
log
@Remove unnecessary inclusion of libpq into pg_regress --- overly
enthusiastic copy and paste ...
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.58 2006/07/19 02:37:00 tgl Exp $
d42 2
a43 1
	'-DMAKEPROG="$(MAKE)"'
@


1.58
log
@Rewrite pg_regress as a C program instead of a shell script.
This allows it to be used on Windows without installing mingw
(though you do still need 'diff'), and opens the door to future
improvements such as message localization.
Magnus Hagander and Tom Lane.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.57 2006/03/05 15:59:11 momjian Exp $
d53 1
a53 1
	$(CC) $(CFLAGS) $^ $(libpq_pgport) $(LDFLAGS) $(LIBS) -o $@@
@


1.57
log
@Update copyright for 2006.  Update scripts.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.56 2006/02/27 16:09:50 petere Exp $
d37 7
d50 4
a53 1
all: pg_regress
d55 3
a57 12
pg_regress: pg_regress.sh GNUmakefile $(top_builddir)/src/Makefile.global
	sed -e 's,@@bindir@@,$(bindir),g' \
	    -e 's,@@libdir@@,$(libdir),g' \
	    -e 's,@@pkglibdir@@,$(pkglibdir),g' \
	    -e 's,@@datadir@@,$(datadir),g' \
	    -e 's/@@VERSION@@/$(VERSION)/g' \
	    -e 's/@@host_tuple@@/$(host_tuple)/g' \
	    -e 's,@@GMAKE@@,$(MAKE),g' \
	    -e 's/@@enable_shared@@/$(enable_shared)/g' \
	    -e 's/@@GCC@@/$(GCC)/g' \
	  $< >$@@
	chmod a+x $@@
d59 2
a60 2
install: pg_regress
	$(INSTALL_SCRIPT) pg_regress '$(DESTDIR)$(pgxsdir)/$(subdir)/pg_regress'
d63 1
a63 1
	rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/pg_regress'
d147 1
a147 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE)
d152 1
a152 1
	$(SHELL) ./pg_regress --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE)
d157 1
a157 1
	$(SHELL) ./pg_regress --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE)
d167 1
a167 1
	$(SHELL) ./pg_regress --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) numeric_big 
d170 1
a170 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE) numeric_big
d181 1
a181 1
	rm -f $(output_files) $(input_files) pg_regress
@


1.56
log
@Clean up CREATE FUNCTION syntax usage in contrib and elsewhere, in
particular get rid of single quotes around language names and old WITH ()
construct.
@
text
@d6 1
a6 1
# Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.55 2005/12/09 21:19:36 petere Exp $
@


1.55
log
@Allow installation into directories containing spaces in the name.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.54 2005/11/28 12:03:56 alvherre Exp $
d65 1
a65 1
# Build dynamically-loaded object file for CREATE FUNCTION ... LANGUAGE 'C'.
@


1.54
log
@Install pg_regress where PGXS' "make installcheck" can find it.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.53 2005/11/01 15:09:11 adunstan Exp $
d59 1
a59 1
	$(INSTALL_SCRIPT) pg_regress $(DESTDIR)$(pgxsdir)/$(subdir)/pg_regress
d62 1
a62 1
	rm -f $(DESTDIR)$(pgxsdir)/$(subdir)/pg_regress
@


1.53
log
@
Provide a --no-locale option for pg_regress and a corresponding NOLOCALE=1
setting for the regression makefile, allowing Windows users to force locale
settings since Windows does not get its locale from the environment.

Per Petr Jelinek.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.52 2005/07/28 04:32:32 tgl Exp $
d58 6
@


1.52
log
@Remove no-longer-needed hack to add pgsleep.c to regress.so.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.51 2005/07/25 00:58:27 tgl Exp $
d31 5
d140 1
a140 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT)
d145 1
a145 1
	$(SHELL) ./pg_regress --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql 
d150 1
a150 1
	$(SHELL) ./pg_regress --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT)
d160 1
a160 1
	$(SHELL) ./pg_regress --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql numeric_big
d163 1
a163 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) numeric_big
@


1.51
log
@Change build of regress.so to use Makefile.shlib instead of depending
on the not-very-good .so pattern rules in the port-specific Makefiles.
(This leaves only pgxs' MODULES case needing those rules.)  Also,
compile pgsleep.c locally and add it to regress.so to avoid failure
on AIX.
@
text
@d9 1
a9 1
# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.50 2005/07/17 18:28:45 tgl Exp $
d59 1
a59 1
OBJS = regress.o pgsleep.o
a69 10
# regress.so needs pg_usleep, which on some platforms can't be linked
# from the main backend (though I'd sure like to know why not).
# We can't incorporate libpgport directly either, since it's not built
# with appropriate options to build a shared lib.  Instead,
# symlink the source file in here and build our own object file.

pgsleep.c: % : $(top_srcdir)/src/port/%
	rm -f $@@ && $(LN_S) $< .


d167 1
a167 1
	rm -f $(NAME)$(DLSUFFIX) $(OBJS) pgsleep.c
@


1.50
log
@Make pg_regress accept a command-line option for the temporary installation's
port number, and use a default value for it that is dependent on the
configuration-time DEF_PGPORT.  Should make the world safe for running
parallel 'make check' in different branches.  Back-patch as far as 7.4
so that this actually is useful.
@
text
@d4 1
a4 1
#    Makefile for regress (the regression tests)
d6 2
a7 1
# Copyright (c) 1994, Regents of the University of California
d9 1
a9 3
#
# IDENTIFICATION
#    $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.49 2005/05/11 21:52:03 tgl Exp $
a18 5
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
override CFLAGS += $(CFLAGS_SL)

SHLIB_LINK = $(BE_DLLLIBS)

d56 19
a74 5
DLOBJS := regress$(DLSUFFIX)
# This is for some platforms
ifdef EXPSUFF
DLOBJS += regress$(EXPSUFF)
endif
d76 2
a77 1
all: $(DLOBJS)
d175 1
a175 1
clean distclean maintainer-clean:
d177 1
d179 1
a179 1
	rm -f $(output_files) $(input_files) $(DLOBJS) regress.o pg_regress
@


1.49
log
@Give pg_regress a --load-language option, so that it can be used to test
other PLs besides plpgsql.  Andrew Dunstan
@
text
@d10 1
a10 1
#    $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.48 2004/11/17 18:05:06 tgl Exp $
d25 3
d136 1
a136 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT)
d159 1
a159 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) numeric_big
@


1.48
log
@Add installcheck-parallel regression test target.  Magnus Hagander
@
text
@d10 1
a10 1
#    $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.47 2004/06/18 06:14:25 tgl Exp $
d133 1
a133 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) $(MAXCONNOPT)
d138 1
a138 1
	$(SHELL) ./pg_regress --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE)
d143 1
a143 1
	$(SHELL) ./pg_regress --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) $(MAXCONNOPT)
d153 1
a153 1
	$(SHELL) ./pg_regress --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE) numeric_big
d156 1
a156 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) $(MAXCONNOPT) numeric_big
@


1.48.4.1
log
@Make pg_regress accept a command-line option for the temporary installation's
port number, and use a default value for it that is dependent on the
configuration-time DEF_PGPORT.  Should make the world safe for running
parallel 'make check' in different branches.  Back-patch as far as 7.4
so that this actually is useful.
@
text
@d10 1
a10 1
#    $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.48 2004/11/17 18:05:06 tgl Exp $
a24 3
# port number for temp-installation test postmaster
TEMP_PORT = 5$(DEF_PGPORT)

d133 1
a133 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) $(MAXCONNOPT)
d156 1
a156 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) $(MAXCONNOPT) numeric_big
@


1.48.4.2
log
@
Provide a --no-locale option for pg_regress and a corresponding NOLOCALE=1
setting for the regression makefile, allowing Windows users to force locale
settings since Windows does not get its locale from the environment.

Per Petr Jelinek.
@
text
@d10 1
a10 1
#    $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.48.4.1 2005/07/17 18:29:13 tgl Exp $
a36 5
# locale
NOLOCALE :=
ifdef NO_LOCALE
NOLOCALE += --no-locale
endif
d136 1
a136 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) $(MAXCONNOPT) $(NOLOCALE)
d141 1
a141 1
	$(SHELL) ./pg_regress --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE) $(NOLOCALE)
d146 1
a146 1
	$(SHELL) ./pg_regress --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) $(MAXCONNOPT) $(NOLOCALE)
d156 1
a156 1
	$(SHELL) ./pg_regress --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE) $(NOLOCALE) numeric_big
d159 1
a159 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) $(MAXCONNOPT) $(NOLOCALE) numeric_big
@


1.47
log
@Tablespaces.  Alternate database locations are dead, long live tablespaces.

There are various things left to do: contrib dbsize and oid2name modules
need work, and so does the documentation.  Also someone should think about
COMMENT ON TABLESPACE and maybe RENAME TABLESPACE.  Also initlocation is
dead, it just doesn't know it yet.

Gavin Sherry and Tom Lane.
@
text
@d10 1
a10 1
#    $PostgreSQL: pgsql-server/src/test/regress/GNUmakefile,v 1.46 2004/03/03 04:22:47 momjian Exp $
d140 5
d150 1
@


1.46
log
@Adds the -W flag to the pwd call under Win32. This allows directories,
which are munged by sed, such as:
/e/cygwin/opt/diff9c/pgsql/src/test/regress/data/agg.data to be
correctly passed as:
e:/cygwin/opt/diff9c/pgsql/src/test/regress/data/agg.data

FWIW, "fixes" a large (> 20) tests under Win32.

Claudio Natoli
@
text
@d10 1
a10 1
#    $PostgreSQL: pgsql-server/src/test/regress/GNUmakefile,v 1.45 2003/12/23 21:56:21 tgl Exp $
d70 1
a70 1
file_list := copy create_function_1 create_function_2 misc constraints
d84 2
d90 1
d131 2
d136 2
d162 1
@


1.45
log
@Fix a number of places where reconfiguring with a different installation
prefix would fail, because the new path did not get propagated to where
it needed to be.  Note this would fail even with --enable-depend.
@
text
@d10 1
a10 1
#    $PostgreSQL: pgsql-server/src/test/regress/GNUmakefile,v 1.44 2003/11/29 19:52:14 pgsql Exp $
d76 1
d79 5
@


1.44
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d10 1
a10 1
#    $PostgreSQL: /cvsroot/pgsql-server/src/test/regress/GNUmakefile,v 1.43 2003/11/02 21:56:15 tgl Exp $
d43 1
a43 1
pg_regress: pg_regress.sh GNUmakefile
@


1.43
log
@Provide a way to run the parallel regression tests with a user-specified
limit on the number of simultaneous connections.  Andrew Dunstan, with
review by Tom Lane.
@
text
@d10 1
a10 1
#    $Header: /cvsroot/pgsql-server/src/test/regress/GNUmakefile,v 1.42 2003/03/21 17:18:34 petere Exp $
@


1.43.2.1
log
@Make pg_regress accept a command-line option for the temporary installation's
port number, and use a default value for it that is dependent on the
configuration-time DEF_PGPORT.  Should make the world safe for running
parallel 'make check' in different branches.  Back-patch as far as 7.4
so that this actually is useful.
@
text
@d10 1
a10 1
#    $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.43 2003/11/02 21:56:15 tgl Exp $
a24 3
# port number for temp-installation test postmaster
TEMP_PORT = 5$(DEF_PGPORT)

d122 1
a122 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) $(MAXCONNOPT)
d137 1
a137 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) $(MAXCONNOPT) numeric_big
@


1.42
log
@Make "win" a separate port from "cygwin".  This means you can now
configure under native Windows (MinGW that is), but you won't get very far
compiling yet.  The dynaloader files are from Jan Wieck's patch set.
@
text
@d10 1
a10 1
#    $Header: /cvsroot/pgsql-server/src/test/regress/GNUmakefile,v 1.41 2002/10/03 18:40:02 tgl Exp $
d28 6
d122 1
a122 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE)
d137 1
a137 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) numeric_big
@


1.41
log
@Restore NOTICEs that were mistakenly removed from triggers regression
test expected output.  Tweak contrib/spi Makefile so that refint.so is
by default built with appropriate NOTICE support for regression testing.
@
text
@d10 1
a10 1
#    $Header: /cvsroot/pgsql-server/src/test/regress/GNUmakefile,v 1.40 2002/09/05 18:28:46 petere Exp $
d145 1
a145 1
ifeq ($(PORTNAME), win)
@


1.40
log
@Assorted fixes for Cygwin:

Eliminate the mysterious games that the Cygwin build plays with the linker
flag variables.  DLLLIBS is gone, use SHLIB_LINK like everyone else.
Detect cygipc in configure, after the linker flags are set up, otherwise
configure might not work at all.

Make sure everything is covered by make clean.

Fix the build of the new conversion procedure modules.

Add new DLLIMPORT markers where required.

Finally, the compiler complains if we use an explicit
-I/usr/local/include, so don't do that.  Curiously, -L/usr/local/lib is
still necessary.
@
text
@d10 1
a10 1
#    $Header: /cvsroot/pgsql-server/src/test/regress/GNUmakefile,v 1.39 2002/09/03 21:45:44 petere Exp $
d108 1
a108 1
	$(MAKE) -C $(contribdir)/spi REFINT_VERBOSE=1 refint$(DLSUFFIX) autoinc$(DLSUFFIX)
@


1.39
log
@Remove all traces of multibyte and locale options.  Clean up comments
referring to "multibyte" where it really means character encoding.
@
text
@d10 1
a10 1
#    $Header: /cvsroot/pgsql-server/src/test/regress/GNUmakefile,v 1.38 2002/07/02 05:43:34 momjian Exp $
d23 1
a23 1
override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS)
@


1.38
log
@Back out regress/results changes.  Real CVS problem worked-around.
@
text
@d10 1
a10 1
#    $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.36 2002/01/08 21:00:30 tgl Exp $
d24 3
@


1.37
log
@Fix removal of results directory on 'make clean'.  Just remove *.out
files.  Was causing CVS problems.
@
text
@d140 1
a140 2
	rm -rf tmp_check log
	rm -f results/*.out
@


1.36
log
@In a VPATH build, resultmap must be one of the symlinked files, else
pg_regress doesn't see it and you don't get any port-specific
comparisons.
@
text
@d10 1
a10 1
#    $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.35 2001/09/16 16:11:11 petere Exp $
d140 2
a141 1
	rm -rf results tmp_check log
@


1.35
log
@Install dynamically loadable modules into a private subdirectory
under libdir, for a cleaner separation in the installation layout
and compatibility with binary packaging standards.  Point backend's
default search location there.  The contrib modules are also
installed in the said location, giving them the benefit of the
default search path as well.  No changes in user interface
nevertheless.
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.34 2001/04/04 21:15:56 tgl Exp $
d90 1
a90 1
remaining_files_src := $(wildcard $(srcdir)/sql/*.sql) $(wildcard $(srcdir)/expected/*.out)
@


1.34
log
@Fix/cleanup DLLLIBS handling for Cygwin port.  If it works it's to
Jason Tishler's credit, if it's broken it's my fault ...
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.33 2001/02/20 19:20:30 petere Exp $
d37 1
@


1.33
log
@Make sure -L and -I's for our source tree are always before system include
or library directories on the command line.
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.32 2000/11/22 13:16:24 petere Exp $
d22 2
@


1.32
log
@Point runtest and runcheck targets at new regression test driver.
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.31 2000/11/21 23:40:28 petere Exp $
d20 1
a20 1
override CPPFLAGS += -I$(libpq_srcdir)
@


1.31
log
@Allow for different result files when using GCC versus native compiler.
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.30 2000/10/27 20:00:19 petere Exp $
d118 2
a119 34
#
# huge extra tests run in target bigtest
#
EXTRA_TESTS	= numeric_big

#
# run the tests
#
runtest: all
ifneq ($(PORTNAME), win)
	MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
	$(SHELL) ./regress.sh $(host_tuple) 2>&1 | tee regress.out
else
	MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
	./regress.sh $(host_tuple) 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: all
ifneq ($(PORTNAME), win)
	MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
	$(SHELL) ./regress.sh $(host_tuple) $(EXTRA_TESTS) 2>&1 | tee regress.out
else
	MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
	./regress.sh $(host_tuple) $(EXTRA_TESTS) 2>&1 | tee regress.out
endif
	@@echo "ACTUAL RESULTS OF REGRESSION TEST ARE NOW IN FILE regress.out"
d121 2
a122 19
#
# run the parallel test suite
#
runcheck: all
ifneq ($(PORTNAME), win)
	MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
	MAKE=$(MAKE);export MAKE; \
	$(SHELL) ./run_check.sh $(host_tuple)
else
	MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
	MAKE=$(MAKE);export MAKE; \
	./run_check.sh $(host_tuple)
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)"
d124 2
a125 15
#
# run the test including the huge extra tests
#
bigcheck: all
ifneq ($(PORTNAME), win)
	MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
	MAKE=$(MAKE);export MAKE; \
	$(SHELL) ./run_check.sh $(host_tuple) $(EXTRA_TESTS)
else
	MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
	MAKE=$(MAKE);export MAKE; \
	./run_check.sh $(host_tuple) $(EXTRA_TESTS)
endif
	@@echo "ACTUAL RESULTS OF REGRESSION TEST ARE NOW IN FILES run_check.out"
	@@echo "AND regress.out"
d128 3
a130 1
# clean up
@


1.30
log
@Make regression tests work with VPATH builds.
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.29 2000/10/23 21:44:07 petere Exp $
d40 1
@


1.29
log
@Polish shared library build to reduce number of special hacks.  In
particular, allow linking with arbitrary commands rather than only $(AR) or
$(LD), and treat C++ without hacks.

Add option to disable shared libraries.  This takes the place of the
BSD_SHLIB variable.  The regression test driver ignores the plpgsql test
if there are no shared libraries available.
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.28 2000/10/20 21:04:25 petere Exp $
d63 2
a64 2
sql/%.sql: input/%.source
	pwd=`pwd` && sed "s,_OBJWD_,$$pwd,g;s/_DLSUFFIX_/$(DLSUFFIX)/g" $(srcdir)/$< >$@@
d66 27
a92 2
expected/%.out: output/%.source
	pwd=`pwd` && sed "s,_OBJWD_,$$pwd,g;s/_DLSUFFIX_/$(DLSUFFIX)/g" $(srcdir)/$< >$@@
d109 1
a109 1
	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --schedule=parallel_schedule --multibyte=$(MULTIBYTE)
d112 1
a112 1
	$(SHELL) ./pg_regress --schedule=serial_schedule --multibyte=$(MULTIBYTE)
d200 3
@


1.28
log
@Add support for VPATH builds, that is, building somewhere else than in the
source directory.  This involves mostly makefiles using $(srcdir) when they
might have used ".".  (Regression tests don't work with this, yet.)

Sort out usage of CPPFLAGS, CFLAGS (and CXXFLAGS).  Add "override" keyword
in most places, to preserve necessary flags even when the user overrode the
flags.
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.27 2000/10/18 16:16:14 momjian Exp $
d39 1
@


1.27
log
@The following patch was sent to the patches list:

This patch forces the use of 'DROP VIEW' to destroy views.

It also changes the syntax of DROP VIEW to
DROP VIEW v1, v2, ...
to match the syntax of DROP TABLE.

Some error messages were changed so this patch also includes changes to the
appropriate expected/*.out files.

Doc changes for 'DROP TABLE" and 'DROP VIEW' are included.


--
Mark Hollomon
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.26 2000/10/07 20:23:03 petere Exp $
d20 2
a21 3
CFLAGS+= -I$(libpq_srcdir) $(CFLAGS_SL)

LDADD+= $(libpq)
@


1.26
log
@To create a temporary installation, the regression test driver should use
the make program that was used to build itself.  This seems more correct
than guessing around for some gmake.
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.25 2000/10/02 06:07:25 tgl Exp $
d133 1
d137 1
d153 1
d157 1
@


1.25
log
@Honor $(SHELL) when invoking pg_regress.
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.24 2000/09/29 17:17:37 petere Exp $
d39 1
@


1.24
log
@New unified regression test driver, test/regress makefile cleanup,
add "check" and "installcheck" targets, straighten out make variable naming
of host_os, host_cpu, etc.
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.23 2000/08/31 16:12:26 petere Exp $
d83 1
a83 1
	./pg_regress --temp-install --top-builddir=$(top_builddir) --schedule=parallel_schedule --multibyte=$(MULTIBYTE)
d86 1
a86 1
	./pg_regress --schedule=serial_schedule --multibyte=$(MULTIBYTE)
@


1.23
log
@Fix relative path references so that make knowns which dependencies refer
to one another. Sort out builddir vs srcdir variable namings. Remove some
now obsoleted make variables.
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.22 2000/07/23 13:01:10 petere Exp $
d18 1
a18 3
CONTRIB= $(top_builddir)/contrib

HOST := $(shell $(top_srcdir)/config/config.guess)
a22 6
        
#
# DLOBJS is the dynamically-loaded object file.  The regression test uses 
# this when it does a CREATE FUNCTION ... LANGUAGE 'C').
#
DLOBJS= regress$(DLSUFFIX)
a23 5
#
# ... plus test query inputs
#
# INFILES is the files the regression test uses for input.
INFILES= $(DLOBJS) 
d25 22
a46 3
#
# plus exports files
#
d48 1
a48 1
INFILES+= $(DLOBJS:.o=$(EXPSUFF))
d51 40
a96 19
# 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

#
d99 1
a99 1
runtest: $(INFILES) 
d102 1
a102 1
	$(SHELL) ./regress.sh $(HOST) 2>&1 | tee regress.out
d105 1
a105 1
	./regress.sh $(HOST) 2>&1 | tee regress.out
d116 1
a116 1
bigtest: $(INFILES) 
d119 1
a119 1
	$(SHELL) ./regress.sh $(HOST) $(EXTRA_TESTS) 2>&1 | tee regress.out
d122 1
a122 1
	./regress.sh $(HOST) $(EXTRA_TESTS) 2>&1 | tee regress.out
d129 1
a129 1
runcheck:	$(INFILES)
d132 1
a132 1
	$(SHELL) ./run_check.sh $(HOST)
d135 1
a135 1
	./run_check.sh $(HOST)
d147 1
a147 1
bigcheck: $(INFILES) 
d150 1
a150 1
	$(SHELL) ./run_check.sh $(HOST) $(EXTRA_TESTS)
d153 1
a153 1
	./run_check.sh $(HOST) $(EXTRA_TESTS)
d158 10
a167 2
clean:
	rm -f $(INFILES) regress.out run_check.out regress.o regression.diffs
a170 5
	$(MAKE) -C sql clean
	$(MAKE) -C expected clean
	$(MAKE) -C results clean
	$(MAKE) -C $(CONTRIB)/spi clean
	rm -rf tmp_check
@


1.22
log
@Unset locale variables before running regression tests. (All of them!)
Don't do config.status substitutions into the regression test makefile.
@
text
@d10 1
a10 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/regress/GNUmakefile.in,v 1.2 2000/05/29 05:45:55 tgl Exp $
d22 1
a22 1
CFLAGS+= -I$(LIBPQDIR) $(CFLAGS_SL)
d24 1
a24 1
LDADD+= -L$(LIBPQDIR) -lpq
@


1.21
log
@New scheme for managing platform-specific regress test result files.
Instead of hard-wiring one result file per platform, there is a map file
'resultmap' that says which one to use --- a lot like template/.similar.
I have only created entries in resultmap for my own platform (HPUX) so
far; feel free to add lines for other platforms.
@
text
@d3 2
a4 2
# Makefile--
#    Makefile for regress (the regression test)
d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.20 1999/11/19 18:51:48 wieck Exp $
d14 3
a16 2
SRCDIR= ../..
include ../../Makefile.global
d18 5
a22 1
CFLAGS+= -I$(LIBPQDIR) -I../../include $(CFLAGS_SL)
d51 1
a51 1
# prepare to run the test (including clean-up after the last run)
d57 2
a58 2
	$(MAKE) -C ../../../contrib/spi REFINT_VERBOSE=1 refint$(DLSUFFIX) \
	autoinc$(DLSUFFIX)
d60 2
a61 2
#	cat /dev/null > ../../../contrib/spi/refint$(DLSUFFIX)
#	cat /dev/null > ../../../contrib/spi/autoinc$(DLSUFFIX)
d70 1
a70 1
# run the test
d75 1
a75 1
	$(SHELL) ./regress.sh $(PORTNAME) 2>&1 | tee regress.out
d78 1
a78 1
	./regress.sh $(PORTNAME) 2>&1 | tee regress.out
d92 1
a92 1
	$(SHELL) ./regress.sh $(PORTNAME) $(EXTRA_TESTS) 2>&1 | tee regress.out
d95 1
a95 1
	./regress.sh $(PORTNAME) $(EXTRA_TESTS) 2>&1 | tee regress.out
d105 1
a105 1
	$(SHELL) ./run_check.sh $(PORTNAME)
d108 1
a108 1
	./run_check.sh $(PORTNAME)
d123 1
a123 1
	$(SHELL) ./run_check.sh $(PORTNAME) $(EXTRA_TESTS)
d126 1
a126 1
	./run_check.sh $(PORTNAME) $(EXTRA_TESTS)
d132 1
a132 1
	rm -f $(INFILES) regress.out regress.o regression.diffs
d139 1
a139 1
	$(MAKE) -C ../../../contrib/spi clean
@


1.20
log
@New parallel regression test shell and related things.

Jan
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.19 1999/06/28 18:40:34 momjian Exp $
@


1.19
log
@Add time warning about bigtests.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.18 1999/06/10 17:49:29 wieck Exp $
d94 32
d135 1
@


1.18
log
@Added 2 regression tests for NUMERIC data type.

1. Using 100 digits after decimal point on the default
   make runtest.

2. Using 1000 digits after decimal point in a new target
   make bigtest.

At the end of 'make runtest', a hint about the new bigtest is
printed.

Jan
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.17 1999/01/17 06:19:57 momjian Exp $
d77 2
a78 1
	@@echo "To run the optional huge test(s) too type 'make bigtest'"
@


1.17
log
@Apply Win32 patch from Horak Daniel.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.16 1998/07/26 04:31:41 scrappy Exp $
d41 5
d74 16
@


1.16
log
@
From: t-ishii@@sra.co.jp

As Bruce mentioned, this is due to the conflict among changes we made.
Included patches should fix the problem(I changed all MB to
MULTIBYTE). Please let me know if you have further problem.

P.S. I did not include pathces to configure and gram.c to save the
file size(configure.in and gram.y modified).
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.15 1998/03/15 07:39:01 scrappy Exp $
d46 1
d49 9
d63 1
d65 5
a69 1
	$(SHELL) ./regress.sh 2>&1 | tee regress.out
d73 4
a76 1
	rm -f $(INFILES) regress.out
@


1.15
log
@From: t-ishii@@sra.co.jp

Included are patches intended for allowing PostgreSQL to handle
multi-byte charachter sets such as EUC(Extende Unix Code), Unicode and
Mule internal code. With the MB patch you can use multi-byte character
sets in regexp and LIKE. The encoding system chosen is determined at
the compile time.

To enable the MB extension, you need to define a variable "MB" in
Makefile.global or in Makefile.custom. For further information please
take a look at README.mb under doc directory.

(Note that unlike "jp patch" I do not use modified GNU regexp any
more. I changed Henry Spencer's regexp coming with PostgreSQL.)
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.14 1998/01/17 23:39:22 scrappy Exp $
d53 1
a53 1
	MB=$(MB);export MB; \
@


1.14
log
@From: "Michael J. Maravillo" <mmj@@philonline.com>

This patch makes it possible to do a "real" make distclean (back to its
fresh state) on the distribution after compilation, regression testing,
etc.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.13 1998/01/01 05:37:29 thomas Exp $
d53 1
@


1.13
log
@Include SPI module when cleaning.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.12 1997/10/17 09:57:49 vadim Exp $
d57 1
a57 1
	rm -f $(INFILES)
@


1.12
log
@Changes due to fixed DEFAULT behaviour.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.11 1997/09/24 08:35:07 vadim Exp $
d61 1
@


1.11
log
@Added: ttdummy() - variation of timetravel() function
for regress test.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.10 1997/09/11 09:13:27 vadim Exp $
d46 2
a47 1
	$(MAKE) -C ../../../contrib/spi REFINT_VERBOSE=1 refint$(DLSUFFIX)
@


1.10
log
@Tests for spi/triggers
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.9 1997/07/29 14:09:11 momjian Exp $
d46 1
a46 1
	$(MAKE) -C ../../../contrib/spi REFINT_VERBOSE=1
@


1.9
log
@mkLinux patches from Tatsuo Ishii.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/test/regress/GNUmakefile,v 1.8 1997/06/06 01:35:57 scrappy Exp $
d46 1
@


1.8
log
@From: PortSite <info@@portsite.nl>

The GNUmakefile in src/test/regress uses `gmake' for
the make program. This should be $(MAKE)
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/test/regress/GNUmakefile,v 1.7 1997/04/27 02:56:03 scrappy Exp $
d17 1
a17 1
CFLAGS+= -I$(LIBPQDIR) -I../../include
@


1.7
log
@Massive regression test patches from Thomas *woo hoo!*
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/test/regress/GNUmakefile,v 1.6 1997/04/26 06:31:55 scrappy Exp $
d44 2
a45 2
	cd input; gmake all; cd ..
	cd output; gmake all; cd ..
@


1.6
log
@Add a results directory and a Makefile so that 'make clean' cleans it out
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/test/regress/GNUmakefile,v 1.5 1997/04/26 05:44:06 scrappy Exp $
d17 1
a17 1
CFLAGS+= -I$(LIBPQDIR) 
@


1.5
log
@Clean out/up some files that are causing me great headaches since I didn't
do this completely last time and Thomas is creating patches on files that
aren't supposed to exist :(
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/test/regress/GNUmakefile,v 1.4 1997/04/12 09:34:31 scrappy Exp $
d58 1
@


1.4
log
@Get rid of the .sql files out of the Makefile

Pointed out by: afc@@teri.superlink.net
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/test/regress/GNUmakefile,v 1.3 1997/04/05 21:33:24 scrappy Exp $
d17 1
a17 1
CFLAGS+= -I$(LIBPQDIR) -I../../include
a39 3
# OUTFILES is the files that get created by running the regression test.
OUTFILES= stud_emp.data onek.data regress.out aportal.out

a45 1
	rm -f $(OUTFILES)
d50 1
a50 1
runtest: $(INFILES) expected.out 
a53 34
# The expected.input file is part of the distribution.  It was made by hand
# from 'regress.out' from a reference run of the regression test, replacing
# installation-dependent things with names like _CWD_.  The following rule
# turns those names back into real values for the instant installation to
# create a standard (expected.out) against which to compare regress.out 
# from the experimental run.
#
#
expected.out: expected.input
	if [ -z "$$USER" ]; then USER=$$LOGNAME; fi; \
	if [ -z "$$USER" ]; then USER=`whoami`; fi; \
	if [ -z "$$USER" ]; then echo 'Cannot deduce $USER.'; exit 1; fi; \
	rm -f expected.out; \
	MYTZ=`date | cut -c21`; \
	C="`pwd`"; \
	sed -e "s:_CWD_:$$C:g" \
	    -e "s:_OBJWD_:$$C:g" \
            -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
	    -e "s;\([A-Z][a-z][a-z][^ ]* [A-Z][a-z][a-z] [0-9 ][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9] \)[A-Z]\([A-Z][A-Z]\);\1$$MYTZ\2;g" \
	    -e "s;\([A-Z][a-z][a-z][^ ]* [A-Z][a-z][a-z] [0-9 ][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] \)[A-Z]\([A-Z][A-Z] [0-9][0-9][0-9][0-9]\);\1$$MYTZ\2;g" \
	    -e "s:_USER_:$$USER:g" < expected.input > expected.out
	@@echo "YOUR EXPECTED RESULTS ARE NOW IN FILE expected.out."

%.sql: %.source
	if [ -z "$$USER" ]; then USER=$$LOGNAME; fi; \
	if [ -z "$$USER" ]; then USER=`whoami`; fi; \
	if [ -z "$$USER" ]; then echo 'Cannot deduce $$USER.'; exit 1; fi; \
	rm -f $@@; \
	C=`pwd`; \
	sed -e "s:_CWD_:$$C:g" \
	    -e "s:_OBJWD_:$$C:g" \
	    -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
	    -e "s/_USER_/$$USER/g" < $< > $@@

d56 2
a57 2
	rm -f $(OUTFILES)

@


1.3
log
@remove create.{source,sql} as they are now down in the 'sql' directory
partially split
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/test/regress/GNUmakefile,v 1.2 1997/04/05 21:24:06 scrappy Exp $
d31 2
a32 3
INFILES= $(DLOBJS) \
         queries.sql errors.sql destroy.sql security.sql \
         expected.out
@


1.2
log
@More splits of the regression tests in order to make them more
user-friendly (and more useful)
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/test/regress/GNUmakefile,v 1.1 1997/01/21 01:27:18 momjian Exp $
d32 1
a32 1
         create.sql queries.sql errors.sql destroy.sql security.sql \
@


1.1
log
@Rename GNUMakefile to GNUmakefile so gmake finds it.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/test/regress/GNUMakefile,v 1.1 1997/01/18 08:01:30 bryanh Exp $
d48 2
@
