head	1.12;
access;
symbols
	REL7_0_PATCHES:1.10.0.2
	REL7_0:1.10
	REL6_5_PATCHES:1.9.0.4
	REL6_5:1.9
	REL6_4:1.9.0.2
	release-6-3:1.8;
locks; strict;
comment	@# @;


1.12
date	2000.09.29.17.17.40;	author petere;	state dead;
branches;
next	1.11;

1.11
date	2000.08.31.16.12.30;	author petere;	state Exp;
branches;
next	1.10;

1.10
date	2000.01.09.19.34.40;	author tgl;	state Exp;
branches;
next	1.9;

1.9
date	98.09.29.12.42.11;	author scrappy;	state Exp;
branches;
next	1.8;

1.8
date	97.08.28.04.49.23;	author vadim;	state Exp;
branches;
next	1.7;

1.7
date	97.05.05.06.52.58;	author vadim;	state Exp;
branches;
next	1.6;

1.6
date	97.05.02.13.43.14;	author thomas;	state Exp;
branches;
next	1.5;

1.5
date	97.04.27.19.28.20;	author thomas;	state Exp;
branches;
next	1.4;

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

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

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

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


desc
@@


1.12
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
@#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for regress/output (the regression test)
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/test/regress/output/Makefile,v 1.11 2000/08/31 16:12:30 petere Exp $
#
#-------------------------------------------------------------------------

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

#
# ... plus test query inputs
#
# INFILES is the files the regression test uses for input.
INFILES= copy.out \
         create_function_1.out \
         create_function_2.out \
         misc.out \
	 constraints.out

all: $(INFILES)

%.out: %.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 $@@; \
	OBJ=`pwd`; \
	sed -e "s:_OBJWD_:$$OBJ/\.\.:g" \
	    -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
	    -e "s:_LIBDIR_:$(libdir):g" \
	    -e "s/_USER_/$$USER/g" < $< | \
	sed -e "s:output/\.\.:input/\.\.:g" > ../expected/$@@
@


1.11
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/output/Makefile,v 1.10 2000/01/09 19:34:40 tgl Exp $
@


1.10
log
@install_plpgsql is no longer a regress test (it's done via createlang);
remove the no-longer-used files.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/test/regress/output/Makefile,v 1.9 1998/09/29 12:42:11 scrappy Exp $
d14 3
a16 2
SRCDIR= ../../..
include ../../../Makefile.global
d38 1
a38 1
	    -e "s:_LIBDIR_:$(LIBDIR):g" \
a40 1

@


1.9
log
@
From: Jan Wieck <jwieck@@debis.com>

    here  is  the  patch  that  includes  PL/pgSQL into the build
    (currently with make errors ignored) and  adds  a  regression
    test for it. A clean build and regression ran fine here.

    Can you please apply it?

    The  tar  should  be  extracted  in  /usr/local/src/pgsql and
    creates the following files:

    src/pl/Makefile
            called by toplevel GNUmakefile and for now only calls
            src/pl/plpgsql/Makefile

    src/pl/plpgsql/Makefile
            calls  src/pl/plpgsql/src/Makefile  (here the call to
            make ignores build errors  -  this  must  be  changed
            later for the final release).

    src/test/regress/input/install_plpgsql.source
            SQL script installing PL/pgSQL language in regression
            database. Will be modified by  .../input/Makefile  to
            point  to  correct  PGLIB  directory where plpgsql.so
            gets installed.

    src/test/regress/output/install_plpgsql.source
            expected output for installation script.

    src/test/regress/sql/plpgsql.sql
            the main regression  test.  It  tests  functions  and
            triggers written in PL/pgSQL including views that use
            supportfunctions in this language.

    src/test/regress/expected/plpgsql.out
            the expected output for the above regression test.

    make_plpgsql.diff
            patch that adds some lines to

            src/GNUmakefile.in
            src/test/regress/expected/Makefile
            src/test/regress/input/Makefile
            src/test/regress/output/Makefile
            src/test/regress/sql/Makefile
            src/test/regress/sql/tests
@
text
@d4 1
a4 1
#    Makefile for regress (the regression test)
d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/test/regress/output/Makefile,v 1.8 1997/08/28 04:49:23 vadim Exp $
d25 1
a25 2
	 constraints.out \
	 install_plpgsql.out
@


1.8
log
@Tests for CHECK/DEFAULT
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/test/regress/output/Makefile,v 1.7 1997/05/05 06:52:58 vadim Exp $
d25 2
a26 1
	 constraints.out
d38 1
@


1.7
log
@There is no more _CWD_ tag in sources...
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/test/regress/output/Makefile,v 1.6 1997/05/02 13:43:14 thomas Exp $
d24 2
a25 1
         misc.out
@


1.6
log
@Add substitution from output/.. to input/.. to match templates from inputs.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/test/regress/output/Makefile,v 1.5 1997/04/27 19:28:20 thomas Exp $
a32 1
	PWD=`pwd`; \
d34 1
a34 2
	sed -e "s:_CWD_:$$PWD:g" \
	    -e "s:_OBJWD_:$$OBJ/\.\.:g" \
@


1.5
log
@Provide template for the misc tests which contain path names.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/test/regress/output/Makefile,v 1.4 1997/04/27 04:50:06 scrappy Exp $
d35 1
a35 1
	sed -e "s:_CWD_:$(PWD):g" \
d38 2
a39 1
	    -e "s/_USER_/$$USER/g" < $< > ../expected/$@@
@


1.4
log
@Get first four tests to pass:

=============== destroying old regression database... =================
=============== creating new regression database...   =================
=============== running regression queries...         =================
create_function_1 .. ok
create_type .. ok
create_table .. ok
create_function_2 .. ok
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/test/regress/output/Makefile,v 1.3 1997/04/26 05:45:13 scrappy Exp $
d23 2
a24 1
         create_function_2.out
@


1.3
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/output/Makefile,v 1.2 1997/04/06 08:28:57 scrappy Exp $
d31 8
a38 12
	rm -f expected.out; \
	MYTZ=`date | cut -c21`; \
	C="`pwd`"; \
	sed -e "s:_CWD_:$(PWD)/\.\.:g" \
	    -e "s:\.\./output:\.\./input:g" \
	    -e "s:_OBJWD_:$(PWD):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" < $< | \
	sed -e "s:/output/\.\./:/input/\.\./:g"> ../expected/$@@
	@@echo "YOUR EXPECTED RESULTS ARE NOW IN FILE expected.out."
@


1.2
log
@More splits and cleanups...

Its starting to actually take shape and look as expected...
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/test/regress/output/Makefile,v 1.1 1997/04/05 21:25:02 scrappy Exp $
d30 1
a30 1
	if [ -z "$$USER" ]; then echo 'Cannot deduce $USER.'; exit 1; fi; \
d34 2
a35 1
	sed -e "s:_CWD_:$(PWD):g" \
d40 2
a41 1
	    -e "s:_USER_:$$USER:g" < $< > ../expected/$@@
@


1.1
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 $
d21 3
a23 2
INFILES= create_misc.out \
         create_function.out
@
