tests/mtd_raw: add simple test for MTD#15362
Conversation
9de7005 to
c196f33
Compare
|
Hmm, I'm not sure, what's wrong here and if this is related to your code. If no one is faster than me, I'll have a deeper look soon. |
|
I know what's happening: |
c0cab9e to
b5f270a
Compare
b5f270a to
3007852
Compare
3007852 to
afe481d
Compare
|
@jue89 |
fjmolinas
left a comment
There was a problem hiding this comment.
Can you add an automatic test script?
|
added both tests |
1756b5d to
776ca35
Compare
maribu
left a comment
There was a problem hiding this comment.
looks good to me, some comments inline
|
@jue89: Can you check whether your request for changes has been addressed? |
|
I tested this on the |
I just went through every comment and can confirm that every requested change has been applied.
|
@benpicco: Care to also sneak in a fix for the style issues in @miri64: Are your comments addressed? If so, I'd be ready to ACK :-) @jia200x: I think an additional test can be considered to be of low impact and being merged during soft feature freeze, as the chances this breaks anything are pretty low. Do you you agree? |
|
I'm fine with it! |
90d7c05 to
b62952c
Compare
|
Yepp. Happy with the changes. :-) |
|
I think this needs a rebase to have the commit check changes in however. |
When dumping memory the printed addresses always start with `00000000`. This can be very confusing and lead to errors. Allow the user to specify a starting address of the printed memory that will be used instead. By introducing a wrapper function, existing users are unaffected.
b62952c to
cf2ac21
Compare
Contribution description
There are several tests for file systems that use the MTD layer but there is currently no test to quickly test out the behavior of a MTD device.
This fixes that.
Testing procedure
Run
tests/mtd_rawon a board with a MTD device configured.You can manually read / write / erase data, but there is also a
testcommand that performs some automatic tests to quickly verify the correct working of a MTD implementation.Issues/PRs references