# /bin/sh -x

RETURN=0

mkdir testoutput 2> /dev/null
\rm testoutput/*.diff 2> /dev/null

for file in testusage testlanguage testconf1 testconf2 testinclude \
   	    testfiles1 testfiles2 testoption1 testoption2 testoption-s\
	    testnormalisation testencoding2 testpassthru testfolia testfolia2\
	    testfoliain testslash testquotes testquotes2 testtwitter testutt \
	    testpunctuation testpunctfilter testclassnormalization testlang \
	    testtokens testoption-P testoption-split
do
   ./testone $file
   if [ $? -ne 0 ]; then
        RETURN=1
   fi
done

python2 test.py
if [ $? -ne 0 ]; then
   RETURN=1
fi

exit $RETURN
