head	1.79;
access;
symbols
	REL9_0_0:1.79
	REL9_1_ALPHA1:1.79
	REL9_0_RC1:1.79
	REL9_0_BETA4:1.79
	REL9_0_STABLE:1.79.0.2
	REL9_0_BETA3:1.79
	REL9_0_BETA2:1.78
	REL7_4_29:1.41.2.1
	REL8_0_25:1.48
	REL8_1_21:1.50
	REL8_2_17:1.62
	REL8_3_11:1.72
	REL8_4_4:1.77
	REL9_0_BETA1:1.78
	REL9_0_ALPHA5_BRANCH:1.78.0.6
	REL9_0_ALPHA5:1.78
	REL7_4_28:1.41.2.1
	REL8_0_24:1.48
	REL8_1_20:1.50
	REL8_2_16:1.62
	REL8_3_10:1.72
	REL8_4_3:1.77
	REL9_0_ALPHA4:1.78
	REL9_0_ALPHA4_BRANCH:1.78.0.4
	REL8_5_ALPHA3:1.78
	REL8_5_ALPHA3_BRANCH:1.78.0.2
	REL7_4_27:1.41.2.1
	REL8_0_23:1.48
	REL8_1_19:1.50
	REL8_2_15:1.62
	REL8_3_9:1.72
	REL8_4_2:1.77
	REL8_5_ALPHA2:1.77
	REL8_5_ALPHA2_BRANCH:1.77.0.6
	REL7_4_26:1.41.2.1
	REL8_0_22:1.48
	REL8_1_18:1.50
	REL8_2_14:1.62
	REL8_3_8:1.72
	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.41.2.1
	REL8_0_21:1.48
	REL8_1_17:1.50
	REL8_2_13:1.62
	REL8_3_7:1.72
	REL7_4_24:1.41.2.1
	REL8_0_20:1.48
	REL8_1_16:1.50
	REL8_2_12:1.62
	REL8_3_6:1.72
	REL7_4_23:1.41.2.1
	REL8_0_19:1.48
	REL8_1_15:1.50
	REL8_2_11:1.62
	REL8_3_5:1.72
	REL7_4_22:1.41.2.1
	REL8_0_18:1.48
	REL8_1_14:1.50
	REL8_2_10:1.62
	REL8_3_4:1.72
	REL7_4_21:1.41.2.1
	REL8_0_17:1.48
	REL8_1_13:1.50
	REL8_2_9:1.62
	REL8_3_3:1.72
	REL7_4_20:1.41.2.1
	REL8_0_16:1.48
	REL8_1_12:1.50
	REL8_2_8:1.62
	REL8_3_2:1.72
	REL8_2_7:1.62
	REL8_3_1:1.72
	REL8_3_STABLE:1.72.0.2
	REL8_3_0:1.72
	REL8_3_RC2:1.72
	REL7_3_21:1.33
	REL7_4_19:1.41.2.1
	REL8_0_15:1.48
	REL8_1_11:1.50
	REL8_2_6:1.62
	REL8_3_RC1:1.72
	REL8_3_BETA4:1.72
	REL8_3_BETA3:1.72
	REL8_3_BETA2:1.72
	REL8_3_BETA1:1.72
	REL7_3_20:1.33
	REL7_4_18:1.41.2.1
	REL8_0_14:1.48
	REL8_1_10:1.50
	REL8_2_5:1.62
	REL7_3_19:1.33
	REL7_4_17:1.41.2.1
	REL8_0_13:1.48
	REL8_1_9:1.50
	REL8_2_4:1.62
	REL8_0_12:1.48
	REL8_1_8:1.50
	REL8_2_3:1.62
	REL7_3_18:1.33
	REL7_4_16:1.41.2.1
	REL8_0_11:1.48
	REL8_1_7:1.50
	REL8_2_2:1.62
	REL8_0_10:1.48
	REL8_1_6:1.50
	REL8_2_1:1.62
	REL7_4_15:1.41.2.1
	REL7_3_17:1.33
	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.50
	REL8_0_9:1.48
	REL7_4_14:1.41.2.1
	REL7_3_16:1.33
	REL8_2_BETA1:1.62
	REL7_3_15:1.33
	REL7_4_13:1.41.2.1
	REL8_0_8:1.48
	REL8_1_4:1.50
	REL7_3_14:1.33
	REL7_4_12:1.41.2.1
	REL8_0_7:1.48
	REL8_1_3:1.50
	REL7_3_13:1.33
	REL7_4_11:1.41.2.1
	REL8_0_6:1.48
	REL8_1_2:1.50
	REL7_3_12:1.33
	REL7_4_10:1.41.2.1
	REL8_0_5:1.48
	REL8_1_1:1.50
	REL8_1_STABLE:1.50.0.2
	REL8_1_0:1.50
	REL8_1_0RC1:1.50
	REL8_1_0BETA4:1.50
	REL8_1_0BETA3:1.50
	REL7_3_11:1.33
	REL7_4_9:1.41.2.1
	REL8_0_4:1.48
	REL8_1_0BETA2:1.50
	REL8_1_0BETA1:1.50
	REL7_2_8:1.33
	REL7_3_10:1.33
	REL7_4_8:1.41.2.1
	REL8_0_3:1.48
	REL8_0_2:1.48
	REL7_2_7:1.33
	REL7_3_9:1.33
	REL7_4_7:1.41.2.1
	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.48
	REL7_4_6:1.41.2.1
	REL7_3_8:1.33
	REL7_2_6:1.33
	REL8_0_0BETA3:1.48
	REL8_0_0BETA2:1.48
	REL7_2_5:1.33
	REL7_4_5:1.41.2.1
	REL7_3_7:1.33
	REL7_4_4:1.41.2.1
	REL8_0_0BETA1:1.48
	REL7_4_3:1.41.2.1
	REL7_4_2:1.41.2.1
	REL7_3_6:1.33
	REL7_4_1:1.41.2.1
	REL7_3_5:1.33
	REL7_4:1.41
	REL7_4_RC2:1.41
	REL7_4_STABLE:1.41.0.2
	REL7_4_RC1:1.41
	REL7_4_BETA5:1.41
	REL7_4_BETA4:1.41
	REL7_4_BETA3:1.40
	REL7_4_BETA2:1.40
	WIN32_DEV:1.40.0.2
	REL7_4_BETA1:1.39
	REL7_3_4:1.33
	REL7_3_2:1.33
	REL7_2_4:1.33
	REL7_3_STABLE:1.33.0.6
	REL7_2_3:1.33
	ecpg_big_bison:1.33.0.4
	REL7_2_STABLE:1.33.0.2
	REL7_2:1.33
	REL7_2_RC2:1.33
	REL7_2_RC1:1.33
	REL7_2_BETA5:1.33
	REL7_2_BETA4:1.32
	REL7_2_BETA3:1.32
	REL7_2_BETA2:1.31
	REL7_2_BETA1:1.31
	REL7_1_2:1.30
	REL7_1_STABLE:1.30.0.2
	REL7_1_BETA:1.27
	REL7_1_BETA3:1.28
	REL7_1_BETA2:1.28
	REL7_1:1.29
	REL7_0_PATCHES:1.23.0.2
	REL7_0:1.22
	REL6_5_PATCHES:1.9.0.2
	REL6_5:1.9
	REL6_4:1.6.0.2
	release-6-3:1.2;
locks; strict;
comment	@# @;


1.79
date	2010.07.05.18.54.38;	author tgl;	state Exp;
branches;
next	1.78;

1.78
date	2009.12.19.02.38.51;	author alvherre;	state Exp;
branches;
next	1.77;

1.77
date	2009.01.15.09.30.20;	author petere;	state Exp;
branches;
next	1.76;

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

1.75
date	2008.12.01.11.37.37;	author meskes;	state Exp;
branches;
next	1.74;

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

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

1.72
date	2007.08.14.10.01.53;	author meskes;	state Exp;
branches;
next	1.71;

1.71
date	2007.06.15.08.23.52;	author meskes;	state Exp;
branches;
next	1.70;

1.70
date	2007.06.12.15.00.41;	author alvherre;	state Exp;
branches;
next	1.69;

1.69
date	2007.06.12.13.09.58;	author mha;	state Exp;
branches;
next	1.68;

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

1.67
date	2007.03.29.12.02.24;	author meskes;	state Exp;
branches;
next	1.66;

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

1.65
date	2007.01.21.09.23.29;	author petere;	state Exp;
branches;
next	1.64;

1.64
date	2007.01.20.17.16.17;	author petere;	state Exp;
branches;
next	1.63;

1.63
date	2007.01.12.11.27.28;	author meskes;	state Exp;
branches;
next	1.62;

1.62
date	2006.09.08.13.32.26;	author meskes;	state Exp;
branches;
next	1.61;

1.61
date	2006.09.05.12.11.01;	author meskes;	state Exp;
branches;
next	1.60;

1.60
date	2006.08.29.12.33.45;	author meskes;	state Exp;
branches;
next	1.59;

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

1.58
date	2006.08.19.13.42.40;	author meskes;	state Exp;
branches;
next	1.57;

1.57
date	2006.08.08.19.43.11;	author tgl;	state Exp;
branches;
next	1.56;

1.56
date	2006.08.04.14.18.09;	author tgl;	state Exp;
branches;
next	1.55;

1.55
date	2006.08.04.08.52.17;	author meskes;	state Exp;
branches;
next	1.54;

1.54
date	2006.08.02.13.43.23;	author meskes;	state Exp;
branches;
next	1.53;

1.53
date	2006.02.08.09.10.05;	author meskes;	state Exp;
branches;
next	1.52;

1.52
date	2006.02.04.20.54.44;	author meskes;	state Exp;
branches;
next	1.51;

1.51
date	2006.01.24.11.01.38;	author meskes;	state Exp;
branches;
next	1.50;

1.50
date	2005.06.30.07.01.57;	author neilc;	state Exp;
branches;
next	1.49;

1.49
date	2005.06.02.12.35.11;	author meskes;	state Exp;
branches;
next	1.48;

1.48
date	2004.05.07.13.42.49;	author meskes;	state Exp;
branches;
next	1.47;

1.47
date	2004.04.30.04.14.06;	author momjian;	state Exp;
branches;
next	1.46;

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

1.45
date	2004.04.23.18.15.55;	author momjian;	state Exp;
branches;
next	1.44;

1.44
date	2004.03.14.12.16.30;	author meskes;	state Exp;
branches;
next	1.43;

1.43
date	2003.12.19.23.29.15;	author momjian;	state Exp;
branches;
next	1.42;

1.42
date	2003.11.29.19.52.09;	author pgsql;	state Exp;
branches;
next	1.41;

1.41
date	2003.09.27.15.32.48;	author momjian;	state Exp;
branches
	1.41.2.1;
next	1.40;

1.40
date	2003.08.06.02.19.51;	author momjian;	state Exp;
branches;
next	1.39;

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

1.38
date	2003.07.01.12.40.52;	author meskes;	state Exp;
branches;
next	1.37;

1.37
date	2003.06.25.10.44.21;	author meskes;	state Exp;
branches;
next	1.36;

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

1.35
date	2003.03.20.15.56.50;	author meskes;	state Exp;
branches;
next	1.34;

1.34
date	2003.03.16.10.42.54;	author meskes;	state Exp;
branches;
next	1.33;

1.33
date	2001.12.23.12.17.41;	author meskes;	state Exp;
branches;
next	1.32;

1.32
date	2001.11.14.11.11.49;	author meskes;	state Exp;
branches;
next	1.31;

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

1.30
date	2001.05.03.16.07.51;	author tgl;	state Exp;
branches;
next	1.29;

1.29
date	2001.01.31.16.12.34;	author meskes;	state Exp;
branches;
next	1.28;

1.28
date	2000.12.22.12.43.14;	author meskes;	state Exp;
branches;
next	1.27;

1.27
date	2000.10.17.15.38.26;	author meskes;	state Exp;
branches;
next	1.26;

1.26
date	2000.10.04.10.11.33;	author meskes;	state Exp;
branches;
next	1.25;

1.25
date	2000.09.26.11.41.45;	author meskes;	state Exp;
branches;
next	1.24;

1.24
date	2000.09.20.13.25.52;	author meskes;	state Exp;
branches;
next	1.23;

1.23
date	2000.05.17.06.03.13;	author meskes;	state Exp;
branches;
next	1.22;

1.22
date	2000.05.02.10.57.11;	author momjian;	state Exp;
branches;
next	1.21;

1.21
date	2000.04.29.03.25.24;	author momjian;	state Exp;
branches;
next	1.20;

1.20
date	2000.04.05.09.05.38;	author meskes;	state Exp;
branches;
next	1.19;

1.19
date	2000.03.03.13.24.06;	author meskes;	state Exp;
branches;
next	1.18;

1.18
date	2000.02.23.19.25.59;	author meskes;	state Exp;
branches;
next	1.17;

1.17
date	2000.02.17.19.48.58;	author meskes;	state Exp;
branches;
next	1.16;

1.16
date	2000.02.16.16.18.28;	author meskes;	state Exp;
branches;
next	1.15;

1.15
date	2000.02.16.11.52.25;	author meskes;	state Exp;
branches;
next	1.14;

1.14
date	2000.02.15.19.23.20;	author meskes;	state Exp;
branches;
next	1.13;

1.13
date	2000.02.15.12.15.56;	author meskes;	state Exp;
branches;
next	1.12;

1.12
date	2000.01.27.19.00.41;	author meskes;	state Exp;
branches;
next	1.11;

1.11
date	99.12.16.06.53.12;	author meskes;	state Exp;
branches;
next	1.10;

1.10
date	99.11.02.12.11.53;	author meskes;	state Exp;
branches;
next	1.9;

