diff --git a/.gitignore b/.gitignore index 46222491..656b32a0 100644 --- a/.gitignore +++ b/.gitignore @@ -101,7 +101,6 @@ kernel*.bin /unittest/*_test /unittest/primesbitvector /unittest/primesmap -/unittest/tesseracttests # generated files from unlvtests times.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index c05661b6..85d90bf0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -304,8 +304,6 @@ target_link_libraries (tesseract libtesseract) if (BUILD_TESTS AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/googletest/CMakeLists.txt) add_subdirectory(googletest) - add_executable(tesseract_tests tests/tesseracttests.cpp) - target_link_libraries(tesseract_tests gtest_main) endif() if (BUILD_TRAINING_TOOLS) diff --git a/tests/tesseracttests.cpp b/tests/tesseracttests.cpp deleted file mode 100644 index aa020698..00000000 --- a/tests/tesseracttests.cpp +++ /dev/null @@ -1,26 +0,0 @@ -/////////////////////////////////////////////////////////////////////// -// File: tesseracttests.cpp -// Description: Tests for Tesseract. -// Author: Stefan Weil -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/////////////////////////////////////////////////////////////////////// - -#include "gtest/gtest.h" - -TEST(TesseractTest, FirstDummyTestForTesseract) { - ASSERT_TRUE(1); -} - -int main(int argc, char **argv) { - ::testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -} diff --git a/unittest/Makefile.am b/unittest/Makefile.am index f07334cb..9de18966 100644 --- a/unittest/Makefile.am +++ b/unittest/Makefile.am @@ -119,8 +119,7 @@ check_PROGRAMS = \ tablefind_test \ tablerecog_test \ tabvector_test \ - tfile_test \ - tesseracttests + tfile_test if ENABLE_TRAINING check_PROGRAMS += commandlineflags_test @@ -226,9 +225,6 @@ tablerecog_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS) tabvector_test_SOURCES = tabvector_test.cc tabvector_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS) -tesseracttests_SOURCES = ../tests/tesseracttests.cpp -tesseracttests_LDADD = $(GTEST_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS) - tfile_test_SOURCES = tfile_test.cc tfile_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS) @@ -242,7 +238,6 @@ intsimdmatrix_test_LDADD += -lws2_32 matrix_test_LDADD += -lws2_32 osd_test_LDADD += -lws2_32 loadlang_test_LDADD += -lws2_32 -tesseracttests_LDADD += -lws2_32 endif EXTRA_apiexample_test_DEPENDENCIES = $(abs_top_builddir)/test/testing/phototest.tif