pgsql: Allow pg_regress to be run outside the build tree.

Lists: pgsql-committerspgsql-hackers
From: petere(at)postgresql(dot)org (Peter Eisentraut)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Allow pg_regress to be run outside the build tree.
Date: 2008-10-01 22:38:57
Message-ID: 20081001223857.30A207545A4@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Log Message:
-----------
Allow pg_regress to be run outside the build tree. Look for input files
in both input and output dir, to handle vpath builds more simply.

Modified Files:
--------------
pgsql/src/makefiles:
pgxs.mk (r1.12 -> r1.13)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/makefiles/pgxs.mk?r1=1.12&r2=1.13)
pgsql/src/pl/plperl:
GNUmakefile (r1.34 -> r1.35)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plperl/GNUmakefile?r1=1.34&r2=1.35)
pgsql/src/pl/plpython:
Makefile (r1.29 -> r1.30)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/Makefile?r1=1.29&r2=1.30)
pgsql/src/pl/tcl:
Makefile (r1.51 -> r1.52)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/tcl/Makefile?r1=1.51&r2=1.52)
pgsql/src/test/regress:
GNUmakefile (r1.74 -> r1.75)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/GNUmakefile?r1=1.74&r2=1.75)
pg_regress.c (r1.47 -> r1.48)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/pg_regress.c?r1=1.47&r2=1.48)
pg_regress.h (r1.3 -> r1.4)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/pg_regress.h?r1=1.3&r2=1.4)
pg_regress_main.c (r1.3 -> r1.4)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/pg_regress_main.c?r1=1.3&r2=1.4)
pgsql/src/test/regress/input:
create_function_1.source (r1.18 -> r1.19)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/input/create_function_1.source?r1=1.18&r2=1.19)
create_function_2.source (r1.15 -> r1.16)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/input/create_function_2.source?r1=1.15&r2=1.16)
pgsql/src/test/regress/output:
create_function_1.source (r1.32 -> r1.33)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/output/create_function_1.source?r1=1.32&r2=1.33)
create_function_2.source (r1.21 -> r1.22)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/output/create_function_2.source?r1=1.21&r2=1.22)


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Allow pg_regress to be run outside the build tree.
Date: 2008-10-02 05:14:05
Message-ID: 17225.1222924445@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

petere(at)postgresql(dot)org (Peter Eisentraut) writes:
> Allow pg_regress to be run outside the build tree. Look for input files
> in both input and output dir, to handle vpath builds more simply.

Buildfarm doesn't like this patch much :-(. It's definitely not working
on the MSVC setup, and it looks like VPATH builds on Unixen aren't in
good shape either.

regards, tom lane


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Allow pg_regress to be run outside the build tree.
Date: 2008-10-02 11:51:08
Message-ID: 48E4B5AC.9030600@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Tom Lane wrote:
> petere(at)postgresql(dot)org (Peter Eisentraut) writes:
>> Allow pg_regress to be run outside the build tree. Look for input files
>> in both input and output dir, to handle vpath builds more simply.
>
> Buildfarm doesn't like this patch much :-(. It's definitely not working
> on the MSVC setup, and it looks like VPATH builds on Unixen aren't in
> good shape either.

vpath build should be fixed now. MSVC will need to update the
pg_regress call sites, but I'll leave that to those maintaining that
build system. In particular, the --dlpath option needs to be added.


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: [COMMITTERS] pgsql: Allow pg_regress to be run outside the build tree.
Date: 2008-10-02 12:27:47
Message-ID: 23617.1222950467@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> vpath build should be fixed now. MSVC will need to update the
> pg_regress call sites, but I'll leave that to those maintaining that
> build system. In particular, the --dlpath option needs to be added.

contrib is still pretty broken. One part of it is needing a --srcdir
option in pgxs.mk, which I fixed. But some of the modules still
fail --- it looks like the problem is with the ones having data/
subdirectories. You seem to have taken out the copying of the data
files into the vpath build tree, but I think you might have to
put it back.

regards, tom lane


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: [COMMITTERS] pgsql: Allow pg_regress to be run outside the build tree.
Date: 2008-10-02 13:19:53
Message-ID: 48E4CA79.6050907@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Tom Lane wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
>> vpath build should be fixed now. MSVC will need to update the
>> pg_regress call sites, but I'll leave that to those maintaining that
>> build system. In particular, the --dlpath option needs to be added.
>
> contrib is still pretty broken. One part of it is needing a --srcdir
> option in pgxs.mk, which I fixed. But some of the modules still
> fail --- it looks like the problem is with the ones having data/
> subdirectories. You seem to have taken out the copying of the data
> files into the vpath build tree, but I think you might have to
> put it back.

