From dc8ccadac86b6cbf27fd259dae1b51116cb709f5 Mon Sep 17 00:00:00 2001 From: Karl W Schulz Date: Tue, 31 Oct 2023 09:38:40 -0500 Subject: [PATCH] add profile execution test in cmake and enable in CI Signed-off-by: Karl W Schulz [ROCm/rocprofiler-compute commit: d0c663485f8b09270ebb467e339044b779a092a2] --- projects/rocprofiler-compute/.github/workflows/mi100.yml | 2 +- projects/rocprofiler-compute/CMakeLists.txt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/rocprofiler-compute/.github/workflows/mi100.yml b/projects/rocprofiler-compute/.github/workflows/mi100.yml index 613e205220..b74533d77f 100644 --- a/projects/rocprofiler-compute/.github/workflows/mi100.yml +++ b/projects/rocprofiler-compute/.github/workflows/mi100.yml @@ -37,7 +37,7 @@ jobs: run: | cd build ml cmake - ctest --verbose -R test_profiler_execution + ctest --verbose -R test_profiler_general - name: Run [analyze] mode run: | cd build diff --git a/projects/rocprofiler-compute/CMakeLists.txt b/projects/rocprofiler-compute/CMakeLists.txt index f378374521..c801eb75e5 100644 --- a/projects/rocprofiler-compute/CMakeLists.txt +++ b/projects/rocprofiler-compute/CMakeLists.txt @@ -193,6 +193,11 @@ add_test( COMMAND pytest ${COV_OPTION} ${PROJECT_SOURCE_DIR}/tests/test_analyze_workloads.py WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}) +add_test( + NAME test_profiler_general + COMMAND pytest ${COV_OPTION} ${PROJECT_SOURCE_DIR}/tests/test_profile_general.py + WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}) + add_test( NAME test_saved_analysis COMMAND pytest ${COV_OPTION} ${PROJECT_SOURCE_DIR}/tests/test_saved_analysis.py