pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix assorted portability issues in new pgbench TAP tests.
5+ messages / 2 participants
[nested] [flat]

* pgsql: Fix assorted portability issues in new pgbench TAP tests.
@ 2017-09-08 15:28 Tom Lane <tgl@sss.pgh.pa.us>
  2017-09-08 15:53 ` Re: pgsql: Fix assorted portability issues in new pgbench TAP tests. Fabien COELHO <coelho@cri.ensmp.fr>
  2017-09-08 17:34 ` Re: pgsql: Fix assorted portability issues in new pgbench TAP tests. Fabien COELHO <coelho@cri.ensmp.fr>
  0 siblings, 2 replies; 5+ messages in thread

From: Tom Lane @ 2017-09-08 15:28 UTC (permalink / raw)
  To: pgsql-committers

Fix assorted portability issues in new pgbench TAP tests.

* Our own version of getopt_long doesn't support abbreviation of
long options.

* It doesn't do automatic rearrangement of non-option arguments to the end,
either.

* Test was way too optimistic about the platform independence of
NaN and Infinity outputs.  I rather imagine we might have to lose
those tests altogether, but for the moment just allow case variation
and fully spelled out Infinity.

Per buildfarm.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/869aa40a27fa4908ad4112f1079bf732d1a12e13

Modified Files
--------------
src/bin/pgbench/t/001_pgbench_with_server.pl | 11 ++++-------
src/bin/pgbench/t/002_pgbench_no_server.pl   |  2 +-
2 files changed, 5 insertions(+), 8 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Fix assorted portability issues in new pgbench TAP tests.
  2017-09-08 15:28 pgsql: Fix assorted portability issues in new pgbench TAP tests. Tom Lane <tgl@sss.pgh.pa.us>
@ 2017-09-08 15:53 ` Fabien COELHO <coelho@cri.ensmp.fr>
  1 sibling, 0 replies; 5+ messages in thread

From: Fabien COELHO @ 2017-09-08 15:53 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers


> Fix assorted portability issues in new pgbench TAP tests.

Most where hard to guess without having the report. Thanks.

> * Test was way too optimistic about the platform independence of
> NaN and Infinity outputs.  I rather imagine we might have to lose
> those tests altogether, but for the moment just allow case variation
> and fully spelled out Infinity.

Yep. I've seen strange things on these. I wonder whether all test platform 
are IEEE 754 conforming.

-- 
Fabien.


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Fix assorted portability issues in new pgbench TAP tests.
  2017-09-08 15:28 pgsql: Fix assorted portability issues in new pgbench TAP tests. Tom Lane <tgl@sss.pgh.pa.us>
@ 2017-09-08 17:34 ` Fabien COELHO <coelho@cri.ensmp.fr>
  2017-09-08 17:45   ` Re: pgsql: Fix assorted portability issues in new pgbench TAP tests. Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 5+ messages in thread

From: Fabien COELHO @ 2017-09-08 17:34 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers@postgresql.org, PostgreSQL Developers <pgsql-hackers@postgresql.org>


Hello,

Please find attached "blind" additional fixes for Windows & AIX.

  - more nan/inf variants
  - different message on non existing user
  - illegal vs unrecognized options

I suspect that $windows_os is not true on "bowerbird", in order to fix it 
the value of "$Config{osname}" is needed...

-- 
Fabien.

-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Attachments:

pgbench-tap-fix-1.patch (text/x-diff, 1.7K) download diff --git a/src/bin/pgbench/t/001_pgbench_with_server.pl b/src/bin/pgbench/t/001_pgbench_with_server.pl index 66df4bc..54a6039 100644 --- a/src/bin/pgbench/t/001_pgbench_with_server.pl +++ b/src/bin/pgbench/t/001_pgbench_with_server.pl @@ -73,7 +73,11 @@ pgbench( 1, [qr{^$}], [ qr{connection to database "template0" failed}, - qr{FATAL: role "no-such-user" does not exist} ], + # FATAL: role "no-such-user" does not exist + # FATAL: SSPI authentication failed for user "no-such-user" + qr{FATAL:.* (role|user) "no-such-user"}, + qr{FATAL:.* (does not exist|authentication failed)} + ], 'no such user'); pgbench( @@ -217,9 +221,9 @@ pgbench( qr{command=18.: double 18\b}, qr{command=19.: double 19\b}, qr{command=20.: double 20\b}, - qr{command=21.: double -?nan}i, - qr{command=22.: double inf}i, - qr{command=23.: double -inf}i, + qr{command=21.: double (-?nan|-1\.#IND)}i, + qr{command=22.: double (inf|1\.#INF)}i, + qr{command=23.: double (-inf|-1\.#INF)}i, qr{command=24.: int 9223372036854775807\b}, ], 'pgbench expressions', { '001_pgbench_expressions' => q{-- integer functions diff --git a/src/bin/pgbench/t/002_pgbench_no_server.pl b/src/bin/pgbench/t/002_pgbench_no_server.pl index 631aa73..d6b3d4f 100644 --- a/src/bin/pgbench/t/002_pgbench_no_server.pl +++ b/src/bin/pgbench/t/002_pgbench_no_server.pl @@ -26,7 +26,7 @@ my @options = ( # name, options, stderr checks [ 'bad option', '-h home -p 5432 -U calvin -d --bad-option', - [ qr{unrecognized option}, qr{--help.*more information} ] ], + [ qr{(unrecognized|illegal) option}, qr{--help.*more information} ] ], [ 'no file', '-f no-such-file', [qr{could not open file "no-such-file":}] ],
^ permalink raw reply [nested|flat] 5+ messages in thread

* Re: pgsql: Fix assorted portability issues in new pgbench TAP tests.
  2017-09-08 15:28 pgsql: Fix assorted portability issues in new pgbench TAP tests. Tom Lane <tgl@sss.pgh.pa.us>
  2017-09-08 17:34 ` Re: pgsql: Fix assorted portability issues in new pgbench TAP tests. Fabien COELHO <coelho@cri.ensmp.fr>
@ 2017-09-08 17:45   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2017-09-08 17:45 UTC (permalink / raw)
  To: Fabien COELHO <coelho@cri.ensmp.fr>; +Cc: pgsql-committers

Fabien COELHO <coelho@cri.ensmp.fr> writes:
> Please find attached "blind" additional fixes for Windows & AIX.

>   - more nan/inf variants

I think we should just drop this.  It's not worth the trouble,
and I have no faith whatsoever that we've seen every behavior.

>   - different message on non existing user

Ditto.  It's not only not worth the trouble, it's out of scope for
pgbench tests.  A single connection-failure test case seems plenty
to me, and the no-such-database case is enough for that.

> I suspect that $windows_os is not true on "bowerbird", in order to fix it 
> the value of "$Config{osname}" is needed...

I looked at sub psql and noted that it was disassembling the $? result
without any platform-specific hacks.  So I've made command_checks_all
do likewise, and also notice crashes if any.

			regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Fix assorted portability issues in commit 896fcdb23.
@ 2020-03-25 23:37 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2020-03-25 23:37 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix assorted portability issues in commit 896fcdb23.

Some platforms require libssl to be linked explicitly in the new
SSL test module.  Borrow contrib/sslinfo's code for that.

Since src/test/modules/Makefile now has a variable SUBDIRS list,
it needs to follow the ALWAYS_SUBDIRS protocol for that (cf.
comments in Makefile.global.in).

Blindly try to fix MSVC build failures by adding PGDLLIMPORT.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/13c98bdfc41eefb75da24fd2a886b0ef5314b7f6

Modified Files
--------------
src/include/libpq/libpq-be.h                      | 2 +-
src/include/libpq/libpq.h                         | 4 ++--
src/test/modules/Makefile                         | 4 +++-
src/test/modules/ssl_passphrase_callback/Makefile | 2 ++
4 files changed, 8 insertions(+), 4 deletions(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2020-03-25 23:37 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-09-08 15:28 pgsql: Fix assorted portability issues in new pgbench TAP tests. Tom Lane <tgl@sss.pgh.pa.us>
2017-09-08 15:53 ` Fabien COELHO <coelho@cri.ensmp.fr>
2017-09-08 17:34 ` Fabien COELHO <coelho@cri.ensmp.fr>
2017-09-08 17:45   ` Tom Lane <tgl@sss.pgh.pa.us>
2020-03-25 23:37 pgsql: Fix assorted portability issues in commit 896fcdb23. Tom Lane <tgl@sss.pgh.pa.us>

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