make tests easier to run and interpret

This commit is contained in:
Jean-Francois Dockes 2010-04-16 15:54:48 +02:00
parent 593bf616eb
commit b703332324
3 changed files with 18 additions and 4 deletions

View File

@ -1,2 +1,2 @@
1 results
application/vnd.sun.xml.writer [file:///home/dockes/projets/fulltext/testrecoll/ooff/writer.odt] [Ceci est le titre du document openoffice élément <> "toto"] 6637 bytes
application/vnd.sun.xml.writer [file:///home/dockes/projets/fulltext/testrecoll/ooff/writer.odt] [Ceci est le titre du document openoffice élément <> "toto"] 8296 bytes

View File

@ -7,7 +7,14 @@ fi
. shared.sh
recollindex -z
makeindex() {
echo "Zeroing Index"
rm -rf $RECOLL_CONFDIR/xapiandb $RECOLL_CONFDIR/aspdict.*.rws
echo "Indexing"
recollindex -z
}
makeindex
# Yes, we could/should use the $toptmp from shared.sh here, but what if
# this is unset ?
@ -20,8 +27,13 @@ fi
dirs=`ls -F | grep / | grep -v CVS`
echo
echo "Running query tests:"
for dir in $dirs ; do
cd $dir && echo $dir
cd $dir && echo -n "$dir "
sh `basename $dir`.sh
cd ..
done
echo

View File

@ -16,13 +16,15 @@ initvariables() {
}
fatal () {
set -f
echo
echo $*
exit 1
}
checkresult() {
if test -s "$mydiffs" ; then
fatal $myname FAILED
fatal '*** ' $myname FAILED
else
rm -f $mydiffs
exit 0