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