Thread: [RPM] and regression tests

[RPM] and regression tests

From
Marvin Solomon
Date:
Your page http://www.ca.postgresql.org/ftpsite/binary/v7.2/RPMS/README.rpm-dist
says to run regression tests by

  cd /usr/lib/pgsql/test/regress
  ./pg_regress.sh --schedule=parallel_schedule

but this directory does not exist.  SFAICT, the regression tests are only in the
source rpm.  The latest documentation (I'm using 7.2.1-4 on RH 7.2) says to run
regression tests by running various gmake commands from the build directory.
This is of no help if you're installing from a binary rpm rather than from source.



Re: [RPM] and regression tests

From
Lamar Owen
Date:
On Monday 01 July 2002 09:38 am, Marvin Solomon wrote:
> http://www.ca.postgresql.org/ftpsite/binary/v7.2/RPMS/README.rpm-dist says
> to run regression tests by

>   cd /usr/lib/pgsql/test/regress
>   ./pg_regress.sh --schedule=parallel_schedule

> but this directory does not exist.  SFAICT, the regression tests are only
> in the source rpm.

Red Hat decided not to ship the postgresql-test subpackage.  Rebuilding from
the source RPM with the line:
rpm --rebuild --define 'test 1' postgresql.src.rpm
will build the whole shooting match over.

That was Red Hat's decision, not mine.  You can of course grab the PGDG binary
RPM's from ftp.postgresql.org -- although they are built for Red Hat 7.3, not
7.2.

Note also that several tests will fail in their default state when run as
stated.  You will need to investigate the regress.diff in order to determine
why -- locale setting is the biggest offender on 7.2.  A failing regression
test doesn't necessarily indicate a broken installation -- it indicates a
difference in what was expected to be output by the test queries and the
actual output of the test queries.
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11