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 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 . 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 # Yes, we could/should use the $toptmp from shared.sh here, but what if
# this is unset ? # this is unset ?
@ -20,8 +27,13 @@ fi
dirs=`ls -F | grep / | grep -v CVS` dirs=`ls -F | grep / | grep -v CVS`
echo
echo "Running query tests:"
for dir in $dirs ; do for dir in $dirs ; do
cd $dir && echo $dir cd $dir && echo -n "$dir "
sh `basename $dir`.sh sh `basename $dir`.sh
cd .. cd ..
done done
echo

View File

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