Skip to content

Commit 99755b0

Browse files
committed
googletest: Add dummy test
Signed-off-by: Stefan Weil <[email protected]>
1 parent 796cd7a commit 99755b0

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ target_link_libraries (tesseract libtesseract)
254254

255255
if (EXISTS ${PROJECT_SOURCE_DIR}/googletest/CMakeLists.txt)
256256
add_subdirectory(googletest)
257+
add_executable(tesseract_tests tests/tesseracttests.cpp)
258+
target_link_libraries(tesseract_tests gtest_main)
257259
endif()
258260

259261
if (BUILD_TRAINING_TOOLS)

tests/tesseracttests.cpp

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
///////////////////////////////////////////////////////////////////////
2+
// File: tesseracttests.cpp
3+
// Description: Tests for Tesseract.
4+
// Author: Stefan Weil
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
///////////////////////////////////////////////////////////////////////
16+
17+
#include "gtest/gtest.h"
18+
19+
TEST(TesseractTest, FirstDummyTestForTesseract) {
20+
ASSERT_TRUE(1);
21+
}
22+
23+
int main(int argc, char **argv) {
24+
::testing::InitGoogleTest(&argc, argv);
25+
return RUN_ALL_TESTS();
26+
}

0 commit comments

Comments
 (0)