Skip to content

Tests cleanup#141

Merged
rajulup merged 14 commits into
qualcomm:mainfrom
simamta:tests-cleanup
Jan 28, 2026
Merged

Tests cleanup#141
rajulup merged 14 commits into
qualcomm:mainfrom
simamta:tests-cleanup

Conversation

@simamta
Copy link
Copy Markdown
Contributor

@simamta simamta commented Jan 22, 2026

Added License.

@rajulup rajulup requested review from jpagadal and kartnema January 22, 2026 10:02
Comment thread tests/README.md
}
```

Build & run:
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.

Tests alone can't be built right?
I believe these steps is to build URM

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes I will update the readme.

Comment thread tests/README.md

---

## CTest Integration
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.

Is CTest part of mini test frameowork ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ctest is tool that runs the tests

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.

Are we able to run CTest on device ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes

Comment thread tests/Component/TimerTests.cpp Outdated

#include "Timer.h" // your Timer component
#include "Timer.h" // Timer component
#include "ThreadPool.h" // whatever defines ThreadPool
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.

Can you please delete "// whatever defines ThreadPool"
Also do we need any comment/explanation for header files? if needed let's have one-liner about the header

Comment thread tests/Component/ParserTests.cpp Outdated
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.

Can we add an appropriate tag instead of component-serial ?

Comment thread tests/Component/ThreadPoolTests.cpp Outdated
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.

Can we change the tag component-serial ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sure

Comment thread tests/README.md Outdated
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.

--> TAP v13 for CI
what is TAP v13 referred to ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

TAP v13 is just a way for test programs to print their results in a standard format .

Comment thread tests/README.md

---

## Quick Start
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.

Suggestion... We can change Examples instead of Quick Start
Also provide more exampled for Fixtures, Parameterized tests, expected failures XFAIL etc

Comment thread tests/framework/mini.h
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
// SPDX-License-Identifier: BSD-3-Clause-Clear

#ifndef MINI_HPP_INCLUDED
Copy link
Copy Markdown
Contributor

@kartnema kartnema Jan 22, 2026

Choose a reason for hiding this comment

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

There are some unused macros in this file, better to remove them since it is already quite large.

I had identified and removed some of them https://github.com/qualcomm/userspace-resource-manager/pull/129/files#diff-87b5f1d2f7d578e71739d488377fce417ca98ccd67cd5af6382e7b1c10c46b46L405
But while merging one of the pr's they got mistakenly reinstated. Could you check if they can be removed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We need some of them like marker and Fixture parameterized test macro. I will remove list

Comment thread tests/Component/ThreadPoolTests.cpp Outdated

#include "TestUtils.h" // if your tests rely on helpers/macros
#include "TestUtils.h" // tests rely on helpers/macros
#include "ThreadPool.h" // your thread pool component
Copy link
Copy Markdown
Contributor

@kartnema kartnema Jan 22, 2026

Choose a reason for hiding this comment

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

don't really need these comments here

Comment thread tests/unit/stubs/RegistryStubs.cpp Outdated
// SPDX-License-Identifier: BSD-3-Clause-Clear

#include "../../../resource-tuner/core/Include/ResourceRegistry.h"
#include "../../../resource-tuner/core/Include/TargetRegistry.h"
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.

I think this can be avoided, if we just link the lib / exec building unit tests to libRestuneCore, as we are doing for ParserTests.cpp I think

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.

Hi @simamta can you check these

@simamta simamta requested a review from jpagadal January 27, 2026 06:07
Copy link
Copy Markdown

@github-advanced-security github-advanced-security AI left a comment

Choose a reason for hiding this comment

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

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@simamta simamta requested a review from kartnema January 27, 2026 07:24
Comment thread tests/CMakeLists.txt
@simamta simamta requested a review from kartnema January 27, 2026 10:10
@rajulup rajulup merged commit 2628641 into qualcomm:main Jan 28, 2026
8 of 11 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.

5 participants