tesseract/unittest
Stefan Weil 631882a346 Fix compiler warnings (signed / unsigned mismatch)
clang warnings:

    src/ccutil/unicharcompress.cpp:172:27: warning: comparison of integers of different signs: 'int' and 'std::__cxx1998::vector::size_type' (aka 'unsigned long') [-Wsign-compare]
    src/lstm/recodebeam.cpp:129:29: warning: comparison of integers of different signs: 'std::__cxx1998::vector::size_type' (aka 'unsigned long') and 'int' [-Wsign-compare]
    src/lstm/recodebeam.cpp:276:48: warning: comparison of integers of different signs: 'std::__cxx1998::vector::size_type' (aka 'unsigned long') and 'int' [-Wsign-compare]
    unittest/imagedata_test.cc:101:21: warning: comparison of integers of different signs: 'int' and 'std::__cxx1998::vector::size_type' (aka 'unsigned long') [-Wsign-compare]
    unittest/linlsq_test.cc:33:23: warning: comparison of integers of different signs: 'int' and 'std::__cxx1998::vector::size_type' (aka 'unsigned long') [-Wsign-compare]
    unittest/linlsq_test.cc:44:23: warning: comparison of integers of different signs: 'int' and 'std::__cxx1998::vector::size_type' (aka 'unsigned long') [-Wsign-compare]
    unittest/nthitem_test.cc:27:23: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
    unittest/nthitem_test.cc:68:21: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
    unittest/stats_test.cc:26:23: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-25 08:36:07 +01:00
