From 815117f653b631b40cfdc53ff403d4cbd87c066c Mon Sep 17 00:00:00 2001 From: fritz-hh Date: Fri, 26 Apr 2013 14:26:03 +0200 Subject: [PATCH] add test script aimed at checking if the quality of the images drops quickly or not --- test/OCRmyPDF_severaltimes.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/OCRmyPDF_severaltimes.sh diff --git a/test/OCRmyPDF_severaltimes.sh b/test/OCRmyPDF_severaltimes.sh new file mode 100644 index 00000000..3cc1a81d --- /dev/null +++ b/test/OCRmyPDF_severaltimes.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Perform OCR several times in order to find how quicly the quality decreases + +cpt=1 + +while [ $cpt -le 10 ] ; do + + echo "------- Itteration $cpt ---------" + + ! ../OCRmyPDF.sh -vv -l deu -k ../tmp/ocred-$(($cpt-1)).pdf ../tmp/ocred-$cpt.pdf && exit 1 + + cpt=$(($cpt+1)) + +done \ No newline at end of file