Commit 44030ef2 authored by Marc G. Fournier's avatar Marc G. Fournier

minor change so that it outputs to regression.diffs ...

parent ca5eefb6
#!/bin/sh #!/bin/sh
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.14 1998/02/01 11:42:47 scrappy Exp $ # $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.15 1998/02/01 11:46:10 scrappy Exp $
# #
if echo '\c' | grep -s c >/dev/null 2>&1 if echo '\c' | grep -s c >/dev/null 2>&1
then then
...@@ -41,13 +41,13 @@ if [ $? -ne 0 ]; then ...@@ -41,13 +41,13 @@ if [ $? -ne 0 ]; then
fi fi
echo "=============== running regression queries... =================" echo "=============== running regression queries... ================="
echo "" > regression.${SYSTEM} echo "" > regression.diffs
for i in `cat sql/tests` for i in `cat sql/tests`
do do
$ECHO_N "${i} .. " $ECHO_C $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 [ -f expected/${i}-${SYSTEM}.out ] if [ -f expected/${i}-${SYSTEM}.out ]
then then
EXPECTED="expected/${i}-${SYSTEM}.out" EXPECTED="expected/${i}-${SYSTEM}.out"
else else
EXPECTED="expected/${i}.out" EXPECTED="expected/${i}.out"
...@@ -56,9 +56,9 @@ do ...@@ -56,9 +56,9 @@ do
if [ `diff ${EXPECTED} results/${i}.out | wc -l` -ne 0 ] if [ `diff ${EXPECTED} results/${i}.out | wc -l` -ne 0 ]
then then
( diff -c ${EXPECTED} results/${i}.out; \ ( diff -c ${EXPECTED} results/${i}.out; \
echo ""; \ echo ""; \
echo "----------------------"; \ echo "----------------------"; \
echo "" ) >> regression.${SYSTEM} echo "" ) >> regression.diffs
echo failed echo failed
else else
echo ok echo ok
......
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