I think the right fix would be to convert those .sql files to
input/*.source files and have pg_regress substitute the absolute
directory names in them, like it is done for the backend.


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: [COMMITTERS] pgsql: Allow pg_regress to be run outside the build tree.
Date: 2008-10-02 13:28:24
Message-ID: 25078.1222954104@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Tom Lane wrote:
>> contrib is still pretty broken. One part of it is needing a --srcdir
>> option in pgxs.mk, which I fixed. But some of the modules still
>> fail --- it looks like the problem is with the ones having data/
>> subdirectories. You seem to have taken out the copying of the data
>> files into the vpath build tree, but I think you might have to
>> put it back.

> I think the right fix would be to convert those .sql files to
> input/*.source files and have pg_regress substitute the absolute
> directory names in them, like it is done for the backend.

Ugh. I don't think it's acceptable to make contrib modules have to do
that. Even if we fix all the ones in core, what of other people relying
on the pgxs infrastructure?

regards, tom lane


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: [COMMITTERS] pgsql: Allow pg_regress to be run outside the build tree.
Date: 2008-10-02 14:29:04
Message-ID: 48E4DAB0.5090307@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Tom Lane wrote:
>> I think the right fix would be to convert those .sql files to
>> input/*.source files and have pg_regress substitute the absolute
>> directory names in them, like it is done for the backend.
>
> Ugh. I don't think it's acceptable to make contrib modules have to do
> that. Even if we fix all the ones in core, what of other people relying
> on the pgxs infrastructure?

Yeah, true. Maybe copy the data directory over, but let pg_regress do it?


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: [COMMITTERS] pgsql: Allow pg_regress to be run outside the build tree.
Date: 2008-10-02 14:33:27
Message-ID: 29459.1222958007@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Tom Lane wrote:
>> Ugh. I don't think it's acceptable to make contrib modules have to do
>> that. Even if we fix all the ones in core, what of other people relying
>> on the pgxs infrastructure?

> Yeah, true. Maybe copy the data directory over, but let pg_regress do it?

That'd be okay with me. pg_regress already knows a lot about the
subdirectory structure it's working with, so one more thing doesn't
sound too bad.

regards, tom lane


From: Bjorn Munch <Bjorn(dot)Munch(at)sun(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: [COMMITTERS] pgsql: Allow pg_regress to be run outside the build tree.
Date: 2008-10-03 07:29:35
Message-ID: 20081003072935.GA1248@khepri12.norway.sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

On 02/10 17.29, Peter Eisentraut wrote:
> Tom Lane wrote:
> >>I think the right fix would be to convert those .sql files to
> >>input/*.source files and have pg_regress substitute the absolute
> >>directory names in them, like it is done for the backend.
> >
> >Ugh. I don't think it's acceptable to make contrib modules have to do
> >that. Even if we fix all the ones in core, what of other people relying
> >on the pgxs infrastructure?
>
> Yeah, true. Maybe copy the data directory over, but let pg_regress do it?

For the record: when I integrated the pg_regress test suite (8.3.3)
into OpenSolaris recently, I worked around various problems by making
a wrapper script pg_regress.sh which copies everything into a
temporary directory structure and then runs pg_regress from there.

This involved creating three levels of dummy directories due to some
hardcoded "../../../" in paths. A bit ugly, but then this package
isn't to be included in the standard distribution to end users, but
will be used by Solaris QA.

--
Bjorn Munch Sun Microsystems
Trondheim, Norway http://sun.com/postgresql/


From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Bjorn Munch <Bjorn(dot)Munch(at)sun(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: [COMMITTERS] pgsql: Allow pg_regress to be run outside the build tree.
Date: 2009-01-08 03:24:54
Message-ID: 200901080324.n083Osj14640@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers


Is this a TODO?

---------------------------------------------------------------------------

Bjorn Munch wrote:
> On 02/10 17.29, Peter Eisentraut wrote:
> > Tom Lane wrote:
> > >>I think the right fix would be to convert those .sql files to
> > >>input/*.source files and have pg_regress substitute the absolute
> > >>directory names in them, like it is done for the backend.
> > >
> > >Ugh. I don't think it's acceptable to make contrib modules have to do
> > >that. Even if we fix all the ones in core, what of other people relying
> > >on the pgxs infrastructure?
> >
> > Yeah, true. Maybe copy the data directory over, but let pg_regress do it?
>
> For the record: when I integrated the pg_regress test suite (8.3.3)
> into OpenSolaris recently, I worked around various problems by making
> a wrapper script pg_regress.sh which copies everything into a
> temporary directory structure and then runs pg_regress from there.
>
> This involved creating three levels of dummy directories due to some
> hardcoded "../../../" in paths. A bit ugly, but then this package
> isn't to be included in the standard distribution to end users, but
> will be used by Solaris QA.
>
> --
> Bjorn Munch Sun Microsystems
> Trondheim, Norway http://sun.com/postgresql/
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +