Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6193D476965 for ; Wed, 13 Nov 2002 11:44:09 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id AA847476960 for ; Wed, 13 Nov 2002 11:44:08 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id gADGiChR022959; Wed, 13 Nov 2002 11:44:12 -0500 (EST) To: "Mr OCP" Cc: pgsql-admin@postgresql.org Subject: Re: gmake check runs just 13 tests instead of 77 In-reply-to: References: Comments: In-reply-to "Mr OCP" message dated "Tue, 12 Nov 2002 15:18:13 -0500" Date: Wed, 13 Nov 2002 11:44:12 -0500 Message-ID: <22958.1037205852@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/132 X-Sequence-Number: 6320 "Mr OCP" 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 *** 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 <"$outputdir/results/$1.out" 2>&1 else # Start a parallel group $ECHO_N "parallel group ($# tests): $ECHO_C" for name do ( ! (cat <"$outputdir/results/$name.out" 2>&1 $ECHO_N " $name$ECHO_C" ) &