-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scripts: twister: Add CTest harness #83297
Conversation
77a22a7
to
b061bea
Compare
af97c6a
to
ab9c607
Compare
can we add this to TWG discussion? this is a good tool, but how to use it in our CI need some clarification @pdgendt would you like to propose some idea on TWG meeting? |
Sure, I can join, when will be the next TWG meeting? The gist of it: The one "hack" I added here was to be able to run the test(s) even if the target isn't runnable. I'd like to be able to run "meta" tests, for example, performing tests on the resulting binary, without actually running/flashing. |
@pdgendt Thanks a lot. out next meeting is on next year i think it is 2025/1/10 @PerMac , correct me if I get it wrong. the CTest gives us a lot of potential, but how to use it efficiently? the way @pdgendt proposed are:
|
I don't really understand this sentence, I've added a test that already "works", but will currently build for some platform. The required testcase/sample yaml option is the
Same as for
Do you mean creating a DUT in the CTest context? |
@pdgendt, if I understand correctly,
if is only applicable on simulator environment. am I right?
this could make us to have clean view of what target and test scope we can apply to, I would support this idea. But let's discuss this with more audience. |
Yes, there is a
I don't think so? For
👍 |
3c9bd4b
to
7065ae8
Compare
I've added 2 test cases using the add_test(NAME exe_help COMMAND ${CMAKE_BINARY_DIR}/zephyr/zephyr.exe --help)
add_test(NAME exe_run COMMAND ${CMAKE_BINARY_DIR}/zephyr/zephyr.exe -stop_at=3 -no-rt) |
7065ae8
to
3e8dc28
Compare
Add the junitparser package to installed python packages for the west commands workflow. Signed-off-by: Pieter De Gendt <[email protected]>
Introduce a twister harness for CMake's CTest. Signed-off-by: Pieter De Gendt <[email protected]>
Add a testcase to validate the added CTest twister harness. Signed-off-by: Pieter De Gendt <[email protected]>
Add ctest to the list of harnesses and the ctest_args harness config option. Signed-off-by: Pieter De Gendt <[email protected]>
3e8dc28
to
292a61d
Compare
Is the next meeting on 2025/1/9? I've added this PR to the Testing WG Project. |
- native_sim | ||
harness: ctest | ||
tests: | ||
testing.ctest.base: {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add a ctest_args
example as well
Introduce a twister harness for CMake's CTest.