From: Christoph Berg <cb@df7cb.de>
To: Pavel Raiskup <praiskup@redhat.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: making the testsuite installable
Date: Tue, 18 Nov 2014 10:29:29 +0100
Message-ID: <20141118092929.GA8660@msg.df7cb.de> (raw)
In-Reply-To: <13115650.4ECf6iphU0@nb.usersys.redhat.com>
References: <13115650.4ECf6iphU0@nb.usersys.redhat.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: cb@df7cb.de, praiskup@redhat.com
Subject: Re: making the testsuite installable
In-Reply-To: <20141118092929.GA8660@msg.df7cb.de>
References: <13115650.4ECf6iphU0@nb.usersys.redhat.com> <20141118092929.GA8660@msg.df7cb.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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