Skip to content

Commit

Permalink
Fix and enable stringrenderer_test
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jan 23, 2019
1 parent a6da642 commit 4b24d8c
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 75 deletions.
4 changes: 4 additions & 0 deletions unittest/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ check_PROGRAMS = \
progress_test \
qrsequence_test \
rect_test \
stringrenderer_test \
stats_test \
tablefind_test \
tablerecog_test \
Expand Down Expand Up @@ -242,6 +243,9 @@ qrsequence_test_LDADD = $(ABSEIL_LIBS) $(GTEST_LIBS) $(TESS_LIBS)
rect_test_SOURCES = rect_test.cc
rect_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)

stringrenderer_test_SOURCES = stringrenderer_test.cc
stringrenderer_test_LDADD = $(ABSEIL_LIBS) $(GTEST_LIBS) $(TRAINING_LIBS) $(TESS_LIBS) $(ICU_I18N_LIBS) $(ICU_UC_LIBS) -lfontconfig -lpangocairo-1.0 -lpangoft2-1.0 $(cairo_LIBS) $(pango_LIBS)

stats_test_SOURCES = stats_test.cc
stats_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)

Expand Down
1 change: 1 addition & 0 deletions unittest/include_gunit.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class file : public tesseract::File {
#define ARRAYSIZE(arr) (sizeof(arr) / sizeof(arr[0]))
#define CHECK(test) ASSERT_HOST(test)
#define CHECK_GT(test, value) ASSERT_HOST((test) > (value))
#define CHECK_LT(test, value) ASSERT_HOST((test) < (value))
#define CHECK_OK(test) ASSERT_HOST(test)

#endif // TESSERACT_UNITTEST_INCLUDE_GUNIT_H_
Loading

0 comments on commit 4b24d8c

Please sign in to comment.