pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mr OCP <mr_ocp@hotmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: gmake check runs just 13 tests instead of 77
Date: Wed, 13 Nov 2002 11:44:12 -0500
Message-ID: <22958.1037205852@sss.pgh.pa.us> (raw)
In-Reply-To: <F197rxTjtRpeVPOEcyh00000f21@hotmail.com>
References: <F197rxTjtRpeVPOEcyh00000f21@hotmail.com>

"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" ) &

view thread (9+ messages)  latest in thread

Message-ID: <22958.1037205852@sss.pgh.pa.us>
Permalink:  ../22958.1037205852@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22958.1037205852@sss.pgh.pa.us

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mr_ocp@hotmail.com
  Subject: Re: gmake check runs just 13 tests instead of 77
  In-Reply-To: <22958.1037205852@sss.pgh.pa.us>
  References: <F197rxTjtRpeVPOEcyh00000f21@hotmail.com> <22958.1037205852@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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