Re: [HACKERS] Regression tests... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Regression tests...
Date
Msg-id 262.949989974@sss.pgh.pa.us
Whole thread Raw
In response to Regression tests...  (Chris Bitmead <chrisb@nimrod.itg.telstra.com.au>)
Responses Re: [HACKERS] Regression tests...  (wieck@debis.com (Jan Wieck))
List pgsql-hackers
Chris Bitmead <chrisb@nimrod.itg.telstra.com.au> writes:
> Is there a step-by-step guide somewhere that tells me how to add a new
> regression test? I've had a bit of a hunt around, and exactly what to do
> to add a test isn't clear.

There's not that much to it, assuming you don't need any platform-
specific variations in the expected output.  You make a script under
regress/sql/, add its name in an appropriate place in
sql/run_check.tests, run it, and drop the results file into expected/
(hopefully after manual verification ;-))

BTW, am I right in thinking that sql/tests is now dead code?  If so,
we should flush it, or more likely rename run_check.tests to just tests.
Jan?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Chris Bitmead
Date:
Subject: Bug in cursors??
Next
From: Chris Bitmead
Date:
Subject: Re: [HACKERS] New Globe