Egor Pugin
e3dcfb648a
Reorder includes.
2021-01-04 18:11:23 +03:00
Stefan Weil
a96a05df7a
Add some basic tests for ELIST
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-03 22:02:51 +01:00
Stefan Weil
4186978dfc
Add Leptonica library for ligature_table_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-03 21:45:27 +01:00
Egor Pugin
fd8907471c
Improve C API. Add tests.
...
1. Add simple C API test in C++ program.
2. Add simple C API test in C program.
3. Fix including capi.h in C++ files.
2021-01-02 03:57:25 +03:00
Stefan Weil
47af1282f4
Make autotools builds for unittest less noisy by default
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-31 18:17:25 +01:00
Stefan Weil
19213e23a0
Fix broken autotools build for unittest
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-31 17:53:01 +01:00
Egor Pugin
a32c8b2d93
Remove GenericVector::compare_callback. This fixes several tests after previous commit.
2020-12-31 17:26:40 +03:00
Egor Pugin
c86325e2f7
Use TESS_API for every public symbol. Public symbol is exported from the library. This also applies to unit test and training symbols. Users will be limited to public api, but set of exported symbols will be wider still.
...
Remove TESS_LOCAL.
Fix several symbol issues that made visible with these changes.
All build systems must set -fvisibility-hidden for *nix systems.
2020-12-31 16:32:29 +03:00
Egor Pugin
3a66282e92
Remove GOOGLE_TESSERACT ifdefs.
2020-12-31 14:23:52 +03:00
Stefan Weil
fc4002dda8
Remove helpers.h from public API
...
Remove also outdated references to apitypes.h which no longer exists.
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-31 09:06:16 +01:00
Egor Pugin
7b8af67eb5
[test] Fix intsimdmatrix test. Update result value based on updated TRand engine.
2020-12-31 03:28:36 +03:00
Stefan Weil
eb9349a0eb
Run more unittests without requiring tensorflow
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-30 20:10:26 +01:00
Stefan Weil
a520b2a2fa
Improve CHECK macro for unittest
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-30 20:08:34 +01:00
Stefan Weil
f7d7aa6b95
Make tmp directory for all unit tests
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-30 18:17:58 +01:00
Egor Pugin
b7df4bc1dd
[test] Create tmp dir in more tests.
2020-12-30 16:44:59 +03:00
Egor Pugin
a3f8172918
[test] Remove set locale as it causes errors on some systems. It includes grouping for numbers, then pid and some other numbers in gtest are formatted incorrectly.
2020-12-30 16:30:40 +03:00
Egor Pugin
aacd8ec3cf
Fix more lstm tests. 6 failing tests left.
2020-12-30 15:15:11 +03:00
Egor Pugin
79226fa7cf
[test] Fix params model test.
2020-12-30 14:20:15 +03:00
Egor Pugin
7300e87f3e
Merge branch 'master' of github.com-egorpugin:tesseract-ocr/tesseract
2020-12-30 14:16:33 +03:00
Egor Pugin
14cc5fca5a
[test] Fix shapetable test.
2020-12-30 14:16:10 +03:00
Stefan Weil
688ef20f62
Replace GenericVector<RowInfo> by std::vector<RowInfo>
...
This fixes an LGTM alert:
This parameter of type RowInfo is 144 bytes -
consider passing a const pointer/reference instead.
It might also improve the performance.
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 12:14:43 +01:00
Egor Pugin
fa776eefd9
[test] Disable loading equ.traineddata in equationsdetect test until IdentifySpecialText is turned back on.
2020-12-30 14:12:49 +03:00
Egor Pugin
b538a25809
[test] Reorder includes.
2020-12-30 13:53:49 +03:00
Stefan Weil
3a34f17037
Order and clean include statements
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 10:50:39 +01:00
Stefan Weil
deec8ef46f
Replace std::list by std::vector
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-30 07:10:29 +01:00
Stefan Weil
4043204c2b
Use old genericvector.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-30 07:10:29 +01:00
Egor Pugin
7e3ea8e3d3
[test] Fix bitvector test by creating tmp dir. 15 failing tests left.
2020-12-30 03:39:07 +03:00
Egor Pugin
3817fed897
[test] Reorder includes.
2020-12-30 03:33:38 +03:00
Egor Pugin
dc9bfde8ec
[test] Fix mkdir on unix in dawg test.
2020-12-30 03:33:28 +03:00
Egor Pugin
f8957ebcc5
[test] Fix dawg.
2020-12-30 02:38:11 +03:00
Egor Pugin
694f0097fd
Fix baseapi test. Use C++ regex instead of gtest ones.
2020-12-30 01:28:50 +03:00
Stefan Weil
f4e380f64a
Remove serialis.h from public API
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-29 11:28:50 +01:00
Stefan Weil
90af3e7b5c
Remove strngs.h from public API
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
fec9c11c8c
Use std::vector, std::string in baseapi.h
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
64e902ddf7
Remove genericvector.h from public API
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
085f6b2572
Use std::list for paragraph models
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Egor Pugin
98974a6913
[test] Fix include order.
2020-12-28 20:36:04 +03:00
Egor Pugin
4dcfb5006c
[test] Correctly use assert instead of expect.
2020-12-28 03:24:05 +03:00
Egor Pugin
3187f2ef08
Move doubleptr.h to unittests as it is used only there.
2020-12-28 02:32:27 +03:00
Egor Pugin
6cc00aa332
Improve some unit tests.
2020-12-28 01:11:13 +03:00
Stefan Weil
2fe1532926
Fix some compiler errors for heap_test (more remaining)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-27 18:30:56 +01: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
5c579de68a
Fix dependency on tmp directory for unittest programs
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-24 08:54:54 +01:00
Stefan Weil
30e3f10b3f
Fix tar command for variants which require -j or -z
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-23 20:06:18 +01:00
Stefan Weil
49deadd799
Simplify code for equationdetect_test
...
It no longer depends on TensorFlow code, so it is now always enabled.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-23 17:03:06 +01:00
Stefan Weil
fef6004e6f
Simplify code for cleanapi_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-23 17:01:07 +01:00
Stefan Weil
ce8ee86204
Remove unwanted # at EOL
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-23 16:44:23 +01:00
Stefan Weil
2bfa52d517
Force fontconfig pangocairo backend for stringrenderer_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-23 12:59:57 +01:00
Stefan Weil
0d1e540267
Force fontconfig pangocairo backend for ligature_table_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-23 12:59:57 +01:00
Stefan Weil
4ce4e5ef66
Add more dependencies for unittest
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-23 12:59:57 +01:00