Re: modular pg_regress.sh

From: "Joachim Wieland" <joe(at)mcknight(dot)de>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: modular pg_regress.sh
Date: 2006-07-20 17:28:44
Message-ID: a7ac39f80479788024546a50d644a5f7@
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On July 19, 4:52 am Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Joachim Wieland <joe(at)mcknight(dot)de> writes:
> > I propose a patch to make pg_regress.sh more modular.
>
> This patch has been pretty thoroughly superseded by the recent rewrite
> of pg_regress in C. It's possible that we could modularize the C
> version, but what I'd like to know first is why you can't just use
> pg_regress as-is. If it's short a small feature or two, perhaps adding
> those would be the way to go.

My initial reason for doing this was ecpg testing. There, i'm interested in
the diffs of the actual .c file the precompiler creates as well as the
programm output when running it and the libecpg debug output.

I thought however that it would be nice to offer a kind of regression
framework, that lets you easily parse command line options, create a temp
environment (if desired), initialize the server with databases, roles,
languages, start up the server, clean up everything afterwards and so on.
This part probably is the same for any regression test, the only part that
differs is how the tests are actually run and what gets compared to what.

Not only ecpg could profit but also contrib modules and modules that are
not included in the distribution (like postgis for example or other stuff
on pgfoundry).

Joachim

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-07-20 17:59:43 Re: lastval exposes information that currval does not
Previous Message Peter Eisentraut 2006-07-20 17:09:13 Re: Units in postgresql.conf

Browse pgsql-patches by date

  From Date Subject
Next Message Joe Conway 2006-07-20 23:13:34 Re: [PATCHES] 8.2 features?
Previous Message Hiroshi Saito 2006-07-20 15:24:01 Re: pg_regress breaks on msys