Re: [HACKERS] Regression tests

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: chris(at)bitmead(dot)com
Cc: "pgsql-hackers(at)postgreSQL(dot)org" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] Regression tests
Date: 2000-02-09 05:23:50
Message-ID: 4550.950073830@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hiroshi Inoue 2000-02-09 06:24:41 RE: [HACKERS] Bug in cursors??
Previous Message Thomas Lockhart 2000-02-09 03:02:40 Re: [HACKERS] Regression tests