Stefan Weil
c4de29d16f
unittest: Allow more time for apiexample_test when using a debug build
...
OCR of an image needs much more time than 55 s when running with
a debug build without optimisations on a slow host.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-01-14 17:56:35 +01:00
Stefan Weil
74f6d0e7ff
Fix memory leak in apiexample_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-11-13 09:08:42 +01:00
Stefan Weil
9e66fb918f
unittest: Format code
...
It was formatted with clang-format-7 -i unittest/*.{c*,h}.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-09-29 09:19:13 +02:00
Shree Devi Kumar
85b03723ea
DISABLE some tests by default since they take long to run. They can be forced to run by --gtest_also_run_disabled_tests argument
2018-08-29 20:28:20 +00:00
Stefan Weil
6a28cce96b
Fix whitespace issues
...
* Remove whitespace (blanks, tabs, cr) at line endings
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-01 13:19:52 +02:00
Shreeshrii
873586ec9b
Update apiexample_test.cc
2018-06-19 10:22:46 +05:30
Shree Devi Kumar
90b29d9d53
Add tesseract/ to API header file invocation
2018-06-18 18:53:01 +00:00
Stefan Weil
39cfbd04fe
unittest: Replace NULL by nullptr
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-04-22 17:42:36 +02:00
Stefan Weil
40c71bfcb8
Update unittest for new script data location and fix out-of-tree build ( #1386 )
...
tessdata_best and tessdata_fast recently changed the path for script data,
so the tests have to be updated, too.
In addition, the relative paths did not work with out-of-tree builds.
Use absolute paths and add them as C macros to the compiler flags.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-03-13 21:15:44 +01:00
Shreeshrii
5845e1a27d
Add unit test for OSD, update apiexample test ( #1359 )
...
* Update apiexample_test.cc
* Add OSD test and logging function
* Add images for OSD unittest
2018-03-04 14:52:27 +01:00
Stefan Weil
67f706f9ef
unittest/apiexample_test: Use googletest API for error handling
...
Use the Google C++ Testing Framework instead of calling fprint / exit.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-09-13 13:50:39 +02:00
Stefan Weil
b42df389be
unittest/apiexample_test: Report missing test image
...
This avoids a runtime error (SIGSEGV caused by nullptr) for that case.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-09-13 13:43:49 +02:00
Stefan Weil
8655524772
unittest/apiexample_test: Use "C" locale
...
We cannot assume that the locale "en_US.UTF-8" is always available.
Using the "C" locale should work better.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-09-13 13:26:09 +02:00
Ray Smith
3493785f7d
Fixed apiexample and intsimdmatrix tests and prepared Makefile.am for more tests
2017-09-08 17:34:31 +01:00
Shreeshrii
f7284569ff
Use groundtruth from testing directory
2017-09-04 10:44:43 +05:30
Shreeshrii
f3dc156f22
updated version of apiexample_test
2017-08-19 18:46:23 +05:30
Shreeshrii
88e4c62b39
Add files via upload
2017-08-19 18:42:06 +05:30