-
Couldn't load subscription status.
- Fork 641
The placement of cases under testing is a bit messy, and cases of the same type need to be merged #2931
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
Conversation
|
[Experimental Bot, please feedback here] No, this PR description does not adequately meet the NuttX requirements. Here's why and how to fix it: Missing Information in Summary:
Missing Information in Impact:
Insufficient Testing Information:
Example of a Better PR Description: SummaryThis PR reorganizes the test cases under Impact
TestingI confirm that changes are verified on my local setup and work as intended:
Testing logs before change: Testing logs after change: By providing more details and specific information, you make it much easier for reviewers to understand and approve your PR. Remember to replace the placeholders with your actual information. |
94ad17c to
a1e8109
Compare
|
@txy-21 please fix the conflicts |
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.
Thank you @txy-21 good idea, it should keep things clean, on the other hand folks may search for existing tests in subdirectories :-P PR needs a rebase. Then we can see the CI build results :-)
Some questions:
- do we / should we want to resemble
nuttx.gitorganization with these tests? himem_testandmemtestare moved toarch/butmmis not, why? Maybe we want dedicatedmemory/section for all memory related tests?- If we want to resemble
nuttx/organization do we wantdrivers/for drivers test (in place ofdriver)? cmockadoes not really tell what category is tested under? Why it is placed underfs/? Is it the cmocka framework test or cmocka is used to test something else? If so the tests should be named by their function not a test tool used? Seemm/cmockacomment below, if tests are using cmocka framework and tests inside are self-explanatory then okay :-)- before we had
testuites/kernel/fs/*now it is renamed tofs/cmocka/* - what happens to
fff? It is renamed tofs/cmocka/but no reason why and what happens withfff. Anyone usingfff? If so they will see things just disappeared with no info in the commit message. - what is the
fdsantesttest for? do we want to update description too? - do we want
nand_siminfs/ordrivers/? does it operate on driver or filesystem level? - do we want
sd_benchandsd_stressinfs/ordrivers/? does it operate on driver or filesystem level? - do we want
libcinlibs/libc/libc_testto resemblenuttxlayout? - do we want
arch_libsinlibs/arch_libs? - do we want
fmemopeninlibs/libc/stdio/fmemopen?libs/libc/fmemopenis also fine. - do we want
scanftestinlibs/libc/stdio/scanftest?libs/libc/scanftestis also fine. mm/cmockais similar tofs/cmocka.. I assume these aremmtests performed with use of cmocka framework and test inside will be self-explanaotory? Still it would be nice to know what tests are included and performed under cmocka?- should
monkeygo todrivers/monkeyinstead ofmm/monkey? - should
resmonitorgo toos/resmonitor? ismm/a good selection? - should
stressapptestgo toos/stressapptest? - I can see that
fffagain is removed and becomes part ofnet/. why? testsuites/kernel/socketbecomesnet/cases.. shouldn't it becomenet/cmockato align with other cmocka tests?- do we want
rpmsgto go tofs/rpmsgornet/rpmsg? - do we want
atomicto go toos/atomicorsched/atomicis okay? - why
sched/cmocka_mutexhas dedicated category notsched/cmockaas other cmocka tests? - the same as above for
sched/cmocka_pthreadwhy not just case forsched/cmocka? - the same as above for
sched/cmocka_syscall? - the same as above for
sched/cmocka_time? - do we want
cpuloadinos/cpuloadorsched/is better location? - do we want
getprimeinos/getprimeorsched/is better location? - do we want
smpinos/smporsched/is better location? - do we want
timerjitterinos/timerjitterorsched/is better location? - Regarding the
os/test location it may contain generic (RT)OS tests whilesched/test would be dedicated to NuttX scheduler.. OS test may contain also other tests likeos/ostestetc. - It seems that not all tests are moved?
6c06aef to
a5bf405
Compare
Not exactly the same layout with nuttx.git, because something is not suitable, like nsh_test (if we have in the feature), lvgl...
Because himem_test not the common mm test, it depends on the specific arch chip.
Yes, the 'mm/cmocka' will be confuse, we can change to 'mm/basic' ?
same will 'mm/cmocka' change to
We think the fff is none use it, so we decide remove it. Will split to another PR to discuss this.
The test case of tools fdsan, for the file descriptor used after free. The description will update in another PR.
Good find, should move to drivers.
Aslo move to drivers.
Probably not, we named the folder base on feature category, how do you think ?
'mm/cmocka' change to
Agree & Accept.
So we start a 'os' folder, as the stress-likely test ? How about 'stress'
OK,
No, we remove it. As said before will start a new PR, to see opinions from others.
Also change to
No, rpmsg is a independent feature, is for the AMP IPC
Prefer
The folder name should a feature, not a 'cmocka-based' folder name I think.
Prefer sched
'os' is too big, all the testcase can after os, because we are doing a OS ^_^
The fist version only change the 'apps/testing'. |
|
this page in the doc should be updated according to this PR https://nuttx.apache.org/docs/latest/applications/testing/index.html so we know were a given test app can be found. |
70cf2f4 to
4581cd3
Compare
|
Thank you @GUIDINGLI for the feedback :-)
okay :-)
If its more architecture specific then
thanks :-)
The
ACK
I think the mention of removing
ACK
thanks :-)
thanks :-)
I think
Yes, this is the point, cmocka name can be used to show cmocka framework is used for testing, but when looking inside tests should be self-explanatory to easily know what is tested under.. maybe some description like "generic feature tests performed with cmocka framework" would be helpful.. I think it works like this right now? :-)
thanks :-)
I think that Monkey test is undocumented and it seems to test UINPUT so probably
Okay, it should not be touched here in that case :-)
Or
ACK :-)
Okay :-) If the
Okay so the pthread, syscall, time, etc, should be merged into one single
ACK :-) I am curious of other folks ideas here? shed vs os :-)
Yeah but it seems intutitive to have all generic tests over there.. but I am not enforcing anything.. if other folks also think that wat let it be
ACK :-) Thank you :-) |
4581cd3 to
cd950ae
Compare
|
According to this commenthttps://github.com//pull/2931#issuecomment-2577992183, |
|
let's split the indpedent change to new pr, so we can progresss step by step. |
Okay, maybe its a good time to split testing utilities and test scenarios :-) Would it be better to do this in this PR or a separate PR? |
|
if we decide to separate testing utilities and test scenarios, then this PR doesn't make much sense. The problem is how to split these applications, Or maybe we use something like: |
Lets use small measurable steps approach and do not put too much changes into a single PR. The idea to groups tests by function is nice. The idea to split testing utilities, apps, and scenarios is also nice and it could be second step in testing cleanup?
Yes this seems best coherent and self-explanatory approach I like it :-) I am for accepting this PR as it passes the Ci tests and follows the previous discussions. Then moving forward with further cleanup in next PRs. But if author is willing to update the PR and further split |
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.
Thank you @txy-21 :-)
yes, I think it's better to add subfolder in testing instead the top level folder. @txy-21 could you split this huge patch into small pr? |
|
Update based on discussion in #2961:
|
follow the dissusion from: apache#2931 Signed-off-by: Xiang Xiao <[email protected]>
follow the dissusion from: apache#2931 Signed-off-by: Xiang Xiao <[email protected]>
follow the dissusion from: apache#2931 Signed-off-by: Xiang Xiao <[email protected]>
follow the dissusion from: apache#2931 Signed-off-by: Xiang Xiao <[email protected]>
follow the dissusion from: apache#2931 Signed-off-by: Xiang Xiao <[email protected]>
follow the dissusion from: #2931 Signed-off-by: Xiang Xiao <[email protected]>
|
Okay getting back to discussion in the original test reorganization thread:
|
|
please rebase |
|
@txy-21 please mark this PR as DRAFT as changes are done in separate PR this one is not to be merged right? :-) |
Summary
Merge the test cases under testing into the same folder.
Impact
The cases under apps/testing will be separated and placed in different folders.
Testing
Local self-test can be done through.