Skip to content

userspace-resource-manager: Modify test runner for URM#352

Open
kartnema wants to merge 1 commit intoqualcomm-linux:mainfrom
kartnema:main
Open

userspace-resource-manager: Modify test runner for URM#352
kartnema wants to merge 1 commit intoqualcomm-linux:mainfrom
kartnema:main

Conversation

@kartnema
Copy link

@kartnema kartnema commented Mar 17, 2026

Update the existing test runner for resource-tuner:

  • Changes to reflect project name change from resource-tuner to userspace-resource-manager.
  • Modify the list of test executables to be executed as part of automated testing.
  • Test Runner changes to use configs in /etc/urm/tests rather than /etc/urm/custom

@kartnema kartnema marked this pull request as draft March 17, 2026 06:15
Signed-off-by: Kartik Nema <kartnema@qti.qualcomm.com>
@kartnema kartnema changed the title Modify test runner for URM userspace-resource-manager: Modify test runner for URM Mar 17, 2026
@kartnema kartnema marked this pull request as ready for review March 17, 2026 06:40
# base config requirement: accept common OR tests; skip only if BOTH missing
if suite_requires_base_cfgs "$name"; then
if [ $COMMON_OK -eq 0 ] && [ $CUSTOM_OK -eq 0 ]; then
if [ $COMMON_CONFIGS_OK -eq 0 ] && [ $TEST_CONFIGS_OK -eq 0 ] && [ $TEST_NODES_OK -eq 0 ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this changes the gating semantics in a risky way. tests/nodes looks like a required input for the URM suites, but with this condition the suite will still run when configs are present and tests/nodes is missing. Should the nodes check remain a separate per-suite skip, instead of being folded into the “all three missing” condition?

Copy link
Author

Choose a reason for hiding this comment

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

For the update test suites, both tests/nodes and tests/configs are required input, in addition to common configs.

The goal is since, running test case with tests/nodes present but tests/configs (or the other way around) does not make sense, hence a more exhaustive check needs to be added to see if all 3 requirements are satisfied. I'll make the code level checks, and change the comments as appropriate.

if suite_requires_base_cfgs "$name"; then
if [ $COMMON_OK -eq 0 ] && [ $CUSTOM_OK -eq 0 ]; then
if [ $COMMON_CONFIGS_OK -eq 0 ] && [ $TEST_CONFIGS_OK -eq 0 ] && [ $TEST_NODES_OK -eq 0 ]; then
log_skip "[CFG] Base configs missing (common/ AND custom/) — skipping $name"
Copy link
Contributor

Choose a reason for hiding this comment

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

This still says custom/, but the new path is tests/configs. Please update the message so runtime logs match the new layout.

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