-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
tests: posix: common: separate posix semaphore tests into a standalone test #80940
base: main
Are you sure you want to change the base?
Conversation
a0647b8
to
473dbb5
Compare
473dbb5
to
af1f190
Compare
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.
please rename this file to main.c
and also change the suite name from semaphore
to posix_semaphores
to match the option group name (each of the ZTEST lines will need to be updated too)
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.
Okay. Just to get it straight for all the tests.
- If it is a single source file, I should make it
main.c
. - suite name, project name in Cmake and tag name in
testcase.yaml
should match the option group name. - target libaries should not be included. I am curious about this, if you can shed some light on it.
Is there anything I am missing?
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.
Okay. Just to get it straight for all the tests.
- If it is a single source file, I should make it
main.c
.
Yes, thanks.
- suite name, project name in Cmake and tag name in
testcase.yaml
should match the option group name.
Yep
- target libaries should not be included. I am curious about this, if you can shed some light on it.
There shouldn't be any need to add the library directory to to the application's include paths. This is mainly because the library directory (lib/posix/options
) would normally only have private header, and tests should be run against public API.
Is there anything I am missing?
I think that's about it. Thanks for all of your work here 🙏
8fba314
to
1b595b3
Compare
… test posix.common contains testsuites that can be separated into smaller groups of tests. This change moves semaphore into a singular testsuite at tests/posix/semaphores app directory. Signed-off-by: Marvin Ouma <[email protected]>
1b595b3
to
05fd4f7
Compare
@Pancakem - please apply this diff diff --git a/tests/posix/semaphores/testcase.yaml b/tests/posix/semaphores/testcase.yaml
index 2ad9053724c..92fdebbd992 100644
--- a/tests/posix/semaphores/testcase.yaml
+++ b/tests/posix/semaphores/testcase.yaml
@@ -7,10 +7,10 @@ common:
platform_key:
- arch
- simulation
+ min_flash: 64
+ min_ram: 32
tests:
- portability.posix.semaphores:
- min_flash: 64
- min_ram: 32
+ portability.posix.semaphores: {}
portability.posix.semaphores.minimal:
extra_configs:
- CONFIG_MINIMAL_LIBC=y |
Fixes #80964
posix.common contains testsuites that can be separated into smaller groups of tests. This change moves semaphore into a singular testsuite at tests/posix/semaphore app directory.