pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedmaking the testsuite installable
3+ messages / 2 participants
[nested] [flat]
* making the testsuite installable
@ 2014-11-18 09:14 Pavel Raiskup <praiskup@redhat.com>
0 siblings, 1 reply; 3+ messages in thread
From: Pavel Raiskup @ 2014-11-18 09:14 UTC (permalink / raw)
To: pgsql-odbc
Hello all.
My issue with current testsuite solution:
The testsuite requires 'root' account. Thats needed because successful run
requires PostgreSQL properly configured and running. This is hardly
achievable during package build because (e.g. in Fedora) we build packages
under non-privileged user.
Running git testsuite against distributed psqlodbc is not comfortable so
I doubt users run the testsuite. Running the testsuite automatically is
not trivial.
It would be really nice to have the testsuite installed with 'make
install'. That would allow us to package the testsuite as separated
(sub)package and distribute it to end-users (who should be able to have
enough privileges). It would also allow me to write privileged scripts
for downstream testing.
Would you be interested in patches implementing this? ..
* adding option ./configure --enable-dist-tests (default off)
* make tests sub-directory autoreconfed
Pavel
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: making the testsuite installable
@ 2014-11-18 09:29 Christoph Berg <cb@df7cb.de>
parent: Pavel Raiskup <praiskup@redhat.com>
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Berg @ 2014-11-18 09:29 UTC (permalink / raw)
To: Pavel Raiskup <praiskup@redhat.com>; +Cc: pgsql-odbc
Re: Pavel Raiskup 2014-11-18 <13115650.4ECf6iphU0@nb.usersys.redhat.com>
> Hello all.
>
> My issue with current testsuite solution:
>
> The testsuite requires 'root' account. Thats needed because successful run
> requires PostgreSQL properly configured and running. This is hardly
> achievable during package build because (e.g. in Fedora) we build packages
> under non-privileged user.
>
> Running git testsuite against distributed psqlodbc is not comfortable so
> I doubt users run the testsuite. Running the testsuite automatically is
> not trivial.
>
> It would be really nice to have the testsuite installed with 'make
> install'. That would allow us to package the testsuite as separated
> (sub)package and distribute it to end-users (who should be able to have
> enough privileges). It would also allow me to write privileged scripts
> for downstream testing.
The Debian package uses a temporary cluster created by the buildd user
to run the tests:
http://anonscm.debian.org/cgit/pkg-postgresql/psqlodbc.git/tree/debian/tests/buildtime
pg_virtualenv is at
https://alioth.debian.org/scm/loggerhead/pkg-postgresql/postgresql-common/trunk/view/head:/pg_virtua...
> Would you be interested in patches implementing this? ..
> * adding option ./configure --enable-dist-tests (default off)
> * make tests sub-directory autoreconfed
We have some troubles here too because we are building out-of-tree,
while the testsuite is run in tree, but so far this worked:
clean::
# tests are run in tree, while configure is OOT
$(MAKE) -C test -f Makefile.in distclean PG_CONFIG=pg_config
Christoph
--
cb@df7cb.de | http://www.df7cb.de/
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: making the testsuite installable
@ 2014-11-18 10:51 Pavel Raiskup <praiskup@redhat.com>
parent: Christoph Berg <cb@df7cb.de>
0 siblings, 0 replies; 3+ messages in thread
From: Pavel Raiskup @ 2014-11-18 10:51 UTC (permalink / raw)
To: Christoph Berg <cb@df7cb.de>; +Cc: pgsql-odbc
On Tuesday 18 of November 2014 10:29:29 Christoph Berg wrote:
> Re: Pavel Raiskup 2014-11-18 <13115650.4ECf6iphU0@nb.usersys.redhat.com>
> > It would be really nice to have the testsuite installed with 'make
> > install'. That would allow us to package the testsuite as separated
> > (sub)package and distribute it to end-users (who should be able to have
> > enough privileges). It would also allow me to write privileged scripts
> > for downstream testing.
>
> The Debian package uses a temporary cluster created by the buildd user
> to run the tests:
> http://anonscm.debian.org/cgit/pkg-postgresql/psqlodbc.git/tree/debian/tests/buildtime
>
> pg_virtualenv is at
> https://alioth.debian.org/scm/loggerhead/pkg-postgresql/postgresql-common/trunk/view/head:/pg_virtua...
>
> > Would you be interested in patches implementing this? ..
> > * adding option ./configure --enable-dist-tests (default off)
> > * make tests sub-directory autoreconfed
>
> We have some troubles here too because we are building out-of-tree,
> while the testsuite is run in tree, but so far this worked:
Thanks a lot for the links, Christoph. I think about something similar,
though making the upstream distribution tarball more friendly could make
it lot easier. Especially for end-user testing.
Pavel
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2014-11-18 10:51 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-11-18 09:14 making the testsuite installable Pavel Raiskup <praiskup@redhat.com>
2014-11-18 09:29 ` Christoph Berg <cb@df7cb.de>
2014-11-18 10:51 ` Pavel Raiskup <praiskup@redhat.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox