提交 aa51d0d1 编写于 作者: M Marc G. Fournier

Purge out tests/expected that are now in sql/expected subdirectories from

'master' file

Commit mods to regress.sh so that split out tests are run...look forward
to finding out how to do a proper redirect to continue visual cleanup :)
上级 04688df6
此差异已折叠。
此差异已折叠。
#!/bin/sh
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.3 1996/11/14 16:09:28 momjian Exp $
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.4 1997/04/05 11:58:35 scrappy Exp $
#
if [ -d ./obj ]; then
cd ./obj
......@@ -20,13 +20,25 @@ if [ $? -ne 0 ]; then
exit 1
fi
$FRONTEND regression < create.sql
if [ $? -ne 0 ]; then
echo the creation script has an error
exit 1
fi
#$FRONTEND regression < create.sql
#if [ $? -ne 0 ]; then
# echo the creation script has an error
# exit 1
#fi
echo =============== running regression queries ... =================
for i in `cat sql/tests`
do
echo -n ${i} ..
$FRONTEND regression < sql/${i}.sql 2>&1 | tee output/${i}.out
if [ `diff expected/${i}.out output/${i}.out | wc -l` -ne 0 ]
then
echo failed
else
echo ok
fi
done
exit
$FRONTEND regression < queries.sql
# this will generate error result code
......
......@@ -11,7 +11,6 @@ float4
float8
int2
int4
misc
oid
oidint2
oidint4
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册