tests: provide tests for od module#5747
Conversation
|
It's always good to increase the test coverage! Nice! |
|
Then is someone willing to review ;-)? |
|
|
||
| #define CALL(fn) puts(#fn); fn | ||
|
|
||
| static const char short_str[] = "AB"; |
There was a problem hiding this comment.
Do these strings provide any dedicated special bit patterns, or are they just arbitrary?
There was a problem hiding this comment.
Oh well wait: the long_str contains bit patterns that have different results in unsigned and signed notation: 0xff.
There was a problem hiding this comment.
short_str is only used to test output width vs array width discrepencies.
|
Syntax and code style seem O.K. to me. Built and run on native, but I'm unsure what the expected output is. |
|
The expected output is in the contained expect script |
|
(at least for 32-bit platforms) |
|
(and since |
|
Thanks for the comments. Do you mind to do the same to the response section? |
Do you mean the python script? |
I am just assuming you meant that and did it. |
f2dfcc7 to
b62cf6d
Compare
|
@miri64, sorry for being delayed again. Thank your for addressing the comments. |
b62cf6d to
2cc52fb
Compare
|
Squashed |
|
Murdock is happy :-) |
Just realized that this module isn't tested anywhere so I provided some tests. It is very likely, that the test script isn't working on non-32-bit, non-little-endian platforms so this could be the perfect example to get some kind of unified test system started ;-).