-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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 into smaller testsuites #79454
Comments
Can I take a stab at this one please, if it's ok could it be assigned to me? |
@zacck - please do! |
@cfriedt I'm new to Zephyr and while I have looked at the links and docs supplied above I believe I need an example to start breaking this down would you be able to assist with some information that would help here? |
@zacck If you have just started with Zephyr, I think you will need to be familiarized with Twister and the different KV pairs in the @cfriedt do you expect the |
They should be broken down into separate app directories. That's mainly because the single application is getting quite large, and the configuration requirements are not always clear. It would be better if the prj.conf and memory requirements were minimal. |
It could be good to split this into smaller commits / a task list. |
@cfriedt yeah breaking this down would be awesome, I am going to do that once I have a solid plan ahead which should be around tomorrow 16th OCT 24. |
Cool - it can be separate PRs, which should simplify things. I'll do pthreads, because it is likely the most confusing. |
It might be more beneficial if you teach me how to do the most confusing parts, that way I and others can grow into being able to help with meatier stuff and contributors like you can get more done since you can effectively direct us. I do understand that is would be slower and cumbersome, but do consider it enables us to help more. |
Is your enhancement proposal related to a problem? Please describe.
The
posix.common
testsuite contains a lot of mostly unrelated testsuites. As a result, the code size is large, but mostly the data size is extremely large.It would require less variation from default settings, and would reduce ram requirements to split that testsuite into smaller groups of more closely related testsuites.
Describe the solution you'd like
The obvious way to group related testsuites is by Option Group.
E.g.
POSIX_BARRIERS
- tests: posix: common: split posix_barriers tests into standalone test #81487POSIX_C_LIB_EXT
- tests: posix: common: split c_lib_ext tests into standalone test #81488POSIX_RW_LOCKS
- tests: posix: common: split rwlock tests into a standalone test #80943POSIX_SEMAPHORES
- tests: posix: common: split semaphore tests into a standalone test #80964POSIX_SIGNALS
- tests: posix: common: split signal tests into a standalone test #80930POSIX_SINGLE_PROCESS
- tests: posix: common: split single process into standalone test #80981POSIX_SPIN_LOCKS
- tests: posix: common: split spinlock tests into a standalone test #80965POSIX_SYSTEM_DATABASE
- tests: posix: common: split POSIX_SYSTEM_DATABASE into a standalone test #81489POSIX_THREADS_BASE
- tests: posix: common: split posix_threads_base tests into standalone test #81491POSIX_THREADS_EXT
- tests: posix: common: split posix_threads_ext tests into standalone test #81490POSIX_TIMERS
- tests: posix: common: split timer tests into a standalone test #80807XSI_REALTIME
- tests: posix: common: split XSI_REALTIME tests to standalone testsuite #83634XSI_STREAMS
- tests: posix: common: split xsi_streams tests into standalone test #81492XSI_SYSTEM_LOGGING
- tests: posix: common: split syslog tests into standalone test #80986XSI_THREADS_EXT
- tests: posix: common: split xsi_threads_ext into separate test #81741and potentially others.
testcase.yaml
permutations can be designed to enable or disable features that affect different Option Groups, like TSS, TSA, TSH (see Codes).Additionally, such a grouping would theoretically improve bug attribution capabilities; if an error was traced (either via stacktrace or bug description) to a certain posix function, there would be a 1:1 correspondance to an Option Group, so typically, only that testsuite would need to be executed.
Describe alternatives you've considered
The way the testsuite has been designed historically.
Additional context
This came up in the context of #79443 but it was already thought of as a nice-to-have.
The text was updated successfully, but these errors were encountered: