pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
gmake check runs just 13 tests instead of 77
9+ messages / 4 participants
[nested] [flat]

* gmake check runs just 13 tests instead of 77
@ 2002-11-12 20:18  Mr OCP <mr_ocp@hotmail.com>
  0 siblings, 2 replies; 9+ messages in thread

From: Mr OCP @ 2002-11-12 20:18 UTC (permalink / raw)
  To: pgsql-admin

Hi

I am testing the beta 5 version of 7.3, by using make check under solaris 7 
and 8 and it runs just 13 tests as against 77 tests as indicated in the 
README.regression, I dont get any errors on the screen:

/bin/sh ./pg_regress --temp-install --top-builddir=../../.. 
--schedule=./parallel_schedule --multibyte=SQL_ASCII
============== removing existing temp installation    ==============
============== creating temporary installation        ==============
============== initializing database system           ==============
============== starting postmaster                    ==============
running on port 65432 with pid 4772
============== creating database "regression"         ==============
CREATE DATABASE
ALTER DATABASE
============== dropping regression test user accounts ==============
============== installing PL/pgSQL                    ==============
============== running regression test queries        ==============
parallel group (13 tests):  text int2 boolean int8 float4 int4 char name 
varchar oid float8 bit numeric
     boolean              ... ok
     char                 ... ok
     name                 ... ok
     varchar              ... ok
     text                 ... ok
     int2                 ... ok
     int4                 ... ok
     int8                 ... ok
     oid                  ... ok
     float4               ... ok
     float8               ... ok
     bit                  ... ok
     numeric              ... ok
============== shutting down postmaster               ==============

======================
All 13 tests passed.
======================

However I see the following errors in postmaster.log

LOG:  database system was shut down at 2002-11-12 20:06:41 GMT
LOG:  checkpoint record is at 0/849D78
LOG:  redo record is at 0/849D78; undo record is at 0/0; shutdown TRUE
LOG:  next transaction id: 480; next oid: 16976
LOG:  database system is ready
ERROR:  DROP GROUP: group "regressgroup1" does not exist
ERROR:  pg_atoi: error in "34.5": can't parse ".5"
ERROR:  pg_atoi: error reading "100000": Numerical result out of range
ERROR:  pg_atoi: error in "asdf": can't parse "asdf"
ERROR:  value too long for type character(1)
ERROR:  Bad boolean external representation 'XXX'
ERROR:  value too long for type character varying(1)
ERROR:  oidin: error in "asdfasd": can't parse "asdfasd"
ERROR:  oidin: error in "99asdfasd": can't parse "asdfasd"
ERROR:  value too long for type character(4)
ERROR:  value too long for type character varying(4)
ERROR:  pg_atoi: error in "34.5": can't parse ".5"
ERROR:  pg_atoi: error reading "1000000000000": Numerical result out of 
range
ERROR:  pg_atoi: error in "asdf": can't parse "asdf"
ERROR:  Bad float4 input format -- overflow
ERROR:  Bad float4 input format -- overflow
ERROR:  Bad float4 input format -- underflow
ERROR:  Bad float4 input format -- underflow
ERROR:  Bit string length 2 does not match type BIT(11)
ERROR:  Bit string length 12 does not match type BIT(11)
ERROR:  float4div: divide by zero error
ERROR:  Bit string too long for type BIT VARYING(11)
ERROR:  Bad float8 input format -- overflow
ERROR:  pow() result is out of range
ERROR:  can't take log of zero
ERROR:  can't take log of a negative number
ERROR:  exp() result is out of range
ERROR:  float8div: divide by zero error
ERROR:  Input '10e400' is out of range for float8
ERROR:  Input '-10e400' is out of range for float8
ERROR:  Input '10e-400' is out of range for float8
ERROR:  Input '-10e-400' is out of range for float8
ERROR:  Cannot AND bit strings of different sizes
ERROR:  Cannot OR bit strings of different sizes
ERROR:  Cannot XOR bit strings of different sizes
ERROR:  overflow on numeric ABS(value) >= 10^0 for field with precision 4 
scale 4
ERROR:  overflow on numeric ABS(value) >= 10^0 for field with precision 4 
scale 4
LOG:  smart shutdown request
LOG:  shutting down

Please comment
Thanks
Khat

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail




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

* Re: gmake check runs just 13 tests instead of 77
@ 2002-11-12 20:55  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Mr OCP <mr_ocp@hotmail.com>
  1 sibling, 2 replies; 9+ messages in thread

From: Tom Lane @ 2002-11-12 20:55 UTC (permalink / raw)
  To: Mr OCP <mr_ocp@hotmail.com>; +Cc: pgsql-admin; andrew@libertyrms.info

"Mr OCP" <mr_ocp@hotmail.com> writes:
> I am testing the beta 5 version of 7.3, by using make check under solaris 7 
> and 8 and it runs just 13 tests as against 77 tests as indicated in the 
> README.regression,

Hmm, maybe a portability problem in the pg_regress script ... but I
thought we'd already checked 7.3 on Solaris.  Andrew, can you reproduce
this problem?

			regards, tom lane



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

* Re: gmake check runs just 13 tests instead of 77
@ 2002-11-13 00:27  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 9+ messages in thread

From: Bruce Momjian @ 2002-11-13 00:27 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Mr OCP <mr_ocp@hotmail.com>; pgsql-admin; andrew@libertyrms.info

Tom Lane wrote:
> "Mr OCP" <mr_ocp@hotmail.com> writes:
> > I am testing the beta 5 version of 7.3, by using make check under solaris 7 
> > and 8 and it runs just 13 tests as against 77 tests as indicated in the 
> > README.regression,
> 
> Hmm, maybe a portability problem in the pg_regress script ... but I
> thought we'd already checked 7.3 on Solaris.  Andrew, can you reproduce
> this problem?

It does report:

	All 13 tests passed.

I wonder if Solaris folks are thinking that is a success.  I see you
found that my awk 'BEGIN ...' was the problem.  I didn't realize awk
would do that.  On BSD/OS using gawk, it is OK:
	
	$ echo "1\n2" | while read FILE; do echo $FILE;awk 'BEGIN {print "a"}';
	done
	1
	a
	2
	a

Anyway, pg_regress.sh should just be fixed.  I added this code so I
didn't have to do gymnatics on echoing a backslash:

	echo "SET autocommit TO 'on';"; awk 'BEGIN {printf "\\set ECHO all\n"}'; cat "$inputdir/sql/$name.sql") |

I didn't use this method in any of my other autocommit fixes.  I did it
this way only so I could turn autocommit on without having it show up in
the regression output.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



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

* Re: gmake check runs just 13 tests instead of 77
@ 2002-11-13 03:15  Andrew Sullivan <andrew@libertyrms.info>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 9+ messages in thread

From: Andrew Sullivan @ 2002-11-13 03:15 UTC (permalink / raw)
  To: pgsql-admin

On Tue, Nov 12, 2002 at 03:55:55PM -0500, Tom Lane wrote:
> 
> Hmm, maybe a portability problem in the pg_regress script ... but I
> thought we'd already checked 7.3 on Solaris.  Andrew, can you reproduce
> this problem?

It worked for me in the last beta; but someone reported the same
problem to me today on our boxes here, so something is fishy.

A

-- 
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110




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

* Re: gmake check runs just 13 tests instead of 77
@ 2002-11-13 03:17  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: Andrew Sullivan <andrew@libertyrms.info>
  0 siblings, 1 reply; 9+ messages in thread

From: Bruce Momjian @ 2002-11-13 03:17 UTC (permalink / raw)
  To: Andrew Sullivan <andrew@libertyrms.info>; +Cc: pgsql-admin

Andrew Sullivan wrote:
> On Tue, Nov 12, 2002 at 03:55:55PM -0500, Tom Lane wrote:
> > 
> > Hmm, maybe a portability problem in the pg_regress script ... but I
> > thought we'd already checked 7.3 on Solaris.  Andrew, can you reproduce
> > this problem?
> 
> It worked for me in the last beta; but someone reported the same
> problem to me today on our boxes here, so something is fishy.

I show the 'awk' added by me on October 19th, actually to get
postgresql.conf 'autocommit off' working for regression tests:
	
	revision 1.28
	date: 2002/10/19 01:35:43;  author: momjian;  state: Exp;  lines: +10 -5
	Make regression tests safe for autocommit = 'off'.

Did it work after that date?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



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

* Re: gmake check runs just 13 tests instead of 77
@ 2002-11-13 12:56  Andrew Sullivan <andrew@libertyrms.info>
  parent: Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 9+ messages in thread

From: Andrew Sullivan @ 2002-11-13 12:56 UTC (permalink / raw)
  To: pgsql-admin

On Tue, Nov 12, 2002 at 10:17:25PM -0500, Bruce Momjian wrote:
> I show the 'awk' added by me on October 19th, actually to get
> postgresql.conf 'autocommit off' working for regression tests:
> 	
> 	revision 1.28
> 	date: 2002/10/19 01:35:43;  author: momjian;  state: Exp;  lines: +10 -5
> 	Make regression tests safe for autocommit = 'off'.
> 
> Did it work after that date?

According to my report, yes.  I tested 7.3b3 on 2002-10-28.  

I'll bet it had to do with a funky path I had, though; probably I
picked up a different awk (there are two on Solaris), because I was
also working on another problem during the same period.  (I can try
out this theory today, if I'm lucky enough to get a minute or two.)
Bad dba!  Test in a clean environment!  I apologise.

A

-- 
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110




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

* Re: gmake check runs just 13 tests instead of 77
@ 2002-11-13 16:39  Mr OCP <mr_ocp@hotmail.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Mr OCP @ 2002-11-13 16:39 UTC (permalink / raw)
  To: pgsql-admin

>From: Andrew Sullivan <andrew@libertyrms.info>
>
>According to my report, yes.  I tested 7.3b3 on 2002-10-28.
>
>I'll bet it had to do with a funky path I had, though; probably I
>picked up a different awk (there are two on Solaris), because I was
>also working on another problem during the same period.  (I can try
>out this theory today, if I'm lucky enough to get a minute or two.)
>Bad dba!  Test in a clean environment!  I apologise.

With nawk it works fine and does all 89 tests :

============== shutting down postmaster               ==============

======================
All 89 tests passed.
======================


_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail




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

* Re: gmake check runs just 13 tests instead of 77
@ 2002-11-13 16:44  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Mr OCP <mr_ocp@hotmail.com>
  1 sibling, 0 replies; 9+ messages in thread

From: Tom Lane @ 2002-11-13 16:44 UTC (permalink / raw)
  To: Mr OCP <mr_ocp@hotmail.com>; +Cc: pgsql-admin

"Mr OCP" <mr_ocp@hotmail.com> writes:
> I am testing the beta 5 version of 7.3, by using make check under solaris 7 
> and 8 and it runs just 13 tests as against 77 tests as indicated in the 
> README.regression,

I believe this problem is now fixed --- the pg_regress script was
making an unportable assumption about the behavior of 'awk'.  If you
want to try it, apply the attached patch.

			regards, tom lane

inline patch 1: src/test/regress/pg_regress.sh (+10/-4 lines) download inline-1.patch*** src/test/regress/pg_regress.sh.orig Sat Oct 19 13:30:30 2002 --- src/test/regress/pg_regress.sh Wed Nov 13 11:40:23 2002 *************** *** 545,560 **** formatted=`echo $1 | awk '{printf "%-20.20s", $1;}'` $ECHO_N "test $formatted ... $ECHO_C" ! # use awk to properly output backslashes ! (echo "SET autocommit TO 'on';"; awk 'BEGIN {printf "\\set ECHO all\n"}'; cat "$inputdir/sql/$1.sql") | $PSQL -d "$dbname" >"$outputdir/results/$1.out" 2>&1 else # Start a parallel group $ECHO_N "parallel group ($# tests): $ECHO_C" for name do ( ! # use awk to properly output backslashes ! (echo "SET autocommit TO 'on';"; awk 'BEGIN {printf "\\set ECHO all\n"}'; cat "$inputdir/sql/$name.sql") | $PSQL -d $dbname >"$outputdir/results/$name.out" 2>&1 $ECHO_N " $name$ECHO_C" ) & --- 545,566 ---- formatted=`echo $1 | awk '{printf "%-20.20s", $1;}'` $ECHO_N "test $formatted ... $ECHO_C" ! (cat <<EOF ! SET autocommit TO 'on'; ! \\set ECHO all ! EOF ! cat "$inputdir/sql/$1.sql") | \ $PSQL -d "$dbname" >"$outputdir/results/$1.out" 2>&1 else # Start a parallel group $ECHO_N "parallel group ($# tests): $ECHO_C" for name do ( ! (cat <<EOF ! SET autocommit TO 'on'; ! \\set ECHO all ! EOF ! cat "$inputdir/sql/$name.sql") | \ $PSQL -d $dbname >"$outputdir/results/$name.out" 2>&1 $ECHO_N " $name$ECHO_C" ) &
^ permalink raw reply [nested|flat] 9+ messages in thread

* Re: gmake check runs just 13 tests instead of 77
@ 2002-11-18 19:34  Andrew Sullivan <andrew@libertyrms.info>
  parent: Andrew Sullivan <andrew@libertyrms.info>
  0 siblings, 0 replies; 9+ messages in thread

From: Andrew Sullivan @ 2002-11-18 19:34 UTC (permalink / raw)
  To: pgsql-admin; +Cc: Andrew Sullivan <andrew@libertyrms.info>

On Wed, Nov 13, 2002 at 07:56:38AM -0500, Andrew Sullivan wrote:

> I'll bet it had to do with a funky path I had, though; probably I
> picked up a different awk (there are two on Solaris), because I was
> also working on another problem during the same period.  (I can try

For the record, I did confirm this, and it's what happened.  It's
needless now, of course, because of the patched regression test.

A

-- 
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110




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


end of thread, other threads:[~2002-11-18 19:34 UTC | newest]

Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-11-12 20:18 gmake check runs just 13 tests instead of 77 Mr OCP <mr_ocp@hotmail.com>
2002-11-12 20:55 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-11-13 00:27   ` Bruce Momjian <pgman@candle.pha.pa.us>
2002-11-13 03:15   ` Andrew Sullivan <andrew@libertyrms.info>
2002-11-13 03:17     ` Bruce Momjian <pgman@candle.pha.pa.us>
2002-11-13 12:56       ` Andrew Sullivan <andrew@libertyrms.info>
2002-11-18 19:34         ` Andrew Sullivan <andrew@libertyrms.info>
2002-11-13 16:44 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-11-13 16:39 Re: gmake check runs just 13 tests instead of 77 Mr OCP <mr_ocp@hotmail.com>

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