diff --git a/.reuse/dep5 b/.reuse/dep5 index eee2947d..60e92e37 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -54,7 +54,7 @@ Copyright: UnionTech Software Technology Co., Ltd. License: GPL-3.0-or-later # tests -Files: tests/* +Files: tests/test* Copyright: UnionTech Software Technology Co., Ltd. License: GPL-3.0-or-later @@ -68,7 +68,7 @@ Files: deepin-ocr.desktop Copyright: UnionTech Software Technology Co., Ltd. License: CC-BY-4.0 -# 3rdparty/stub_linux -Files: 3rdparty/stub_linux/* +# tests/stub_linux +Files: tests/stub_linux/* Copyright: coolxv 2019 License: MIT diff --git a/debian/copyright b/debian/copyright index 8470a51a..8bb53c47 100644 --- a/debian/copyright +++ b/debian/copyright @@ -11,7 +11,7 @@ Files: debian/* Copyright: 2022 Deepin.Inc License: Expat -Files: 3rdparty/stub_linux/* +Files: tests/stub_linux/* Copyright: 2020 Zhang Yu License: MIT diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d8f2a0a6..022baf1d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -113,7 +113,7 @@ if(DOTEST) SET(PROJECT_NAME_TEST ${PROJECT_NAME}_test) include_directories(./../tests/) - include_directories(./../3rdparty/stub_linux/) + include_directories(./../tests/stub_linux/) aux_source_directory(./../tests/ allTestSource) aux_source_directory(./view allTestSource) diff --git a/3rdparty/stub_linux/addr_any.h b/tests/stub_linux/addr_any.h similarity index 100% rename from 3rdparty/stub_linux/addr_any.h rename to tests/stub_linux/addr_any.h diff --git a/3rdparty/stub_linux/addr_pri.h b/tests/stub_linux/addr_pri.h similarity index 100% rename from 3rdparty/stub_linux/addr_pri.h rename to tests/stub_linux/addr_pri.h diff --git a/3rdparty/stub_linux/elfio.hpp b/tests/stub_linux/elfio.hpp similarity index 100% rename from 3rdparty/stub_linux/elfio.hpp rename to tests/stub_linux/elfio.hpp diff --git a/3rdparty/stub_linux/stub.h b/tests/stub_linux/stub.h similarity index 100% rename from 3rdparty/stub_linux/stub.h rename to tests/stub_linux/stub.h diff --git a/tests/test-prj-running.sh b/tests/test-prj-running.sh index 2440ac75..153f7b33 100755 --- a/tests/test-prj-running.sh +++ b/tests/test-prj-running.sh @@ -1,6 +1,6 @@ #!/bin/bash -# SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. +# SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd. # # SPDX-License-Identifier: CC0-1.0 @@ -43,7 +43,7 @@ lcov --directory ./src/CMakeFiles/deepin-ocr_test.dir --zerocounters lcov --directory . --capture --output-file ./coverageResult/deepin-ocr_Coverage.info echo \ ===================\ do\ filter\ begin\ ====================\ -lcov --remove ./coverageResult/deepin-ocr_Coverage.info '*/3rdparty/*' '*/deepin-ocr_test_autogen/*' '*/deepin-ocr_autogen/*' '*/usr/include/*' '*/usr/local/*' '*/tests/*' '*/googletest/*' -o ./coverageResult/deepin-ocr_Coverage.info +lcov --remove ./coverageResult/deepin-ocr_Coverage.info '*/deepin-ocr_test_autogen/*' '*/deepin-ocr_autogen/*' '*/usr/include/*' '*/usr/local/*' '*/tests/*' '*/googletest/*' -o ./coverageResult/deepin-ocr_Coverage.info echo \ ===================\ do\ filter\ end\ ====================\ genhtml -o ./coverageResult/report ./coverageResult/deepin-ocr_Coverage.info @@ -51,7 +51,7 @@ sleep 2 lcov --directory . --capture --output-file ./coverageResult/deepin-ocr_Coverage.info echo \ ===================\ do\ filter\ begin\ ====================\ -lcov --remove ./coverageResult/deepin-ocr_Coverage.info '*/3rdparty/*' '*/deepin-ocr_test_autogen/*' '*/deepin-ocr_autogen/*' '*/usr/include/*' '*/usr/local/*' '*/tests/*' '*/googletest/*' -o ./coverageResult/deepin-ocr_Coverage.info +lcov --remove ./coverageResult/deepin-ocr_Coverage.info '*/deepin-ocr_test_autogen/*' '*/deepin-ocr_autogen/*' '*/usr/include/*' '*/usr/local/*' '*/tests/*' '*/googletest/*' -o ./coverageResult/deepin-ocr_Coverage.info echo \ ===================\ do\ filter\ end\ ====================\ genhtml -o ./coverageResult/report ./coverageResult/deepin-ocr_Coverage.info