add tests for scripts

This commit is contained in:
Jean-Francois Dockes 2010-12-15 15:18:40 +01:00
parent 52e845a9fb
commit bb55728c49
3 changed files with 23 additions and 1 deletions

16
tests/program/program.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
topdir=`dirname $0`/..
. $topdir/shared.sh
initvariables $0
(
recollq '"maps image file tags to xapian tags"'
recollq '"PMC = Performance Monitor Control MSR"'
recollq shellscriptUUnique
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
checkresult

View File

@ -0,0 +1,6 @@
1 results
application/x-perl [file:///home/dockes/projets/fulltext/testrecoll/program/rclimg] [rclimg] 5294 bytes
1 results
application/x-shellscript [file:///home/dockes/projets/fulltext/testrecoll/program/run_program_with_counters.sh] [run_program_with_counters.sh] 2632 bytes
1 results
application/x-shellscript [file:///home/dockes/projets/fulltext/testrecoll/program/nosuffixshell] [nosuffixshell] 34 bytes

View File

@ -25,7 +25,7 @@ else
mkdir $toptmp || fatal cant create temp dir $toptmp
fi
dirs=`ls -F | grep / | grep -v CVS`
dirs=`ls -F | grep / | grep -v CVS | grep -v non-auto`
echo
echo "Running query tests:"