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

From Tom Lane
Subject Re: [HACKERS] Regression tests
Date
Msg-id 4550.950073830@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Regression tests  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
List pgsql-hackers
>> Let's say I want to write regression tests to ensure that everything
>> related to inheritance works. One test I would want would be to make
>> sure pg_dump works for inheritance. What is the preferred way to make
>> regression tests which aren't sql?

> This has come up just recently, and afaik we don't have a precedence
> for it in the current regression tests.

No, there are no formalized tests at all that exercise pg_dump.

The informal test that's been around for a while is to pg_dump
the regression database, load into a fresh DB, pg_dump again,
and compare the second dump's output to the first's.  But there's
no automation for this, and I'm not sure you can really expect
the resulting scripts to be bit-for-bit the same anyway (there
might be ordering differences).

If you feel like developing a more believable testing strategy
for pg_dump, ain't nobody gonna get in your way.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: [HACKERS] Regression tests
Next
From: "Hiroshi Inoue"
Date:
Subject: RE: [HACKERS] Bug in cursors??