Commit 65973e3f authored by Marc G. Fournier's avatar Marc G. Fournier

From: Keith Parks <emkxp01@mtcc.demon.co.uk>

Subject: [PATCHES] to make regress.sh shell friendly to echo.

Hi,

I needed to make the following change to regress.sh to make it more
shell friendly.

The Solaris /bin/sh, and others, use \c to supress the newline.
parent a426ff58
#!/bin/sh #!/bin/sh
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.8 1997/04/27 02:56:18 scrappy Exp $ # $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.9 1997/04/27 18:55:37 scrappy Exp $
# #
if echo '\c' | grep -s c >/dev/null 2>&1
then
ECHO_N="echo -n"
ECHO_C=""
else
ECHO_N="echo"
ECHO_C='\c'
fi
if [ -d ./obj ]; then if [ -d ./obj ]; then
cd ./obj cd ./obj
fi fi
...@@ -33,7 +42,7 @@ fi ...@@ -33,7 +42,7 @@ fi
echo "=============== running regression queries... =================" echo "=============== running regression queries... ================="
for i in `cat sql/tests` for i in `cat sql/tests`
do do
echo -n "${i} .. " $ECHO_N "${i} .. " $ECHO_C
$FRONTEND regression < sql/${i}.sql > results/${i}.out 2>&1 $FRONTEND regression < sql/${i}.sql > results/${i}.out 2>&1
if [ `diff expected/${i}.out results/${i}.out | wc -l` -ne 0 ] if [ `diff expected/${i}.out results/${i}.out | wc -l` -ne 0 ]
then then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment