make tests easier to run and interpret
This commit is contained in:
parent
593bf616eb
commit
b703332324
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user