Re: [PATCHES] modular pg_regress.sh - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCHES] modular pg_regress.sh
Date
Msg-id 14895.1153452160@sss.pgh.pa.us
Whole thread Raw
List pgsql-hackers
"Joachim Wieland" <joe@mcknight.de> writes:
> 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.

Given that pg_regress is now in C (and only a few minutes ago did I stop
entertaining the idea of reverting that patch ... man, the Windows port
was painful), the way this would need to work is to split it into a
library and main program.  Which isn't unreasonable if you feel like
doing the work.  I'd suggest that at that point, pg_regress is no longer
some random thingie under src/test/regress, but would need to be
promoted to have its own source directory, perhaps under src/bin.

Also, we've speculated endlessly about developing a more general testing
framework that could for instance support serious testing of concurrent
behavior.  Maybe here is a good place to start making that happen.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: [PATCHES] 8.2 features?
Next
From: Robert Lor
Date:
Subject: Re: [PERFORM] Sun Donated a Sun Fire T2000 to the PostgreSQL