1.9
date	99.03.05.09.38.51;	author meskes;	state Exp;
branches;
next	1.8;

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

1.7
date	99.01.18.17.17.03;	author momjian;	state Exp;
branches;
next	1.6;

1.6
date	98.08.11.18.33.36;	author momjian;	state Exp;
branches;
next	1.5;

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

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

1.3
date	98.04.06.00.30.33;	author momjian;	state Exp;
branches;
next	1.2;

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

1.1
date	98.02.10.16.44.07;	author scrappy;	state Exp;
branches;
next	;

1.41.2.1
date	2003.12.19.23.29.29;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.79
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
@# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.78 2009/12/19 02:38:51 alvherre Exp $

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

override CPPFLAGS := \
	-I$(top_builddir)/src/port \
	-I$(top_srcdir)/src/test/regress \
	'-DHOST_TUPLE="$(host_tuple)"' \
	'-DMAKEPROG="$(MAKE)"' \
	'-DSHELLPROG="$(SHELL)"' \
	'-DDLSUFFIX="$(DLSUFFIX)"' \
	$(CPPFLAGS)

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

# default encoding
MULTIBYTE = SQL_ASCII

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

ifneq ($(build_os),mingw32)
abs_builddir := $(shell pwd)
else
abs_builddir := $(shell pwd -W)
endif

all install installdirs uninstall distprep:
	$(MAKE) -C connect $@@
	$(MAKE) -C sql $@@
	$(MAKE) -C pgtypeslib $@@
	$(MAKE) -C preproc $@@
	$(MAKE) -C compat_informix $@@
	$(MAKE) -C thread $@@

clean distclean maintainer-clean:
	$(MAKE) -C connect $@@
	$(MAKE) -C sql $@@
	$(MAKE) -C pgtypeslib $@@
	$(MAKE) -C preproc $@@
	$(MAKE) -C compat_informix $@@
	$(MAKE) -C thread $@@
	rm -rf tmp_check results log
	rm -f pg_regress regression.diffs regression.out pg_regress_ecpg.o

# Build regression test driver

all: pg_regress$(X)

pg_regress$(X): pg_regress_ecpg.o $(top_builddir)/src/test/regress/pg_regress.o
	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) $^ $(LIBS) -o $@@

$(top_builddir)/src/test/regress/pg_regress.o:
	$(MAKE) -C $(dir $@@) $(notdir $@@)

# dependencies ensure that path changes propagate
pg_regress_ecpg.o: pg_regress_ecpg.c $(top_builddir)/src/port/pg_config_paths.h

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

# When doing a VPATH build, copy over the .pgc, .stdout and .stderr
# 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)/*/*.pgc) $(wildcard $(srcdir)/expected/*.c) $(wildcard $(srcdir)/expected/*.stdout) $(wildcard $(srcdir)/expected/*.stderr)
remaining_files_build := $(patsubst $(srcdir)/%, $(abs_builddir)/%, $(remaining_files_src))

all: $(remaining_files_build)
$(remaining_files_build): $(abs_builddir)/%: $(srcdir)/%
	ln -s $< $@@
endif


check: all
	./pg_regress  --dbname=regress1,connectdb --top-builddir=$(top_builddir) --temp-install=./tmp_check --multibyte=$(MULTIBYTE) $(NOLOCALE) $(THREAD) --schedule=$(srcdir)/ecpg_schedule --create-role=connectuser,connectdb

# the same options, but with --listen-on-tcp
checktcp: all
	./pg_regress  --dbname=regress1,connectdb --top-builddir=$(top_builddir) --temp-install=./tmp_check --multibyte=$(MULTIBYTE) $(NOLOCALE) $(THREAD) --schedule=$(srcdir)/ecpg_schedule_tcp --create-role=connectuser,connectdb --host=localhost

installcheck: all
	./pg_regress  --psqldir=$(PSQLDIR) --dbname=regress1,connectdb --top-builddir=$(top_builddir) --multibyte=$(MULTIBYTE) $(NOLOCALE) $(THREAD) --schedule=$(srcdir)/ecpg_schedule --create-role=connectuser,connectdb
@


1.78
log
@Update ecpg regression tests to plpgsql installed by default.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.77 2009/01/15 09:30:20 petere Exp $
d57 1
a57 1
	$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@@
@


1.77
log
@Build needed things in src/test/regress/ first.  And some build rules
normalization.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.76 2009/01/05 09:54:13 petere Exp $
d86 1
a86 1
	./pg_regress  --dbname=regress1,connectdb --top-builddir=$(top_builddir) --temp-install=./tmp_check --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) $(THREAD) --schedule=$(srcdir)/ecpg_schedule --create-role=connectuser,connectdb
d90 1
a90 1
	./pg_regress  --dbname=regress1,connectdb --top-builddir=$(top_builddir) --temp-install=./tmp_check --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) $(THREAD) --schedule=$(srcdir)/ecpg_schedule_tcp --create-role=connectuser,connectdb --host=localhost
d93 1
a93 1
	./pg_regress  --psqldir=$(PSQLDIR) --dbname=regress1,connectdb --top-builddir=$(top_builddir) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) $(THREAD) --schedule=$(srcdir)/ecpg_schedule --create-role=connectuser,connectdb
@


1.76
log
@Fix for cross-compilation between mingw32 and something else.  The choice
of pwd vs. pwd -W is correctly a function of the build system, not the
host system.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.75 2008/12/01 11:37:37 meskes Exp $
d7 9
a33 9
# stuff to pass into build of pg_regress
EXTRADEFS = '-DHOST_TUPLE="$(host_tuple)"' \
	'-DMAKEPROG="$(MAKE)"' \
	'-DSHELLPROG="$(SHELL)"' \
	'-DDLSUFFIX="$(DLSUFFIX)"'

REGRESSINCLUDES = "-I$(top_srcdir)/src/test/regress"
REGRESSDRIVER = "$(top_builddir)/src/test/regress/pg_regress.o"

d56 5
a60 2
pg_regress$(X): pg_regress_ecpg.o
	$(CC) $(CFLAGS) $^ $(REGRESSDRIVER) $(REGRESSINCLUDES) $(LDFLAGS) $(LIBS) -o $@@
a63 1
	$(CC) $(CFLAGS) $(CPPFLAGS) -I$(top_builddir)/src/port $(REGRESSINCLUDES) $(EXTRADEFS) -c -o $@@ $<
@


1.75
log
@Removed port testing.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.74 2008/11/28 23:47:51 tgl Exp $
d19 1
a19 1
ifneq ($(PORTNAME),win32)
@


1.74
log
@Partial fix for fallout from temp-port changes.  ecpg still needs more work,
but I think this is enough to turn the buildfarm green again.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.73 2008/10/21 10:51:24 petere Exp $
a6 4
# port number for temp-installation test postmaster
# this is also defined in test/connect/Makefile
TEMP_PORT = 4$(DEF_PGPORT)

a35 1
	$(MAKE) -C expected $@@
