pcs parser: includes fixed, GLOB removed (#286)
* pcs parser: includes fixed, GLOB removed * source formatting (clang-format v11) (#287) Co-authored-by: vlaindic <vlaindic@users.noreply.github.com> * cmake formatting (cmake-format) (#288) Co-authored-by: vlaindic <vlaindic@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: vlaindic <vlaindic@users.noreply.github.com>
Tá an tiomantas seo le fáil i:
1 tuismitheoir
efbb154515
tiomantas
200be03bb4
12 comhad athraithe
+31
-276
Níor tháinig aon chomhaid le do chuardach
@@ -8,8 +8,7 @@ set(PCTEST_INCLUDE_DIR
|
||||
set(ROCPROFILER_LIB_PC_SAMPLING_PARSER_ID_TEST_SOURCES correlation_id_test.cpp)
|
||||
set(ROCPROFILER_LIB_PC_SAMPLING_PARSER_BENCH_TEST_SOURCES benchmark_test.cpp)
|
||||
set(ROCPROFILER_LIB_PC_SAMPLING_PARSER_GFX9_TEST_SOURCES gfx9test.cpp)
|
||||
file(GLOB ROCPROFILER_LIB_PC_SAMPLING_PARSER_TEST_HEADERS mocks.hpp
|
||||
${ROCPROFILER_LIB_PC_SAMPLING_PARSER_HEADERS})
|
||||
set(ROCPROFILER_LIB_PC_SAMPLING_PARSER_TEST_HEADERS mocks.hpp)
|
||||
|
||||
add_executable(pcs_gfx9_test)
|
||||
|
||||
@@ -17,7 +16,10 @@ target_sources(pcs_gfx9_test
|
||||
PRIVATE ${ROCPROFILER_LIB_PC_SAMPLING_PARSER_GFX9_TEST_SOURCES})
|
||||
target_include_directories(pcs_gfx9_test PRIVATE ${PCTEST_INCLUDE_DIR})
|
||||
|
||||
target_link_libraries(pcs_gfx9_test PRIVATE GTest::gtest GTest::gtest_main)
|
||||
target_link_libraries(
|
||||
pcs_gfx9_test
|
||||
PRIVATE rocprofiler::rocprofiler-common-library
|
||||
rocprofiler::rocprofiler-static-library GTest::gtest GTest::gtest_main)
|
||||
|
||||
gtest_add_tests(
|
||||
TARGET pcs_gfx9_test
|
||||
@@ -32,7 +34,10 @@ add_executable(pcs_id_test)
|
||||
target_sources(pcs_id_test PRIVATE ${ROCPROFILER_LIB_PC_SAMPLING_PARSER_ID_TEST_SOURCES})
|
||||
target_include_directories(pcs_id_test PRIVATE ${PCTEST_INCLUDE_DIR})
|
||||
|
||||
target_link_libraries(pcs_id_test PRIVATE GTest::gtest GTest::gtest_main)
|
||||
target_link_libraries(
|
||||
pcs_id_test
|
||||
PRIVATE rocprofiler::rocprofiler-common-library
|
||||
rocprofiler::rocprofiler-static-library GTest::gtest GTest::gtest_main)
|
||||
|
||||
gtest_add_tests(
|
||||
TARGET pcs_id_test
|
||||
@@ -49,4 +54,7 @@ target_sources(pcs_bench_test
|
||||
PRIVATE ${ROCPROFILER_LIB_PC_SAMPLING_PARSER_BENCH_TEST_SOURCES})
|
||||
target_include_directories(pcs_bench_test PRIVATE ${PCTEST_INCLUDE_DIR})
|
||||
|
||||
target_link_libraries(pcs_bench_test PRIVATE GTest::gtest GTest::gtest_main)
|
||||
target_link_libraries(
|
||||
pcs_bench_test
|
||||
PRIVATE rocprofiler::rocprofiler-common-library
|
||||
rocprofiler::rocprofiler-static-library GTest::gtest GTest::gtest_main)
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include <cstddef>
|
||||
|
||||
#include "mocks.hpp"
|
||||
#include "lib/rocprofiler-sdk/pc_sampling/parser/tests/mocks.hpp"
|
||||
|
||||
#define GFXIP_MAJOR 9
|
||||
|
||||
|
||||
+2
-2
@@ -23,8 +23,8 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include <cstddef>
|
||||
|
||||
#include "mocks.hpp"
|
||||
#include "pc_record_interface.hpp"
|
||||
#include "lib/rocprofiler-sdk/pc_sampling/parser/pc_record_interface.hpp"
|
||||
#include "lib/rocprofiler-sdk/pc_sampling/parser/tests/mocks.hpp"
|
||||
|
||||
#define GFXIP_MAJOR 9
|
||||
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
|
||||
#include "mocks.hpp"
|
||||
#include "pc_record_interface.hpp"
|
||||
#include "lib/rocprofiler-sdk/pc_sampling/parser/pc_record_interface.hpp"
|
||||
#include "lib/rocprofiler-sdk/pc_sampling/parser/tests/mocks.hpp"
|
||||
|
||||
#define GFXIP_MAJOR 9
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include <random>
|
||||
#include <unordered_set>
|
||||
|
||||
#include "correlation.hpp"
|
||||
#include "lib/rocprofiler-sdk/pc_sampling/parser/correlation.hpp"
|
||||
|
||||
#define CHECK_PARSER(x) \
|
||||
{ \
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir