Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xqf6R-0003Ql-7j for pgsql-odbc@arkaria.postgresql.org; Tue, 18 Nov 2014 09:29:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xqf6Q-0005CE-Nh for pgsql-odbc@arkaria.postgresql.org; Tue, 18 Nov 2014 09:29:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xqf6Q-0005C8-5a for pgsql-odbc@postgresql.org; Tue, 18 Nov 2014 09:29:38 +0000 Received: from feynman.df7cb.de ([2001:6f8:10ee::1]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xqf6M-0001Pz-5e for pgsql-odbc@postgresql.org; Tue, 18 Nov 2014 09:29:36 +0000 Received: from msg.df7cb.de (ip-88-153-7-44.hsi04.unitymediagroup.de [88.153.7.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id C4E1469627; Tue, 18 Nov 2014 10:29:29 +0100 (CET) Date: Tue, 18 Nov 2014 10:29:29 +0100 From: Christoph Berg To: Pavel Raiskup Cc: "pgsql-odbc@postgresql.org" Subject: Re: making the testsuite installable Message-ID: <20141118092929.GA8660@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Pavel Raiskup , "pgsql-odbc@postgresql.org" References: <13115650.4ECf6iphU0@nb.usersys.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13115650.4ECf6iphU0@nb.usersys.redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org 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_virtualenv > 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