Re: [PATCHES] modular pg_regress.sh

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: joe(at)mcknight(dot)de
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [PATCHES] modular pg_regress.sh
Date: 2006-07-21 03:22:40
Message-ID: 14895.1153452160@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

"Joachim Wieland" <joe(at)mcknight(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message mcguire 2006-07-21 03:38:40 [RTLWS8-CFP] Eighth Real-Time Linux Workshop 2nd CFP
Previous Message Joe Conway 2006-07-21 03:09:47 Re: [PATCHES] 8.2 features?

Browse pgsql-patches by date

  From Date Subject
Next Message Robert Lor 2006-07-21 07:40:53 Generic Monitoring Framework with DTrace patch
Previous Message Joe Conway 2006-07-21 03:09:47 Re: [PATCHES] 8.2 features?