..
apiexample_test.cc unittest: Allow more time for apiexample_test when using a debug build 2019-01-14 17:56:35 +01:00
applybox_test.cc unittest: Skip test is traineddata is missing in applybox_test 2019-01-24 16:10:52 +01:00
baseapi_test.cc unittest: Add baseapi_test 2018-10-11 22:18:58 +02:00
baseapi_thread_test.cc unittest: Replace NULL by nullptr 2018-09-29 09:27:12 +02:00
bitvector_test.cc Fix several typos (most of them found by codespell) 2018-12-10 18:59:58 +01:00
cleanapi_test.cc unittest: Format code 2018-09-29 09:19:13 +02:00
colpartition_test.cc unittest: Format code 2018-09-29 09:19:13 +02:00
commandlineflags_test.cc Fix several typos (most of them found by codespell) 2018-12-10 18:59:58 +01:00
cycletimer.h CycleTimer: Add missing initialization (CID 1396168) 2018-10-16 16:53:23 +02:00
dawg_test.cc Update file paths in dawg_test 2019-01-21 20:08:11 +01:00
denorm_test.cc unittest: Replace NULL by nullptr 2018-09-29 09:27:12 +02:00
equationdetect_test.cc unittest: Replace NULL by nullptr 2018-09-29 09:27:12 +02:00
fileio_test.cc unittest: Add fileio_test 2018-10-12 08:13:39 +02:00
heap_test.cc unittest: Replace NULL by nullptr 2018-09-29 09:27:12 +02:00
imagedata_test.cc Fix compiler warnings (signed / unsigned mismatch) 2019-03-25 08:36:07 +01:00
include_gunit.h Partially fix and enable more unittests 2019-01-27 06:49:57 +00:00
indexmapbidi_test.cc Fix several typos (most of them found by codespell) 2018-12-10 18:59:58 +01:00
intfeaturemap_test.cc unittest: Replace NULL by nullptr 2018-09-29 09:27:12 +02:00
intsimdmatrix_test.cc More optimisations for IntSimdMatrix 2019-01-14 21:34:37 +01:00
lang_model_test.cc Partially fix and enable more unittests 2019-01-27 06:49:57 +00:00
layout_test.cc Formatting LOG messages from layout_test 2019-01-21 17:36:08 +01:00
ligature_table_test.cc unittest: Replace NULL by nullptr 2018-09-29 09:27:12 +02:00
linlsq_test.cc Fix compiler warnings (signed / unsigned mismatch) 2019-03-25 08:36:07 +01:00
loadlang_test.cc Fix memory leak in loadlang_test 2018-11-13 09:09:10 +01:00
log.h Enhance LOG emulation 2018-10-11 22:18:58 +02:00
lstm_recode_test.cc Partially fix and enable more unittests 2019-01-27 06:49:57 +00:00
lstm_squashed_test.cc Partially fix and enable more unittests 2019-01-27 06:49:57 +00:00
lstm_test.cc Remove whitespace at line endings 2019-02-19 13:53:31 +01:00
lstm_test.h Remove whitespace at line endings 2019-02-19 13:53:31 +01:00
lstmtrainer_test.cc Partially fix and enable more unittests 2019-01-27 06:49:57 +00:00
Makefile.am unittest: Remove tmp directory from repository and create it during build 2019-03-08 16:08:16 +01:00
mastertrainer_test.cc Fix file location for unicharset for mastertrainer_test 2019-01-21 17:36:08 +01:00
matrix_test.cc Remove unused include statements for tprintf.h 2018-11-18 17:25:01 +01:00
networkio_test.cc unittest: Format code 2018-09-29 09:19:13 +02:00
normstrngs_test.cc Fix several typos (most of them found by codespell) 2018-12-10 18:59:58 +01:00
normstrngs_test.h unittest: Fix and enable validate_indic_test 2019-01-23 13:54:27 +01:00
nthitem_test.cc Fix compiler warnings (signed / unsigned mismatch) 2019-03-25 08:36:07 +01:00
osd_test.cc Fix memory leak in osd_test 2018-11-13 09:09:23 +01:00
pagesegmode_test.cc unittest: Replace NULL by nullptr 2018-09-29 09:27:12 +02:00
pango_font_info_test.cc Fix several typos (most of them found by codespell) 2018-12-10 18:59:58 +01:00
paragraphs_test.cc unittest: Add paragraphs_test 2018-10-12 16:23:10 +02:00
params_model_test.cc unittest: Format code 2018-09-29 09:19:13 +02:00
progress_test.cc unittest: Fix comment 2019-01-14 17:56:35 +01:00
qrsequence_test.cc unittest: Add qrsequence_test 2018-10-12 08:01:58 +02:00
README.md remove duplicate - gunit.h 2017-09-10 14:50:59 +05:30
recodebeam_test.cc Partially fix and enable more unittests 2019-01-27 06:49:57 +00:00
rect_test.cc unittest: Format code 2018-09-29 09:19:13 +02:00
resultiterator_test.cc Remove whitespace at line endings 2019-02-19 13:53:31 +01:00
scanutils_test.cc unittest: Format code 2018-09-29 09:19:13 +02:00
shapetable_test.cc Fix and enable shapetable_test 2019-01-24 11:23:20 +01:00
stats_test.cc Fix compiler warnings (signed / unsigned mismatch) 2019-03-25 08:36:07 +01:00
stridemap_test.cc unittest: Format code 2018-09-29 09:19:13 +02:00
stringrenderer_test.cc Disable ligature related subtest in stringrenderer 2019-01-27 06:49:56 +00:00
tablefind_test.cc unittest: Replace NULL by nullptr 2018-09-29 09:27:12 +02:00
tablerecog_test.cc unittest: Format code 2018-09-29 09:19:13 +02:00
tabvector_test.cc unittest: Format code 2018-09-29 09:19:13 +02:00
tatweel_test.cc Fix several typos (most of them found by codespell) 2018-12-10 18:59:58 +01:00
textlineprojection_test.cc unittest: Replace NULL by nullptr 2018-09-29 09:27:12 +02:00
tfile_test.cc unittest: Format code 2018-09-29 09:19:13 +02:00
unichar_test.cc Fix build for unichar_test 2019-01-18 21:15:33 +01:00
unicharcompress_test.cc Fix build for unicharcompress_test 2019-01-19 08:34:00 +01:00
unicharset_test.cc fix typo 2019-01-19 05:24:17 +00:00
validate_grapheme_test.cc unittest: Fix and enable validate_grapheme_test 2019-01-23 13:54:27 +01:00
validate_indic_test.cc unittest: Fix and enable validate_indic_test 2019-01-23 13:54:27 +01:00
validate_khmer_test.cc unittest: Fix and enable validate_khmer_test 2019-01-23 13:54:27 +01:00
validate_myanmar_test.cc unittest: Fix and enable validate_myanmar_test 2019-01-23 13:54:27 +01:00
validator_test.cc unittest: Format code 2018-09-29 09:19:13 +02:00

Unit Testing for Tesseract

To run the tests, do the following in tesseract folder

autoreconf -fiv
git submodule update --init
export TESSDATA_PREFIX=/prefix/to/path/to/tessdata
make check