-
Notifications
You must be signed in to change notification settings - Fork 568
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
The placement of cases under testing is a bit messy, and cases of the same type need to be merged #2931
base: master
Are you sure you want to change the base?
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.git
organization with these tests? himem_test
andmemtest
are moved toarch/
butmm
is 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
)? cmocka
does 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/cmocka
comment 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
fdsantest
test for? do we want to update description too? - do we want
nand_sim
infs/
ordrivers/
? does it operate on driver or filesystem level? - do we want
sd_bench
andsd_stress
infs/
ordrivers/
? does it operate on driver or filesystem level? - do we want
libc
inlibs/libc/libc_test
to resemblenuttx
layout? - do we want
arch_libs
inlibs/arch_libs
? - do we want
fmemopen
inlibs/libc/stdio/fmemopen
?libs/libc/fmemopen
is also fine. - do we want
scanftest
inlibs/libc/stdio/scanftest
?libs/libc/scanftest
is also fine. mm/cmocka
is similar tofs/cmocka
.. I assume these aremm
tests 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
monkey
go todrivers/monkey
instead ofmm/monkey
? - should
resmonitor
go toos/resmonitor
? ismm/
a good selection? - should
stressapptest
go toos/stressapptest
? - I can see that
fff
again is removed and becomes part ofnet/
. why? testsuites/kernel/socket
becomesnet/cases
.. shouldn't it becomenet/cmocka
to align with other cmocka tests?- do we want
rpmsg
to go tofs/rpmsg
ornet/rpmsg
? - do we want
atomic
to go toos/atomic
orsched/atomic
is okay? - why
sched/cmocka_mutex
has dedicated category notsched/cmocka
as other cmocka tests? - the same as above for
sched/cmocka_pthread
why not just case forsched/cmocka
? - the same as above for
sched/cmocka_syscall
? - the same as above for
sched/cmocka_time
? - do we want
cpuload
inos/cpuload
orsched/
is better location? - do we want
getprime
inos/getprime
orsched/
is better location? - do we want
smp
inos/smp
orsched/
is better location? - do we want
timerjitter
inos/timerjitter
orsched/
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/ostest
etc. - 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, |
.gitignore
Outdated
@@ -47,3 +47,4 @@ build | |||
.ccls-cache | |||
compile_commands.json | |||
.aider* | |||
testing/*/Kconfig |
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.
this is wrong. There is testing/unity/Kconfig
which should not be ignored
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.
Thanks for your reminder, I will fix this error.
let's split the indpedent change to new pr, so we can progresss step by step. |
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.
I don't think that apps/testing
is a good place to keep any tests logic. This directory was created for unity
framework which is intended to use by user code to implement user application tests (TDD), but somehow it happened that more and more apps were migrated there.
It think that currently almost nothing fits there except Unity, Cmoka and fff. Why not create a new folder like tests
which will hold all test applications, and leave testing
for tools that can be used by user code? This directory should be reserved for things like testing frameworks integration and similar things.
It's more common in various projects to use tests
directory to hold test logic, not testing
.
Also removing fff
doesn't seems right. It doesn't mater if its not used by any tests in apps, it still can be used to implement user specific tests. Adding a feature just to remove it a few months later is not ok. Maybe no one uses it, or maybe someone does, who knows?
…gory Signed-off-by: tengshuangshuang <[email protected]>
Thank @raiden00pl for your suggestion. This PR only integrates the cases in the testing folder. If you think it is a better choice to create a tests folder to store cases, you can create a PR to make the change. |
cd950ae
to
a1f17a4
Compare
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.