Re: how to run encoding-dependent tests by default - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: how to run encoding-dependent tests by default
Date
Msg-id 6496a91c-499a-b0de-a601-d66bcf5e010d@2ndquadrant.com
Whole thread Raw
In response to Re: how to run encoding-dependent tests by default  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: how to run encoding-dependent tests by default
List pgsql-hackers
On 2019-07-28 20:12, Tom Lane wrote:
> So I wish we could get rid of the Makefile changes, have the test
> scripts be completely responsible for whether to run themselves or
> not, and put them into the schedule files normally.
> 
> It's pretty obvious how we might do this for collate.icu.utf8:
> make it look to see if there are any ICU-supplied collations in
> pg_collation.
> 
> I'm less clear on a reasonable way to detect a glibc platform
> from SQL.  The best I can think of is to see if the string
> "linux" appears in the output of version(), and that's probably
> none too robust.  Can we do anything based on the content of
> pg_collation?  Probably not :-(.
> 
> Still, even if you only fixed collate.icu.utf8 this way, that
> would be a step forward since it would solve the Windows aspect.

Good points.  Updated patch attach.

(The two tests create the same schema name, so they cannot be run in
parallel.  I opted against changing that here, since it would blow up
the patch and increase the diff between the two tests.)

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: LLVM compile failing in seawasp
Next
From: Peter Eisentraut
Date:
Subject: Re: how to run encoding-dependent tests by default