[rocprof-sys] Add test cleanup fixtures for binary-rewrite and runtime-instrument tests (#2012)

- Added `binary-rewrite-cleanup` and `runtime-instrument-cleanup` tests that remove instrumented binaries and output directories using `cmake -E rm -rf`
- Implemented CMake test fixtures (`FIXTURES_SETUP` and `FIXTURES_CLEANUP`) to establish proper test ordering:
  - `binary-rewrite` sets up the `binary-rewrite-fixture`
  - `binary-rewrite-run` and validation tests require this fixture
  - `binary-rewrite-cleanup` performs cleanup for this fixture
  - Same pattern applied for `runtime-instrument`
- Extended `ROCPROFILER_SYSTEMS_ADD_PYTHON_TEST` to accept `FIXTURES_REQUIRED` parameter
- Updated validation tests to require appropriate cleanup fixtures based on test name pattern matching
- Added fixture requirements to Python code-coverage tests
Этот коммит содержится в:
Milan Radosavljevic
2025-11-29 00:51:54 +01:00
коммит произвёл GitHub
родитель fd61b0f507
Коммит ee7305e795
2 изменённых файлов: 74 добавлений и 4 удалений
+3
Просмотреть файл
@@ -90,6 +90,9 @@ foreach(_VERSION ${ROCPROFSYS_PYTHON_VERSIONS})
DEPENDS code-coverage-basic-blocks-binary-rewrite
code-coverage-basic-blocks-binary-rewrite-run
code-coverage-basic-blocks-hybrid-runtime-instrument
FIXTURES_REQUIRED
code-coverage-basic-blocks-binary-rewrite-fixture
code-coverage-basic-blocks-hybrid-runtime-instrument-fixture
LABELS "code-coverage"
ENVIRONMENT "${_python_environment}"
)