Skip to content

Commit f876ddb

Browse files
committed
unittest: Fix and enable linlsq_test
Sort also the tests alphabetically. Signed-off-by: Stefan Weil <[email protected]>
1 parent 4620674 commit f876ddb

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

unittest/Makefile.am

+12-8
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@ check_PROGRAMS = \
5959
heap_test \
6060
indexmapbidi_test \
6161
intfeaturemap_test \
62-
progress_test \
6362
intsimdmatrix_test \
63+
linlsq_test \
64+
loadlang_test \
6465
matrix_test \
6566
osd_test \
66-
loadlang_test \
67+
progress_test \
6768
tesseracttests
6869

6970
TESTS = $(check_PROGRAMS)
@@ -95,21 +96,24 @@ indexmapbidi_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
9596
intfeaturemap_test_SOURCES = intfeaturemap_test.cc
9697
intfeaturemap_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
9798

98-
progress_test_SOURCES = progress_test.cc
99-
progress_test_LDFLAGS = $(OPENCL_LDFLAGS) $(LEPTONICA_LIBS)
100-
progress_test_LDADD = $(GTEST_LIBS) $(GMOCK_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)
101-
10299
intsimdmatrix_test_SOURCES = intsimdmatrix_test.cc
103100
intsimdmatrix_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
104101

102+
linlsq_test_SOURCES = linlsq_test.cc
103+
linlsq_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
104+
105+
loadlang_test_SOURCES = loadlang_test.cc
106+
loadlang_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)
107+
105108
matrix_test_SOURCES = matrix_test.cc
106109
matrix_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
107110

108111
osd_test_SOURCES = osd_test.cc
109112
osd_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)
110113

111-
loadlang_test_SOURCES = loadlang_test.cc
112-
loadlang_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)
114+
progress_test_SOURCES = progress_test.cc
115+
progress_test_LDFLAGS = $(OPENCL_LDFLAGS) $(LEPTONICA_LIBS)
116+
progress_test_LDADD = $(GTEST_LIBS) $(GMOCK_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)
113117

114118
tesseracttests_SOURCES = ../tests/tesseracttests.cpp
115119
tesseracttests_LDADD = $(GTEST_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)

unittest/linlsq_test.cc

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1+
// (C) Copyright 2017, Google Inc.
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an "AS IS" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
111

2-
#include <stdlib.h>
12+
#include "linlsq.h"
313

4-
#include "tesseract/ccstruct/linlsq.h"
14+
#include "include_gunit.h"
515

616
namespace {
717

0 commit comments

Comments
 (0)