Skip to content

Add ML-based contextual classification tests with YAML config and integration tests#194

Merged
kartnema merged 17 commits into
qualcomm:mainfrom
varunsinghal29:cc-unit-test
Mar 3, 2026
Merged

Add ML-based contextual classification tests with YAML config and integration tests#194
kartnema merged 17 commits into
qualcomm:mainfrom
varunsinghal29:cc-unit-test

Conversation

@varunsinghal29
Copy link
Copy Markdown
Member

CRs-Fixed: 4452126

@kartnema kartnema self-requested a review February 26, 2026 11:30

// Assert that model file exists and is accessible (size > 0)
E_ASSERT((modelExists > 0));
})
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add more tests here for testing if node-configurations are affected or not, for simple apps like vi with per-app configs

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread tests/CMakeLists.txt
UrmExtAPIs
RestuneCore
RestuneTestUtils)
target_link_libraries(UrmComponentTests PUBLIC UrmAuxUtils
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to add build gates so that only resource-tuner tests are built if classifier is not enabled

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

std::cout << LOG_BASE << "Inference created successfully" << std::endl;

// Test result counters
int passed = 0;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

int32_t

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

* - Handles missing executables gracefully (marked as SKIPPED)
* - Provides detailed logging for debugging classification failures
* Cross-Reference: Comprehensive application classification validation
*/
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment looks good

@varunsinghal29 varunsinghal29 requested a review from kartnema March 2, 2026 16:28
…egration tests

Signed-off-by: varusing <varusing@qti.qualcomm.com>
Comment thread tests/CMakeLists.txt Outdated

install(TARGETS UrmComponentTests DESTINATION ${CMAKE_INSTALL_BINDIR})

add_executable(UrmIntegrationTests Integration/IntegrationTests.cpp Integration/CCIntegrationTest.cpp)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can add a classifier build gate here as well, i.e.
only adding Integration/CCIntegrationTest.cpp if BUILD_CLASSIFIER is enabled

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

…egration tests

Signed-off-by: varusing <varusing@qti.qualcomm.com>
…egration tests

Signed-off-by: varusing <varusing@qti.qualcomm.com>
Signed-off-by: Varun Singhal <varusing@qti.qualcomm.com>
…egration tests

Signed-off-by: varusing <varusing@qti.qualcomm.com>
@kartnema kartnema merged commit a215494 into qualcomm:main Mar 3, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants