Skip to content

Commit 241bb92

Browse files
committed
Refactor test folder structure, update imports, adjust CMake and Codecov ignore patterns for consistency
1 parent 1472579 commit 241bb92

8 files changed

Lines changed: 13 additions & 15 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,14 +1038,11 @@ jobs:
10381038
gcovr -r ../ \
10391039
--exclude '.*3rdparty/.*' \
10401040
--exclude '/usr/.*' \
1041-
--exclude '.*/perf_tests/.*' \
1042-
--exclude '.*/func_tests/.*' \
1043-
--exclude '.*/all/runner.cpp' \
1044-
--exclude '.*/mpi/runner.cpp' \
1045-
--exclude '.*/omp/runner.cpp' \
1046-
--exclude '.*/seq/runner.cpp' \
1047-
--exclude '.*/stl/runner.cpp' \
1048-
--exclude '.*/tbb/runner.cpp' \
1041+
--exclude '.*tasks/.*/tests/.*' \
1042+
--exclude '.*tasks/common/runners/.*' \
1043+
--exclude '.*modules/core/util/include/perf_test_util.hpp' \
1044+
--exclude '.*modules/core/util/include/func_test_util.hpp' \
1045+
--exclude '.*modules/core/util/src/func_test_util.cpp' \
10491046
--xml --output ../coverage.xml \
10501047
--html=../cov-report/index.html --html-details
10511048
- name: Upload coverage reports to Codecov

codecov.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
ignore:
2-
- "**/tasks/**/tests/**"
3-
- "**/tasks/common/runners/**"
4-
- "**/modules/core/util/include/func_test_util.hpp"
5-
- "**/modules/core/util/include/perf_test_util.hpp"
2+
- "tasks/**/tests/**"
3+
- "tasks/common/runners/**"
4+
- "modules/core/util/include/perf_test_util.hpp"
5+
- "modules/core/util/include/func_test_util.hpp"
6+
- "modules/core/util/src/func_test_util.cpp"
67
coverage:
78
status:
89
project:

modules/core/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ foreach(subd ${subdirs})
1515
file(GLOB_RECURSE TMP_LIB_SOURCE_FILES ${PATH_PREFIX}/include/* ${PATH_PREFIX}/src/*)
1616
list(APPEND LIB_SOURCE_FILES ${TMP_LIB_SOURCE_FILES})
1717

18-
file(GLOB_RECURSE TMP_FUNC_TESTS_SOURCE_FILES ${PATH_PREFIX}/func_tests/*)
18+
file(GLOB_RECURSE TMP_FUNC_TESTS_SOURCE_FILES ${PATH_PREFIX}/tests/*)
1919
list(APPEND FUNC_TESTS_SOURCE_FILES ${TMP_FUNC_TESTS_SOURCE_FILES})
2020
endforeach()
2121

modules/core/perf/func_tests/perf_tests.cpp renamed to modules/core/perf/tests/perf_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <memory>
66
#include <vector>
77

8-
#include "core/perf/func_tests/test_task.hpp"
8+
#include "core/perf/tests/test_task.hpp"
99
#include "core/perf/include/perf.hpp"
1010

1111
TEST(perf_tests, check_perf_pipeline) {
File renamed without changes.

modules/core/task/func_tests/task_tests.cpp renamed to modules/core/task/tests/task_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <cstdint>
55
#include <vector>
66

7-
#include "core/task/func_tests/test_task.hpp"
7+
#include "core/task/tests/test_task.hpp"
88
#include "core/util/include/util.hpp"
99

1010
TEST(task_tests, check_int32_t) {
File renamed without changes.

0 commit comments

Comments
 (0)