Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > pg_regress: ref...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 9432 of 10966
Post > Topic >>

pg_regress: referencing shared objects from tests

by Jorgen.Austvik@[EMAIL PROTECTED] (Jorgen Austvik - Sun Norway) May 28, 2008 at 02:08 PM

This is a multi-part message in MIME format.

--Boundary_(ID_R1WPbKdwvTF+epkyXjVOkw)
Content-type: text/plain; format=flowed; charset=windows-1252
Content-transfer-encoding: 8BIT

Hi,

we would like to be able to use and ****p 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 ****pped 
with the OS for others to test their setup. Does this sound like a sane 
and OK thing to do?

I have a problem with one of the tests (create_function_1.source):

---------8<----------------8<----------------8<----------------8<-------
      20 CREATE FUNCTION int44out(city_budget)
      21    RETURNS cstring
      22    AS '@[EMAIL PROTECTED]
'
      23    LANGUAGE C STRICT;
      24
      25 CREATE FUNCTION check_primary_key ()
      26         RETURNS trigger
      27         AS '@[EMAIL PROTECTED]
'
      28         LANGUAGE C;
....
      35 CREATE FUNCTION autoinc ()
      36         RETURNS trigger
      37         AS
'@[EMAIL PROTECTED]
'
      38         LANGUAGE C;
---------8<----------------8<----------------8<----------------8<-------

(The ../../../contrib/spi-path does not exist outside of the build 
environment, so to be able to run the test you need to have source code, 
compilers, ...)

I could work around this problem by copying the needed shared objects to 
@[EMAIL PROTECTED]
 as part of make or make check, I could add a 
“–look-for-shared-objects-here” parameter to pg_regress, and you 
probably have other suggestions.

Is this something we want to fix, and what would be the right way to do 
it? (I have no problem providing a patch.)

-Jørgen
-- 

Jørgen Austvik, Software Engineering - QA
Sun Microsystems Database Group

http://blogs.sun.com/austvik,
http://www.autvik.net/

Sun Microsystems AS
Haakon VII gt. 7b
N-7485 Trondheim, Norway


--Boundary_(ID_R1WPbKdwvTF+epkyXjVOkw)
Content-type: text/x-vcard; name=jorgen_austvik.vcf; charset=utf-8
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=jorgen_austvik.vcf

begin:vcard
fn;quoted-printable:J=C3=B8rgen Austvik
n;quoted-printable:Austvik;J=C3=B8rgen
org:Sun Microsystems;Database Technology Group
adr:;;Haakon VII gt. 7b;Trondheim;;NO-7485;Norway
email;internet:jorgen.austvik@[EMAIL PROTECTED]
 Engineer
tel;work:+47 73 84 21 10 
tel;fax:+47 73 84 21 01
tel;cell:+47 901 97 886
x-mozilla-html:FALSE
url:http://www.sun.com/
version:2.1
end:vcard


--Boundary_(ID_R1WPbKdwvTF+epkyXjVOkw)
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

--Boundary_(ID_R1WPbKdwvTF+epkyXjVOkw)--
 




 4 Posts in Topic:
pg_regress: referencing shared objects from tests
Jorgen.Austvik@[EMAIL PRO  2008-05-28 14:08:14 
Re: pg_regress: referencing shared objects from tests
tgl@[EMAIL PROTECTED] (T  2008-05-28 10:27:19 
Re: pg_regress: referencing shared objects from tests
Jorgen.Austvik@[EMAIL PRO  2008-05-29 14:22:31 
Re: pg_regress: referencing shared objects from tests
tgl@[EMAIL PROTECTED] (T  2008-05-29 19:19:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 12:26:06 CST 2008.