Tom Lane wrote:
Jorgen Austvik - Sun Norway <[EMAIL PROTECTED]> writes:
we would like to be able to use and ship pg_regress and the PostgreSQL
test suite independently of the PostgreSQL build environment, for
testing and maybe even as a separate package to be build and shipped
with the OS for others to test their setup. Does this sound like a sane
and OK thing to do?
The RPM packages have done this since approximately forever. You might
want to look at the patches used there.
Hi,
yes [1] is the same that we have been using internally.
Let me reformulate my question: would it be better to include something
like the attached patch in PostgreSQL, than have every distributor of
the tests apply it?
[1]
http://cvs.fedoraproject.org/viewcvs/rpms/postgresql/F-9/postgresql-test.patch?rev=1.3&view=auto
-J
--
Jørgen Austvik, Software Engineering - QA
Sun Microsystems Database Technology Group
http://blogs.sun.com/austvik
http://www.austvik.net/
Index: src/test/regress/GNUmakefile
===================================================================
RCS file: /projects/cvsroot/pgsql/src/test/regress/GNUmakefile,v
retrieving revision 1.73
diff -c -r1.73 GNUmakefile
*** src/test/regress/GNUmakefile 7 Apr 2008 14:15:58 -0000 1.73
--- src/test/regress/GNUmakefile 29 May 2008 12:17:18 -0000
***************
*** 122,127 ****
--- 122,129 ----
.PHONY: all-spi
all-spi:
$(MAKE) -C $(contribdir)/spi refint$(DLSUFFIX) autoinc$(DLSUFFIX)
+ cp $(contribdir)/spi/refint$(DLSUFFIX) .
+ cp $(contribdir)/spi/autoinc$(DLSUFFIX) .
# Tablespace setup
.PHONY: tablespace-setup
Index: src/test/regress/input/create_function_1.source
===================================================================
RCS file: /projects/cvsroot/pgsql/src/test/regress/input/create_function_1.source,v
retrieving revision 1.17
diff -c -r1.17 create_function_1.source
*** src/test/regress/input/create_function_1.source 27 Feb 2006 16:09:50 -0000 1.17
--- src/test/regress/input/create_function_1.source 29 May 2008 12:17:18 -0000
***************
*** 24,40 ****
CREATE FUNCTION check_primary_key ()
RETURNS trigger
! AS '@abs_builddir@/../../../contrib/spi/[EMAIL PROTECTED]@'
LANGUAGE C;
CREATE FUNCTION check_foreign_key ()
RETURNS trigger
! AS '@abs_builddir@/../../../contrib/spi/[EMAIL PROTECTED]@'
LANGUAGE C;
CREATE FUNCTION autoinc ()
RETURNS trigger
! AS '@abs_builddir@/../../../contrib/spi/[EMAIL PROTECTED]@'
LANGUAGE C;
CREATE FUNCTION funny_dup17 ()
--- 24,40 ----
CREATE FUNCTION check_primary_key ()
RETURNS trigger
! AS '@abs_builddir@/[EMAIL PROTECTED]@'
LANGUAGE C;
CREATE FUNCTION check_foreign_key ()
RETURNS trigger
! AS '@abs_builddir@/[EMAIL PROTECTED]@'
LANGUAGE C;
CREATE FUNCTION autoinc ()
RETURNS trigger
! AS '@abs_builddir@/[EMAIL PROTECTED]@'
LANGUAGE C;
CREATE FUNCTION funny_dup17 ()
Index: src/test/regress/output/create_function_1.source
===================================================================
RCS file: /projects/cvsroot/pgsql/src/test/regress/output/create_function_1.source,v
retrieving revision 1.30
diff -c -r1.30 create_function_1.source
*** src/test/regress/output/create_function_1.source 18 Jun 2007 21:40:58 -0000 1.30
--- src/test/regress/output/create_function_1.source 29 May 2008 12:17:18 -0000
***************
*** 25,39 ****
NOTICE: argument type city_budget is only a shell
CREATE FUNCTION check_primary_key ()
RETURNS trigger
! AS '@abs_builddir@/../../../contrib/spi/[EMAIL PROTECTED]@'
LANGUAGE C;
CREATE FUNCTION check_foreign_key ()
RETURNS trigger
! AS '@abs_builddir@/../../../contrib/spi/[EMAIL PROTECTED]@'
LANGUAGE C;
CREATE FUNCTION autoinc ()
RETURNS trigger
! AS '@abs_builddir@/../../../contrib/spi/[EMAIL PROTECTED]@'
LANGUAGE C;
CREATE FUNCTION funny_dup17 ()
RETURNS trigger
--- 25,39 ----
NOTICE: argument type city_budget is only a shell
CREATE FUNCTION check_primary_key ()
RETURNS trigger
! AS '@abs_builddir@/[EMAIL PROTECTED]@'
LANGUAGE C;
CREATE FUNCTION check_foreign_key ()
RETURNS trigger
! AS '@abs_builddir@/[EMAIL PROTECTED]@'
LANGUAGE C;
CREATE FUNCTION autoinc ()
RETURNS trigger
! AS '@abs_builddir@/[EMAIL PROTECTED]@'
LANGUAGE C;
CREATE FUNCTION funny_dup17 ()
RETURNS trigger
begin:vcard
fn;quoted-printable:J=C3=B8rgen Austvik
n;quoted-printable:Austvik;J=C3=B8rgen
org:Sun Microsystems;Database Group
adr:;;Haakon VII gt. 7b;Trondheim;;NO-7485;Norway
email;internet:[EMAIL PROTECTED]
title:Senior Engineer
tel;work:+47 73 84 21 10
tel;fax:+47 73 84 21 01
tel;cell:+47 901 97 886
note:http://www.austvik.net/
x-mozilla-html:FALSE
url:http://blogs.sun.com/austvik/
version:2.1
end:vcard
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers