Implement filter for .7z files. Based on rclzip and rcltar

This commit is contained in:
Francois Botha 2015-04-06 09:57:00 +02:00
commit d802e87e5a
908 changed files with 379473 additions and 0 deletions

30
tests/pythonapi/pythonapi.sh Executable file
View file

@ -0,0 +1,30 @@
#!/bin/sh
# Test the Python API
thisdir=`dirname $0`
topdir=$thisdir/..
. $topdir/shared.sh
initvariables $0
xrun()
{
echo $*
$*
}
(
t2=$toptmp/python2out
t3=$toptmp/python3out
for i in *.py;do python $i ;done > $t2
for i in *.py;do python3 $i ;done > $t3
if ! cmp $t2 $t3 ; then
echo "Python2 and Python 3 outputs differ: $t2 $t3"
fi
for i in *.py;do xrun python $i ;done
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
checkresult