Revert "Adding more unit tests to reach 80%"#963
Conversation
This reverts commit 5b9ba5b.
There was a problem hiding this comment.
Pull Request Overview
This PR reverts the previously added unit tests for the aqlprofile project, removing test coverage improvements that were targeting 80% coverage. The revert removes multiple test suites and simplifies the build configuration.
- Removes additional unit test executables for PM4 builders (pmc, spm, trace config, sqtt)
- Removes test suites for core components (pm4 factory, logger, aql profile v2)
- Simplifies CMakeLists.txt files by removing test configuration blocks
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| projects/aqlprofile/src/pm4/tests/CMakeLists.txt | Removes multiple test executables and reverts to single gfx9-command-builder-test |
| projects/aqlprofile/src/pm4/spm_builder.h | Removes unnecessary include directive |
| projects/aqlprofile/src/pm4/cmd_config.h | Removes unnecessary include directive |
| projects/aqlprofile/src/core/tests/CMakeLists.txt | Removes test configurations for pm4-factory, logger, and aql-profile-v2 tests |
| projects/aqlprofile/src/CMakeLists.txt | Removes test subdirectory includes and configuration |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| ${CMAKE_CURRENT_SOURCE_DIR}/gfx9_cmd_builder_tests.cpp | ||
| ) | ||
| target_sources(gfx9-command-builder-test PRIVATE ${AQLPROFILE_GFX9_COMMAND_BUILDER_SOURCES}) | ||
| target_sources(gfx9-command-builder-test PRIVATE ${AQLPROFILE_COMMAND_BUILDER_SOURCES}) |
There was a problem hiding this comment.
The variable name AQLPROFILE_COMMAND_BUILDER_SOURCES doesn't match the variable being defined above (AQLPROFILE_COMMAND_BUILDER_SOURCES is set on line 8-10 but should likely be AQLPROFILE_GFX9_COMMAND_BUILDER_SOURCES to match the test name).
| gtest_add_tests( | ||
| TARGET gfx9-command-builder-test | ||
| SOURCES ${AQLPROFILE_GFX9_COMMAND_BUILDER_SOURCES} | ||
| SOURCES ${AQLPROFILE_COMMAND_BUILDER_SOURCES} |
There was a problem hiding this comment.
The SOURCES parameter references AQLPROFILE_COMMAND_BUILDER_SOURCES but this variable contains cmd_builder_tests.cpp while the test is named gfx9-command-builder-test, suggesting it should reference gfx9_cmd_builder_tests.cpp instead.
|
closing this as the problem is fixed by #961 |
Reverts #177