a43 2
	$(MAKE) -C connect extraclean
	$(MAKE) -C expected extraclean
d84 1
a84 1
	./pg_regress  --dbname=regress1,connectdb --top-builddir=$(top_builddir) --temp-install=./tmp_check --port=$(TEMP_PORT) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) $(THREAD) --schedule=$(srcdir)/ecpg_schedule --create-role=connectuser,connectdb
d88 1
a88 1
	./pg_regress  --dbname=regress1,connectdb --top-builddir=$(top_builddir) --temp-install=./tmp_check --port=$(TEMP_PORT) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) $(THREAD) --schedule=$(srcdir)/ecpg_schedule_tcp --create-role=connectuser,connectdb --host=localhost
@


1.73
log
@Clean regression.out
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.72 2007/08/14 10:01:53 meskes Exp $
d91 1
a91 1
	./pg_regress  --dbname=regress1,connectdb --top-builddir=$(top_builddir) --temp-install=./tmp_check --temp-port=$(TEMP_PORT) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) $(THREAD) --schedule=$(srcdir)/ecpg_schedule --create-role=connectuser,connectdb
d95 1
a95 1
	./pg_regress  --dbname=regress1,connectdb --top-builddir=$(top_builddir) --temp-install=./tmp_check --temp-port=$(TEMP_PORT) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) $(THREAD) --schedule=$(srcdir)/ecpg_schedule_tcp --create-role=connectuser,connectdb --host=localhost
@


1.72
log
@- Finished major rewrite to use new protocol version
- Really prepare statements
- Added more regression tests
- Added auto-prepare mode
- Use '$n' for positional variables, '?' is still possible via ecpg option
- Cleaned up the sources a little bit
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.71 2007/06/15 08:23:52 meskes Exp $
d57 1
a57 1
	rm -f pg_regress regression.diffs pg_regress_ecpg.o
@


1.71
log
@Applied patch by Joachim to enable checktcp again
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.70 2007/06/12 15:00:41 alvherre Exp $
d9 1
a9 1
TEMP_PORT = 5$(DEF_PGPORT)
@


1.70
log
@VPATH fixes.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.69 2007/06/12 13:09:58 mha Exp $
d95 1
a95 1
	./pg_regress  --dbname=regress1,connectdb --top-builddir=$(top_builddir) --temp-install=./tmp_check --temp-port=$(TEMP_PORT) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) $(THREAD) --schedule=$(srcdir)/ecpg_schedule --create-role=connectuser,connectdb --host=localhost
@


1.69
log
@Fix search/replace error in makefile for ecpg tests
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.68 2007/06/12 11:07:30 mha Exp $
d35 1
a35 1
REGRESSINCLUDES = "-I$(top_builddir)/src/test/regress"
d64 1
a64 1
	$(CC) $(CFLAGS) $^ $(REGRESSDRIVER) $(LDFLAGS) $(LIBS) -o $@@
@


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
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.67 2007/03/29 12:02:24 meskes Exp $
d95 1
a95 1
	./pg_regress  --dbname=regress1,connectdb --top-builddir=$(top_builddir) --temp-install=./tmp_check --temp-port=$(TEMP_PORT) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) $(THREAD) --schedule=$(srcdir)/ecpg_schedule_tcp --create-role=connectuser,connectdb --host=localhost
@


1.67
log
@- Added patch by Magnus Hagander <magnus@@hagander.net> to use native
  win32 threads.
- Fixed regression tests to run threading tests.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.66 2007/02/09 15:55:59 petere Exp $
d11 3
a16 3
# threading
THREAD := $(shell grep -q "define ENABLE_THREAD_SAFETY" ../include/ecpg_config.h && echo "--enable-threading")

d29 9
d57 8
a64 1
	rm -f pg_regress regression.diffs
d66 3
a68 1
all: pg_regress
d70 2
a71 10
pg_regress: pg_regress.sh $(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' \
	  $< >$@@
d91 1
a91 1
	sh ./pg_regress  --dbname=regress1 --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) $(THREAD)
d95 1
a95 1
	sh ./pg_regress  --dbname=regress1 --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) --listen-on-tcp $(THREAD)
d98 1
a98 1
	sh ./pg_regress  --dbname=regress1 --top-builddir=$(top_builddir) --load-language=plpgsql $(NOLOCALE)
@


1.66
log
@Replace useless uses of := by = in makefiles.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.65 2007/01/21 09:23:29 petere Exp $
d14 3
d81 1
a81 1
	sh ./pg_regress  --dbname=regress1 --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE)
d85 1
a85 1
	sh ./pg_regress  --dbname=regress1 --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) --listen-on-tcp
@


1.65
log
@Remove some unused variables
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.64 2007/01/20 17:16:17 petere Exp $
d15 1
a15 1
NOLOCALE :=
@


1.64
log
@Remove remains of old depend target.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.63 2007/01/12 11:27:28 meskes Exp $
a57 1
	    -e 's/@@GCC@@/$(GCC)/g' \
@


1.63
log
@also adjust MinGW expected file to new setup
create expected file with correct port number
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.62 2006/09/08 13:32:26 meskes Exp $
d26 1
a26 1
all install installdirs uninstall dep depend distprep:
@


1.62
log
@Replaced complex tests with small ones.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.61 2006/09/05 12:11:01 meskes Exp $
d28 1
d38 1
@


1.61
log
@Started to cleanup complex tests.
Added some interval checks to regression suite.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.60 2006/08/29 12:33:45 meskes Exp $
a31 1
	$(MAKE) -C complex $@@
a40 1
	$(MAKE) -C complex $@@
@


1.60
log
@Removed debug option from pg_regress call.
Changed file paths in expected files too.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.59 2006/08/28 16:13:11 tgl Exp $
d30 1
a30 1
	$(MAKE) -C errors $@@
d40 1
a40 1
	$(MAKE) -C errors $@@
@


1.59
log
@Partial fix for ecpg's VPATH problems.  It compiles and successfully
builds all the files needed for its regression tests, but the tests
themselves fail because of diffs in the #line directives output by
ecpg itself.  Not sure what to do about that.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.58 2006/08/19 13:42:40 meskes Exp $
d79 1
a79 1
	sh ./pg_regress  --dbname=regress1 --debug --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE)
d83 1
a83 1
	sh ./pg_regress  --dbname=regress1 --debug --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) --listen-on-tcp
d86 1
a86 1
	sh ./pg_regress  --dbname=regress1 --debug --top-builddir=$(top_builddir) --load-language=plpgsql $(NOLOCALE)
@


1.58
log
@More SoC stuff
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.57 2006/08/08 19:43:11 tgl Exp $
d20 6
d45 1
a45 3
	rm -f pg_regress.inc.sh regression.diffs

all: pg_regress.sh
d47 1
a47 1
pg_regress.sh: pg_regress.inc.sh
d49 1
a49 1
pg_regress.inc.sh: pg_regress.inc.sh.in $(top_builddir)/src/Makefile.global
d61 19
a79 2
check: all pg_regress.inc.sh
	sh ./pg_regress.sh  --dbname=regress1 --debug --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE)
