head	1.3;
access;
symbols
	REL7_2_8:1.2
	REL7_2_7:1.2
	REL7_2_6:1.2
	REL7_2_5:1.2
	REL7_2_4:1.2
	REL7_2_3:1.2
	REL7_2_STABLE:1.2.0.4
	REL7_2:1.2
	REL7_2_RC2:1.2
	REL7_2_RC1:1.2
	REL7_2_BETA5:1.2
	REL7_2_BETA4:1.2
	REL7_2_BETA3:1.2
	REL7_2_BETA2:1.2
	REL7_2_BETA1:1.2
	REL7_1_2:1.2
	REL7_1_STABLE:1.2.0.2
	REL7_1_BETA:1.2
	REL7_1_BETA3:1.2
	REL7_1_BETA2:1.2
	REL7_1:1.2
	REL7_0_PATCHES:1.1.0.6
	REL7_0:1.1
	REL6_5_PATCHES:1.1.0.4
	REL6_5:1.1
	REL6_4:1.1.0.2;
locks; strict;
comment	@# @;


1.3
date	2002.08.22.23.33.43;	author tgl;	state dead;
branches;
next	1.2;

1.2
date	2000.10.22.23.25.11;	author tgl;	state Exp;
branches;
next	1.1;

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


desc
@@


1.3
log
@Since the plpgsql test has been part of the standard regression tests
for a good long while, I see no reason to maintain this original copy.
@
text
@#!/bin/sh

DB=plpgsql_test
export DB

FRONTEND="psql -e -q -X"
export FRONTEND

echo "*** destroy old $DB database ***"
dropdb $DB

echo "*** create new $DB database ***"
createdb $DB

echo "*** install PL/pgSQL ***"
createlang plpgsql $DB

echo "*** create tables ***"
$FRONTEND -f tables.sql -d $DB >output/tables.out 2>&1
if cmp -s output/tables.out expected/tables.out ; then
    echo "OK"
else
    echo "FAILED"
fi

echo "*** create triggers ***"
$FRONTEND -f triggers.sql -d $DB >output/triggers.out 2>&1
if cmp -s output/triggers.out expected/triggers.out ; then
    echo "OK"
else
    echo "FAILED"
fi

echo "*** create views and support functions ***"
$FRONTEND -f views.sql -d $DB >output/views.out 2>&1
if cmp -s output/views.out expected/views.out ; then
    echo "OK"
else
    echo "FAILED"
fi

echo "*** running tests ***"
$FRONTEND -f test.sql -d $DB >output/test.out 2>&1
if cmp -s output/test.out expected/test.out ; then
    echo "OK"
else
    echo "FAILED"
fi

@


1.2
log
@plpgsql regress tests seem a tad out of date ... repair bit rot.
@
text
@@


1.1
log
@move plpgsql
@
text
@d6 1
a6 1
FRONTEND="psql -n -e -q"
d10 1
a10 1
destroydb $DB
d16 1
a16 1
$FRONTEND -f mklang.sql -d $DB >/dev/null 2>&1
@
