debian packaging changes: separate python-recoll package and build python3-recoll

This commit is contained in:
Jean-Francois Dockes 2013-11-25 17:44:22 +01:00
commit 75e0c40f8e
943 changed files with 382990 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