Shree Devi Kumar
b5d41b77eb
Add leptonica-libs for apply-boxes test
2018-08-30 04:25:28 +00:00
Stefan Weil
46f65bf0c2
unittest: Fix and enable applybox_test
...
It needs an update of the test submodule.
The tests only pass with a small modification of the ground truth texts
(kTruthTextWords, kTruthTextLine).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-28 21:03:49 +02:00
Stefan Weil
c1af1f6694
unittest: Fix and enable commandlineflags_test
...
It only works if training is enabled and built.
The test "PrintUsageAndExit" had to be disabled because it
currently fails.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-27 11:55:23 +02:00
Stefan Weil
ca7ae1c3a6
unittest: Fix and enable validator_test
...
It requires additional training libraries, so this test only works
if training is enabled and build.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-27 11:45:35 +02:00
Stefan Weil
70665721f4
unittest: Fix and enable tfile_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-26 19:15:06 +02:00
Stefan Weil
8e404679c1
unittest: Fix and enable tabvector_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-26 19:15:06 +02:00
Stefan Weil
aac00836d5
unittest: Fix and enable tablerecog_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-26 19:15:06 +02:00
Stefan Weil
7aef7a304f
unittest: Fix and enable tablefind_test
...
This requires a local definition for macro ABSL_ARRAYSIZE
(normally defined as part of the Abseil API).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-26 19:15:06 +02:00
Stefan Weil
f95725afcb
unittest: Fix and enable stats_test
...
This requires a local definition for macro ABSL_ARRAYSIZE
(normally defined as part of the Abseil API).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-26 19:15:06 +02:00
Stefan Weil
6df28fb3f0
unittest: Fix and enable rect_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-26 19:15:06 +02:00
Stefan Weil
3d38e8ceb7
unittest: Fix and enable nthitem_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-26 19:15:06 +02:00
Stefan Weil
f876ddb084
unittest: Fix and enable linlsq_test
...
Sort also the tests alphabetically.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-26 19:15:06 +02:00
Stefan Weil
aec9ce7757
unittest: Fix and enable intfeaturemap_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-25 18:39:41 +02:00
Stefan Weil
c4eda838aa
unittest: Fix and enable indexmapbidi_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-25 18:39:40 +02:00
Stefan Weil
de7676c88e
unittest: Fix and enable heap_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-25 18:39:40 +02:00
Stefan Weil
2dc0b68147
unittest: Fix and enable denorm_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-25 18:16:46 +02:00
Stefan Weil
bb101defdb
unittest: Fix and enable colpartition_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-25 18:16:46 +02:00
Stefan Weil
68db6aa5df
unittest: Fix and enable cleanapi_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-25 18:16:46 +02:00
Stefan Weil
0dc5c8ef3f
unittest: Fix and enable bitvector_test
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-08-25 18:16:46 +02: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
Shree Devi Kumar
16e45d21a0
Test load of all langs and scripts for all 3 tessdata repos
2018-06-17 05:31:32 +00:00
Stefan Weil
165622c745
Fix symbolic link in unittest
...
The unittest could not run when building out of source tree.
Fix the symbolic link and make sure that the directory for it exists.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-09 14:15:13 +02:00
Shree Devi Kumar
2563380d51
move testing and testdata to test, add unlvtests
2018-06-06 12:20:14 +00:00
Jaroslaw Kubik
e05d333378
Added tests for progress reporting API
...
The progress reporting API is now tested using googlemock tools.
2018-06-02 00:47:34 +02:00
Jaroslaw Kubik
92168c5e8b
Added googlemock building instructions
...
The googlemock tools are already present, so why not make use of
it. It can be usefull for testing callbacks.
2018-06-02 00:42:37 +02:00
Stefan Weil
a2a12a4469
Fix unittest for autotools configuration after source tree reorganisation
...
Now "make check" also works again.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-04-25 21:33:28 +02:00
Stefan Weil
95f39142ac
Fix unittest (missing include path)
...
Add include path for api/tess_version.h.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-04-24 13:17:57 +02:00
amitdo
c3e6083e42
Remove 'AUTOMAKE_OPTIONS' from all Makefile.am files
...
'AM_INIT_AUTOMAKE()' in configure.ac sets options globally.
2018-04-23 14:01:16 +03:00
Stefan Weil
3fcb952dbf
Remove unneeded CPPFLAGS ( #1425 )
...
* training: Remove unneeded CPPFLAGS
The training code does not need vs2010/port.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
* unittest: Remove unneeded CPPFLAGS
The unittest code does not need vs2010/port.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-03-25 21:04:45 +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
7972b13e3a
Remove macro USE_STD_NAMESPACE ( #1360 )
...
The related code in training/util.h now uses the GOOGLE_TESSERACT macro
to enable Google specific code to disable heap checking.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-03-04 14:43:28 +01:00
Stefan Weil
5c7600c282
unittest/apiexample_test: Fix test for out-of-tree builds
...
The test expects to find phototest.tif and phototest.txt
in directory ../testing. Create symbolic links if those
files don't exist there.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-09-13 13:29:16 +02:00
Stefan Weil
4ae227df53
unittest: Fix path for libtesseract in out of tree builds
...
The library is provided in the build path (which is not
the same as the source path for out of tree builds).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-09-12 17:24:34 +02:00
amitdo
a905548ed6
Autotools build: Remove the option 'USING_MULTIPLELIBS'
...
Libtool's convenience libraries should never be installed. Fixes #985 .
2017-09-11 15:03:53 +03:00
Ray Smith
3493785f7d
Fixed apiexample and intsimdmatrix tests and prepared Makefile.am for more tests
2017-09-08 17:34:31 +01:00
Ray Smith
fc6a390c6c
Added intsimdmatrix as a generic integer matrixdotvector function with AVX2 and SSE specializations
2017-09-08 15:06:19 +01:00
Shreeshrii
10cf508442
Changed syntax for AM_CPPFLAGS
...
as per suggestion in https://github.com/tesseract-ocr/tesseract/pull/1088#discussion_r136700733
Not ALL of these are needed currently.
2017-09-03 08:09:18 +05:30
Shreeshrii
88e4c62b39
Add files via upload
2017-08-19 18:42:06 +05:30