Egor Pugin
bcebf04f8e
[unittest] Use more smart ptrs, more std::make_unique instead of .reset(new T()).
2021-03-14 23:06:19 +03:00
Egor Pugin
1d5b083447
[clang-format] Format unit tests.
2021-03-13 00:06:34 +03:00
Stefan Weil
bc69e28de3
Update include statements for external header file allheaders.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-02-13 10:17:20 +01:00
Shree Devi Kumar
e07c99d874
Replace deprecated INSTANTIATE_TEST_CASE_P
2021-01-20 18:03:05 +00:00
Egor Pugin
6cc00aa332
Improve some unit tests.
2020-12-28 01:11:13 +03:00
Stefan Weil
a61d7ac2ee
Add / fix namespace tesseract for unittest
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-27 10:54:43 +01:00
Stefan Weil
0b97bc5c16
Fix include statements for Leptonica header
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-13 13:26:36 +01:00
Stefan Weil
d4cf77c92b
Don't check for limits.h (now unused)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-06-20 10:39:13 +02:00
Stefan Weil
e3e7a9bf33
Use #include <tesseract/*.h> for unittest
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-10-29 18:01:18 +01:00
Stefan Weil
26ba7e2f81
Fix #include path of public headers for unittest
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-10-29 08:41:47 +01:00
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