Skip to content

Commit c5881e8

Browse files
committed
Refactor test file structure for consistency
Renamed directories and files related to functional and performance tests for better clarity and consistency. Updated CMakeLists accordingly to reflect the new structure and file paths. This avoids ambiguity and improves maintainability of the test infrastructure.
1 parent 2a6f8fc commit c5881e8

6 files changed

Lines changed: 5 additions & 5 deletions

File tree

tasks/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ set(exec_perf_tests "ppc_perf_tests")
77
# Init func tests executable files
88
set(list_of_exec_tests "")
99
if (USE_FUNC_TESTS)
10-
add_executable(${exec_func_tests} "${CMAKE_CURRENT_SOURCE_DIR}/func_runner/runner.cpp")
10+
add_executable(${exec_func_tests} "${CMAKE_CURRENT_SOURCE_DIR}/runners/functional.cpp")
1111
list(APPEND list_of_exec_tests ${exec_func_tests})
1212
endif (USE_FUNC_TESTS)
1313

1414
# Init perf tests executable files
1515
if (USE_PERF_TESTS)
16-
add_executable(${exec_perf_tests} "${CMAKE_CURRENT_SOURCE_DIR}/perf_runner/runner.cpp")
16+
add_executable(${exec_perf_tests} "${CMAKE_CURRENT_SOURCE_DIR}/runners/performance.cpp")
1717
list(APPEND list_of_exec_tests ${exec_perf_tests})
1818
endif (USE_PERF_TESTS)
1919

2020
SUBDIRLIST(subdirs ${CMAKE_CURRENT_LIST_DIR})
2121
foreach(subd ${subdirs})
22-
if ((subd STREQUAL "func_runner") OR (subd STREQUAL "perf_runner"))
22+
if (subd STREQUAL "runners")
2323
continue()
2424
endif ()
2525
add_subdirectory(${subd})

tasks/example/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ set(test_base_dir "${CMAKE_CURRENT_SOURCE_DIR}/tests")
77
# Init func tests executable files
88
set(list_of_exec_tests "")
99
if (USE_FUNC_TESTS)
10-
file(GLOB_RECURSE func_tests_source_files "${test_base_dir}/func_tests/*")
10+
file(GLOB_RECURSE func_tests_source_files "${test_base_dir}/functional/*")
1111
target_sources(${exec_func_tests} PRIVATE ${func_tests_source_files})
1212
list(APPEND list_of_exec_tests ${exec_func_tests})
1313
endif (USE_FUNC_TESTS)
1414

1515
# Init perf tests executable files
1616
if (USE_PERF_TESTS)
17-
file(GLOB_RECURSE perf_tests_source_files "${test_base_dir}/perf_tests/*")
17+
file(GLOB_RECURSE perf_tests_source_files "${test_base_dir}/performance/*")
1818
target_sources(${exec_perf_tests} PRIVATE ${perf_tests_source_files})
1919
list(APPEND list_of_exec_tests ${exec_perf_tests})
2020
endif (USE_PERF_TESTS)

0 commit comments

Comments
 (0)