d82 2
a83 2
checktcp: all pg_regress.inc.sh
	sh ./pg_regress.sh  --dbname=regress1 --debug --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) --listen-on-tcp
d85 2
a86 2
installcheck: all pg_regress.inc.sh
	sh ./pg_regress.sh  --dbname=regress1 --debug --top-builddir=$(top_builddir) --load-language=plpgsql $(NOLOCALE)
@


1.57
log
@Fix 'make clean' for change of regression.diffs file name.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.56 2006/08/04 14:18:09 tgl Exp $
d64 2
@


1.56
log
@'make clean' must remove the create subdirectories results/ and log/,
not merely remove their contents.  Else 'cvs update' complains.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.55 2006/08/04 08:52:17 meskes Exp $
d39 1
a39 1
	rm -f pg_regress.inc.sh regression.diff
@


1.55
log
@Regression test updates and fixes
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.54 2006/08/02 13:43:23 meskes Exp $
d38 1
a38 3
	rm -f results/*.stdout results/*.stderr results/*.c
	rm -rf tmp_check/
	rm -f log/*.log
@


1.54
log
@ynced parser and keyword list.
Implemented EXEC SQL UNDEF.
Applied first version of the regression test patch by Joachim Wieland <joe@@mcknight.de>.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.53 2006/02/08 09:10:05 meskes Exp $
d8 1
d20 1
a20 1
all clean install installdirs uninstall dep depend distprep:
d28 14
a41 2
# for some reason I couldn't figure out, ifeq($@@,clean) ... does not work
	if [ $@@ = clean ]; then rm -f results/*.stdout results/*.stderr results/*.c; rm -rf tmp_check/; rm -f log/*.log; rm -f pg_regress.inc.sh regression.diff; fi
d59 2
a60 2
test: all pg_regress.inc.sh
	sh ./pg_regress.sh  --dbname=regress1 --debug --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --listen-on-tcp --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE)
d62 3
a64 1
check: all test
@


1.53
log
@ Added just another test case.
 Fixed missing continuation line character.
 Do not translate $-quoting.
 Bit field notation belongs to a variable not a variable list.
 Output of line number only done by one function.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.52 2006/02/04 20:54:44 meskes Exp $
d7 2
a8 2
override CPPFLAGS := -I$(srcdir)/../include -I$(libpq_srcdir) $(CPPFLAGS)
override CFLAGS += $(PTHREAD_CFLAGS)
d10 2
a11 1
ECPG = ../preproc/ecpg -I$(srcdir)/../include
d13 4
a16 5
TESTS = test1 test2 test3 test4 test5 perftest dyntest dyntest2 test_notice \
	test_code100 test_init testdynalloc num_test dt_test test_informix \
	test_informix2 test_desc test_func
ifeq ($(enable_thread_safety), yes)
TESTS += test_thread test_thread_implicit
d19 26
a44 1
all: $(TESTS)
d46 2
a47 2
%: %.o
	$(CC) $(CFLAGS) $(LDFLAGS) -L../ecpglib -L ../pgtypeslib -L../../libpq $^ $(LIBS) -lpgtypes -lecpg -lpq $(PTHREAD_LIBS) -o $@@
d49 1
a49 2
test_informix: test_informix.o
	$(CC) $(CFLAGS) $(LDFLAGS) -L../compatlib -L../ecpglib -L ../pgtypeslib -L../../libpq $^ $(LIBS) -lpgtypes -lecpg -lecpg_compat -lpq $(PTHREAD_LIBS) -o $@@
a50 20
test_informix2: test_informix2.o
	$(CC) $(CFLAGS) $(LDFLAGS) -L../compatlib -L../ecpglib -L ../pgtypeslib -L../../libpq $^ $(LIBS) -lpgtypes -lecpg -lecpg_compat -lpq $(PTHREAD_LIBS) -o $@@
	
test4: test4.o
	$(CC) $(CFLAGS) $(LDFLAGS) -L../ecpglib -L ../pgtypeslib -L../../libpq $^ $(LIBS) -lpgtypes -lecpg -lpq $(PTHREAD_LIBS) -o $@@

%.c: %.pgc
	$(ECPG) -o $@@ -I$(srcdir) $<

test_informix.c: test_informix.pgc
	$(ECPG) -o $@@ -C INFORMIX -r no_indicator $<

test_informix2.c: test_informix2.pgc
	$(ECPG) -o $@@ -C INFORMIX  $<

test4.c: test4.pgc
	$(ECPG) -o $@@ -c  $<

clean:
	rm -f $(TESTS) $(TESTS:%=%.o) $(TESTS:%=%.c) log
@


1.52
log
@Added C bit fields to ecpg parser
Added some default rules to lexer
Added log output to prepare statement
Added some more stuff to a test case
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.51 2006/01/24 11:01:38 meskes Exp $
d14 1
a14 1
	test_informix2 test_desc
@


1.51
log
@- Synced parser and keyword list.
- Added another test case.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.50 2005/06/30 07:01:57 neilc Exp $
d30 3
d42 3
@


1.50
log
@Fix ecpg's test/ Makefile for out-of-tree (vpath) builds.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.49 2005/06/02 12:35:11 meskes Exp $
d14 1
a14 1
	test_desc
d27 3
d36 3
@


1.49
log
@- Fixed memory leak in ecpglib by adding some missing free() commands.
- Added patch by Gavin Scott <gavin@@planetacetech.com> for Intel 64bit hardware.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.48 2004/05/07 13:42:49 meskes Exp $
d26 1
a26 1
	
d28 1
a28 1
	$(ECPG) $<
d31 2
a32 1
	$(ECPG) -C INFORMIX -r no_indicator $<
a34 1
	
@


1.48
log
@- Added additional test case.
- Fixed bug that reversed string length in typedefs.
- Added portability file to pgtypeslib.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.47 2004/04/30 04:14:06 momjian Exp $
d13 2
a14 1
	test_code100 test_init testdynalloc num_test dt_test test_informix
@


1.47
log
@Minor adjustments to enable public-domain timezone library to be called
from our code.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.46 2004/04/25 20:57:32 momjian Exp $
d12 1
a12 1
TESTS = test1 test2 test3 test4 perftest dyntest dyntest2 test_notice \
@


1.46
log
@Make thread flags CFLAGS, not CPPFLAGS.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.45 2004/04/23 18:15:55 momjian Exp $
d12 2
a13 1
TESTS = test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init testdynalloc num_test dt_test test_informix
@


1.45
log
@Add new auto-detection of thread flags.

Allow additional thread flags to be added via port templates.

Change thread flag names to PTHREAD_CFLAGS and PTHREAD_LIBS to match new
configure script.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.44 2004/03/14 12:16:30 meskes Exp $
d7 2
a8 1
override CPPFLAGS := -I$(srcdir)/../include -I$(libpq_srcdir) $(CPPFLAGS) $(PTHREAD_CFLAGS)
@


1.44
log
@- Fixed Informix compat math functions to cope with the situations
  where one argument takes the result.
- Applied thread patches by Lee Kindness
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.43 2003/12/19 23:29:15 momjian Exp $
d7 1
a7 1
override CPPFLAGS := -I$(srcdir)/../include -I$(libpq_srcdir) $(CPPFLAGS) $(THREAD_CPPFLAGS)
d19 1
a19 1
	$(CC) $(CFLAGS) $(LDFLAGS) -L../ecpglib -L ../pgtypeslib -L../../libpq $^ $(LIBS) -lpgtypes -lecpg -lpq $(THREAD_LIBS) -o $@@
d22 1
a22 1
	$(CC) $(CFLAGS) $(LDFLAGS) -L../compatlib -L../ecpglib -L ../pgtypeslib -L../../libpq $^ $(LIBS) -lpgtypes -lecpg -lecpg_compat -lpq $(THREAD_LIBS) -o $@@
@


1.43
log
@Supress ecpg thread test if configure didn't enable threads.  Fix
tools/thread to run even if configure didn't enable threads because this
test is used before enabling threads for the OS.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.42 2003/11/29 19:52:09 pgsql Exp $
d13 1
a13 1
TESTS += test_thread
@


1.42
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d1 1
a1 1
# $PostgreSQL: /cvsroot/pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.41 2003/09/27 15:32:48 momjian Exp $
d11 4
a14 1
TESTS = test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init testdynalloc num_test dt_test test_informix test_thread
@


1.41
log
@Rename thread compile flag.  Move thread test program to tools/thread,
and improve tests.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.40 2003/08/06 02:19:51 momjian Exp $
@


1.41.2.1
log
@Supress ecpg thread test if configure didn't enable threads.  Fix
tools/thread to run even if configure didn't enable threads because this
test is used before enabling threads for the OS.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.41 2003/09/27 15:32:48 momjian Exp $
d11 1
a11 4
TESTS = test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init testdynalloc num_test dt_test test_informix
ifeq ($(enable_thread_safety), yes)
TESTS += test_thread
endif
@


1.40
log
@Add ecpg thread testing file.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.39 2003/08/01 13:53:36 petere Exp $
d7 1
a7 1
override CPPFLAGS := -I$(srcdir)/../include -I$(libpq_srcdir) $(CPPFLAGS) $(THREAD_CFLAGS)
@


1.39
log
@Make ecpg SQLSTATE-aware.  Map existing SQLCODE assignments to SQLSTATEs,
rather than parsing the message.  Add some documentation about embedded
SQL.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.38 2003/07/01 12:40:52 meskes Exp $
d7 1
a7 1
override CPPFLAGS := -I$(srcdir)/../include -I$(libpq_srcdir) $(CPPFLAGS)
d11 1
a11 1
TESTS = test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init testdynalloc num_test dt_test test_informix
d16 1
a16 1
	$(CC) $(CFLAGS) $(LDFLAGS) -L../ecpglib -L ../pgtypeslib -L../../libpq $^ $(LIBS) -lpgtypes -lecpg -lpq -o $@@
d19 1
a19 1
	$(CC) $(CFLAGS) $(LDFLAGS) -L../compatlib -L../ecpglib -L ../pgtypeslib -L../../libpq $^ $(LIBS) -lpgtypes -lecpg -lecpg_compat -lpq -o $@@
@


1.38
log
@Use ISO dates in pgtypeslib by default.
Applied patch by Philip Yarra to fix some thread issues.
Added a new data type "decimal" which is mostly the same as our
	"numeric" but uses a fixed length array to store the digits. This is
	for compatibility with Informix and maybe others.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.37 2003/06/25 10:44:21 meskes Exp $
d7 1
a7 1
override CPPFLAGS := -I$(srcdir)/../include $(CPPFLAGS)
@


1.37
log
@Implemented Informix special way to treat NULLs, removed warnings, synced.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.36 2003/04/08 17:09:51 tgl Exp $
d25 1
a25 1
	$(ECPG) -C INFORMIX $<
@


1.36
log
@Get rid of inappropriate flags in CPPFLAGS override --- these break
non-gcc compilers, and they would never belong in CPPFLAGS anyway.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.35 2003/03/20 15:56:50 meskes Exp $
d11 1
a11 1
TESTS = test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init testdynalloc num_test dt_test
d18 3
d24 2
d28 1
@


1.35
log
@Started adding date and timestamp.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.34 2003/03/16 10:42:54 meskes Exp $
d7 1
a7 1
override CPPFLAGS := -I$(srcdir)/../include $(CPPFLAGS) -g
@


1.34
log
@Started working on a seperate pgtypes library. First test work. PLEASE test compilation on iother systems.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/src/interfaces/ecpg/test/Makefile,v 1.33 2001/12/23 12:17:41 meskes Exp $
d11 1
a11 1
TESTS = test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init testdynalloc num_test
@


1.33
log
@- Removed space_or_nl and line_end from pgc.l.
- Fixed several bugs concerning arrays of structs including a memory
  allocation bug.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/test/Makefile,v 1.32 2001/11/14 11:11:49 meskes Exp $
d11 1
a11 1
TESTS = test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init testdynalloc
d16 1
a16 1
	$(CC) $(CFLAGS) $(LDFLAGS) -L../lib -L../../libpq $^ $(LIBS) -lecpg -lpq -o $@@
@


1.32
log
@Added Christof's patches.
@
text
@d1 1
a1 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/ecpg/test/Makefile,v 1.31 2001/08/11 10:52:09 petere Exp $
d7 1
a7 1
override CPPFLAGS := -I$(srcdir)/../include $(CPPFLAGS)
@


1.31
log
@Clean up some warnings and bugs and make things build easier.
@
text
@d1 1
a1 1
# $Header$
d11 1
a11 1
TESTS = test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init
@


1.30
log
@Fixes to make ecpg work on Cygwin, from Jason Tishler <Jason.Tishler@@dothill.com>.
@
text
@d1 1
a1 1
all: test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init
d3 3
a5 20
#LDFLAGS=-g -I /usr/local/pgsql/include -L/usr/local/pgsql/lib -lecpg -lpq
LDFLAGS=-g -I ../include
LDLIBS=-L ../lib -lecpg -L ../../libpq -lpq

#ECPG=/usr/local/pgsql/bin/ecpg -I../include
ECPG=../preproc/ecpg -I../include

.SUFFIXES: .pgc .c

test1: test1.c
test2: test2.c
test3: test3.c
test4: test4.c
perftest: perftest.c
dyntest: dyntest.c
dyntest2: dyntest2.c
test_code100: test_code100.c
test_notice: test_notice.c
test_init: test_init.c
test_text: test_text.c
d7 13
a19 2
.pgc.c:
	$(ECPG) $? 
d22 1
a22 1
	rm -f test1 test2 test3 test4 perftest *.c log dyntest dyntest2 test_notice test_code100 test_init test_text *.exe
@


1.29
log
@Applied two bug fixes by Christof Petig.
@
text
@d4 2
a5 1
LDFLAGS=-g -I ../include -I /usr/include/postgresql -L /usr/lib -lecpg -lpq
d28 1
a28 1
	rm -f test1 test2 test3 test4 perftest *.c log dyntest dyntest2 test_notice test_code100 test_init test_text
@


1.28
log
@- Fixed bug in a connect statement using varchars.
- Synced parser.
@
text
@d21 1
d27 1
a27 1
	rm -f test1 test2 test3 test4 perftest *.c log dyntest dyntest2 test_notice test_code100 test_init
@


1.27
log
@Fixed some bugs in C language parsing.
@
text
@d26 1
a26 1
	rm -f test1 test2 test3 test4 perftest *.c log dyntest dyntest2 test_notice test_code100
@


1.26
log
@removed binary file

CV: ----------------------------------------------------------------------
@
text
@d1 1
a1 1
all: test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100
@


1.25
log
@- Synced preproc.y with gram.y.
- Synced keyword.c.
- Added patch by Christof Petig <christof.petig@@wtal.de> to fix NOT
  FOUND problem on update/insert/delete.
@
text
@d26 1
a26 1
	rm -f test1 test2 test3 test4 perftest *.c log dyntest dyntest2
@


1.24
log
@*** empty log message ***
@
text
@d1 1
a1 1
all: test1 test2 test3 test4 perftest dyntest dyntest2 test_notice
@


1.23
log
@*** empty log message ***
@
text
@d1 1
a1 1
all: test1 test2 test3 test4 perftest dyntest dyntest2
d3 2
a4 1
LDFLAGS=-g -I /usr/local/pgsql/include -L/usr/local/pgsql/lib -lecpg -lpq
d6 2
a7 2
ECPG=/usr/local/pgsql/bin/ecpg -I../include
#ECPG=../preproc/ecpg -I../include
d18 3
@


1.22
log
@Update SCO FAQ. Billy G. Allie
@
text
@d5 2
a6 1
ECPG=../preproc/ecpg -I../include
d22 1
a22 1
	rm -f test1 test2 test3 test4 perftest *.c *.o log dyntest dyntest2
@


1.21
log
@Clean up ecpg test files.
@
text
@d21 1
a21 1
	rm -f test1 test2 test3 test4 perftest *.c log dyntest dyntest2
@


1.20
log
@*** empty log message ***
@
text
@d3 1
a3 3
LDFLAGS=-g -I /usr/local/pgsql/include -L/usr/local/pgsql/lib -lecpg -lpq -lcrypt
#LDFLAGS=-g -I../include -I/usr/include/postgresql  -L../lib -L/usr/lib/postgresql -lecpg -lpq -lcrypt 
#LDFLAGS=-g -I/usr/include/postgresql -lecpg -lpq -lcrypt
a4 1
#ECPG=/usr/local/pgsql/bin/ecpg
a5 1
#ECPG=/usr/bin/ecpg -I/usr/include/postgresql
d21 1
a21 1
	-/bin/rm test1 test2 test3 test4 perftest *.c log dyntest dyntest2
@


1.19
log
@*** empty log message ***
@
text
@d3 2
a4 2
#LDFLAGS=-g -I /usr/local/pgsql/include -L/usr/local/pgsql/lib -lecpg -lpq -lcrypt
LDFLAGS=-g -I../include -I/usr/include/postgresql  -L../lib -L/usr/lib/postgresql -lecpg -lpq -lcrypt 
@


1.18
log
@*** empty log message ***
@
text
@d1 1
a1 1
all: test1 test2 test3 test4 perftest dyntest
d4 1
a4 1
LDFLAGS=-g -I../include -I/usr/include/postgresql  -L/usr/lib/postgresql -L../lib -lecpg -lpq -lcrypt
d19 1
d25 1
a25 1
	-/bin/rm test1 test2 test3 test4 perftest *.c log dyntest
@


1.17
log
@*** empty log message ***
@
text
@d1 1
a1 1
all: stp.so test1 test2 test3 test4 test5 perftest dyntest
a16 1
test5: test5.c
a22 5
stp.so: stp.c
	cc -fPIC -I../include -I/usr/include/postgresql -c -o stp.o stp.c
	ld -Bdynamic -shared -soname stp.so -o stp.so stp.o -lpq -lecpg -lc


d24 1
a24 1
	-/bin/rm test1 test2 test3 test4 test5 perftest *.c log stp.o stp.so dyntest
@


1.16
log
@*** empty log message ***
@
text
@d30 1
a30 1
	-/bin/rm test1 test2 test3 test4 test5 perftest *.c log stp.o stp.so
@


1.15
log
@*** empty log message ***
@
text
@d1 1
a1 1
all: stp.so test1 test2 test3 test4 test5 perftest
d4 2
a5 2
#LDFLAGS=-g -I../include -I/usr/include/postgresql  -L/usr/lib/postgresql -L../lib -lecpg -lpq -lcrypt
LDFLAGS=-g -I/usr/include/postgresql -lecpg -lpq -lcrypt
d19 1
@


1.14
log
@*** empty log message ***
@
text
@d4 2
a5 2
LDFLAGS=-g -I../include -I/usr/include/postgresql  -L/usr/lib/postgresql -L../lib -lecpg -lpq -lcrypt
#LDFLAGS=-g -I/usr/include/postgresql -lecpg -lpq -lcrypt
@


1.13
log
@*** empty log message ***
@
text
@d4 2
a5 2
#LDFLAGS=-g -I../include -I/usr/include/postgresql  -L/usr/lib/postgresql -L../lib -lecpg -lpq -lcrypt
LDFLAGS=-g -I/usr/include/postgresql -lecpg -lpq -lcrypt
d8 2
a9 2
#ECPG=../preproc/ecpg -I../include
ECPG=/usr/bin/ecpg -I/usr/include/postgresql
d25 1
a25 1
	ld -Bdynamic -shared -soname stp.so -o stp.so stp.o -lpq -lecpg
@


1.12
log
@*** empty log message ***
@
text
@d4 2
a5 2
LDFLAGS=-g -I../include -I/usr/include/postgresql  -L/usr/lib/postgresql -L../lib -lecpg -lpq -lcrypt
#LDFLAGS=-g -I/usr/include/postgresql -lecpg -lpq -lcrypt
d8 2
a9 2
ECPG=../preproc/ecpg -I../include
#ECPG=/usr/bin/ecpg -I/usr/include/postgresql
d25 1
a25 1
	cc -shared -Wl,-soname,stp.so -o stp.so stp.o -lpq -lecpg
@


1.11
log
@*** empty log message ***
@
text
@d1 1
a1 1
all: test1 test2 test3 test4 perftest
d5 1
d9 1
d17 1
d23 5
d29 1
a29 1
	-/bin/rm test1 test2 test3 test4 perftest *.c log
@


1.10
log
@*** empty log message ***
@
text
@d3 5
a7 1
LDFLAGS=-g -I /usr/local/pgsql/include -L/usr/local/pgsql/lib -lecpg -lpq -lcrypt
d18 1
a18 1
	/usr/local/pgsql/bin/ecpg $?
@


1.9
log
@*** empty log message ***
@
text
@d1 1
a1 1
all: test1 test2 test3 perftest
d5 2
a7 3
test1.c: test1.pgc
	/usr/local/pgsql/bin/ecpg $?

a8 3
test2.c: test2.pgc
	/usr/local/pgsql/bin/ecpg $?

d10 2
a11 2
test3.c: test3.pgc
	/usr/local/pgsql/bin/ecpg $?
d13 1
a13 2
perftest: perftest.c
perftest.c:perftest.pgc
d17 1
a17 1
	-/bin/rm test1 test2 test3 perftest *.c log
@


1.8
log
@
From: Michael Meskes <Michael_Meskes@@topmail.de>

+
+ Son Feb 21 14:10:47 CET 1999
+
+       - Fixed variable detection in libecpg.
+
+ Mon Feb 22 19:47:45 CET 1999
+
+       - Added 'at <db_connection>' option to all commands it is apllicable
+         to. Due to changing the API of some libecpg functions this
+         requires me to increase the major version number.
+       - Synced pgc.l with scan.l.
+       - Added support for unions.
+       - Set library version to 3.0.0
+       - Set ecpg version to 3.0.0
@
text
@d1 1
a1 1
all: test1 test2 perftest
d13 4
d22 1
a22 1
	-/bin/rm test1 test2 perftest *.c log
@


1.7
log
@Okay, I've updated the ecpg parser yet again. Unfortunately it has one
remaining shift/reduce conflict. But the very same conflict is in gram.y, so
I don't dig into it very much now.

Anyway, I just saw that there were minor changes made to ecpg by others. Now
I like that but I would prefer if I was told about that. Otherwise my
version numbering and Changelog maintaining might break. Or simply change
these too. :-)

Also I had to add #include <errno.h> to  backend/libpq/pqcomprim.c to be
able to compile postgresql.

Patch is attached. Since my resubscription process is still not finished
yet, I still send them here.

Michael
@
text
@d18 1
a18 1
	/bin/rm test1 test2 perftest *.c log
@


1.6
log
@This one cleans the cursor problems ecpg had so far. It is now able
to understand cursors with variables.

Michael
@
text
@d3 1
a3 1
LDFLAGS=-g -I ../include -I ../../libpq -L../lib -lecpg -L../../libpq -lpq -lcrypt
d7 1
a7 1
	../preproc/ecpg $?
d11 1
a11 1
	../preproc/ecpg $?
d15 1
a15 1
	../preproc/ecpg $?
@


1.5
log
@From: Michael Meskes <meskes@@topsystem.de>

Tue Apr 28 14:48:41 CEST 1998

      - Put operator "->" back into parser. Note that :foo->bar means the
        C term, but :foo ->bar means the operator "->".

Tue Apr 28 15:49:07 CEST 1998

      - Added exec sql disconnect command.
      - Allow varchar in C to be written in uppercase too.
      - Added whenever option "do break;"

Wed Apr 29 09:17:53 CEST 1998

      - Corrected parsing of C comments.
      - Also allow C++ style comments.
      - Make sure not found is only checked after commands that could
          return it.
      - Added error codes, see ecpgerror.h for details.
      - Added "exec sql <TransactionStmt> release" as disconnect statement
        for compatibility issues.

Thu Apr 30 10:42:10 CEST 1998

      - Added a -t option to disable automatic transaction start.
      - Added sqlerrd[] to sqlca struct.
      - Give back number of tuples affect in sqlca.sqlerrd[2].

Thu Apr 30 13:36:02 CEST 1998

      - Make the return code different in case of different errors.

Wed May  6 11:42:48 CEST 1998

      - Free memory if possible
      - Some bugfixes for bugs I found while changing the memory
          allocation code
      - Now able to fill complete array with one call (see test1.pgc for
          an example)
      - Set version to 2.3.0
      - Set library version to 2.1
@
text
@d3 1
a3 1
LDFLAGS=-g -I ../include -I ../../libpq -L../lib -lecpg -L../../libpq -lpq -lcrypt --static
@


1.4
log
@Upgrade ECPG to 2.0

Michael Meskes <meskes@@topsystem.de>
@
text
@d1 7
a7 1
all: test2 perftest
a9 1
	gcc -g -I ../include -I ../../libpq -o test2 test2.c -L../lib -lecpg -L../../libpq -lpq -lcrypt --static
d11 1
a11 1
	../preproc/ecpg test2.pgc
d14 2
a15 3
	gcc -g -I ../include -I ../../libpq -o perftest perftest.c -L../lib -lecpg -L../../libpq -lpq -lcrypt --static
perftest.c: perftest.pgc
	../preproc/ecpg perftest.pgc
d18 1
a18 1
	/bin/rm test2 test2.c perftest perftest.c log
@


1.3
log
@Hi,

Attached you'll find a (big) patch that fixes make dep and make
depend in all Makefiles where I found it to be appropriate.

It also removes the dependency in Makefile.global for NAMEDATALEN
and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh
a little smarter.

This no longer requires initdb.sh that is turned into initdb with
a sed script when installing Postgres, hence initdb.sh should be
renamed to initdb (after the patch has been applied :-) )

This patch is against the 6.3 sources, as it took a while to
complete.

Please review and apply,

Cheers,

Jeroen van Vianen
@
text
@d4 1
a4 1
	gcc -g -I ../include -I ../../libpq -o test2 test2.c -L../lib -lecpg -L../../libpq -lpq -lcrypt
d6 1
a6 1
	ecpg test2.pgc
d9 1
a9 1
	gcc -g -I ../include -I ../../libpq -o perftest perftest.c -L../lib -lecpg -L../../libpq -lpq -lcrypt
d11 1
a11 1
	ecpg perftest.pgc
a14 2

dep depend:
@


1.2
log
@From: Michael Meskes <meskes@@topsystem.de>

Cleanups for ecpg, as well as a missing patch so that its configured in
@
text
@d15 2
@


1.1
log
@Erk, the whole directory structure changed on us here...
@
text
@d4 1
a4 1
	gcc -g -I ../include -I ../../../libpq -o test2 test2.c ../lib/libecpg.a ../../../libpq/libpq.a -lcrypt
d6 1
a6 1
	../preproc/ecpg test2.pgc
d9 1
a9 1
	gcc -g -I ../include -I ../../../libpq -o perftest perftest.c ../lib/libecpg.a ../../../libpq/libpq.a -lcrypt
d11 1
a11 1
	../preproc/ecpg perftest.pgc
d14 1
a14 1
	/bin/rm test2 test2.c perftest perftest.c
@
