summaryrefslogtreecommitdiff
path: root/decoder/pdtest
AgeCommit message (Collapse)Author
2017-06-06Add support for initial pin settings.Uwe Hermann
Adapt all tests that require it to use the old behaviour of assuming an initial pin value of 0 (or whatever was previously hardcoded in the PD). for now (this will likely see some changes later).
2017-06-06Fix issue in -s output.Uwe Hermann
Option values are strings, not numbers. This fixes: $ ./decoder/pdtest -s jitter Testcase: jitter/toim4243 Protocol decoder: jitter Channel clk=3 Channel sig=2 Error: %d format: a number is required, not str
2017-05-13args: make pdtest -l behave as advertised.Karl Palsson
Help says -l should list tests. Make it do so. You can still do "-l uart" to see only uart tests, but -l by itself now does what you expect. Signed-off-by: Karl Palsson <karlp@tweak.net.au>
2017-05-06pdtest: say that '-f' creates initial output for new testsWolfram Sang
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2017-02-02runtc, pdtest: Fixup minor style nitsGerhard Sittig
Address several minor style nits: Remove trailing empty lines in source files. Declare 'static' auto variables before non-static variables. Re-use the result of a division instead of running the calculation again.
2017-01-25pdtest: Make exit code communicate the termination cause not countsGerhard Sittig
On one hand the exit(3) API might limit the range of values that can get communicated to callers (a single byte is used in some implementations). On the other hand wait(2) might interpret specific meaning into some of the returned values (abnormal cause of termination, like unhandled signals). So the use of error counts as exit codes for processes can be severely constrained. For specific non-zero values of error counts, an exit code of zero might be seen at the caller's side (modulo calculation or truncation). Don't pass error or difference counts to exit(3). Instead communicate the kind of termination (error or difference or success) in exit codes which reliably can get evaluated by callers.
2017-01-25pdtest: Exit non-zero for errors as well as PD output differencesGerhard Sittig
Make the pdtest(1) executable return a non-zero exit code for errors during test execution (as before) as well as for differences in the decoder output (that's the change). Return either the number of errors seen, or the number of tests which saw different output. Only return zero in the absence of errors and differences.
2016-11-02pdtest: Minor help text improvements.Uwe Hermann
2015-07-22Move the "OK" in the -v output further to the right.Uwe Hermann
This allows for longer test-case names.
2014-10-19pdtest: Handle unknown command line arguments.Jens Steinhauser
2014-09-11pdtest: Only return non-zero code upon errors.Uwe Hermann
2014-09-01Add initial set of PD tests.Uwe Hermann
This is a slightly modified version of the PD test suite that was part of libsigrokdecode previously.