Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-07-31 | tests/pdtest: Small fix to make it work with Python 3.2. | Uwe Hermann | |
Python 3.2 doesn't yet have the copy() method for lists: AttributeError: 'list' object has no attribute 'copy' | |||
2014-07-08 | pdtest: Use new exception output. | Bert Vermeulen | |
2014-06-24 | pdtest: Generate report regardless of verbose mode. | Bert Vermeulen | |
2014-06-24 | pdtest: Generate a report listing missed lines across the whole PD. | Bert Vermeulen | |
2014-06-23 | pdtest/runtc: Support for output type 'exception'. | Bert Vermeulen | |
The match value should be the name of the exception thrown, e.g. AttributeError, IndexError or even a custom exception defined in the protocol decoder, such as SamplerateError. | |||
2014-04-13 | Rename 'probe' to 'channel' everywhere. | Uwe Hermann | |
Variables of type 'struct srd_channel *' are consistently named 'pdch' to make them easily distinguishable from libsigrok's 'struct sr_channel *' variables that are consistently named 'ch'. | |||
2014-03-20 | pdtest: Add support for code coverage. | Bert Vermeulen | |
2014-03-14 | pdtest: Small fix. | Bert Vermeulen | |
2014-01-28 | tests/pdtest: Fix -R (takes an argument). | Uwe Hermann | |
2014-01-28 | tests/pdtest: Add missing license header. | Uwe Hermann | |
2014-01-28 | tests/pdtest: Fix shebang line. | Uwe Hermann | |
2013-12-13 | pdtest/runtc: Add support for Python output types. | Bert Vermeulen | |
2013-12-12 | pdtest/runtc: Add support for binary output types. | Bert Vermeulen | |
2013-12-12 | pdtest: Add -f option to automatically fix failing tests. | Bert Vermeulen | |
2013-12-11 | pdtest: Use -dd to turn on SR/SRD debugging. | Bert Vermeulen | |
2013-12-11 | pdtest: Don't bother with diff if any error at all occurred. | Bert Vermeulen | |
2013-12-11 | pdtest: Add option for custom sigrok-dumps repository path. | Bert Vermeulen | |
2013-12-11 | pdtest: Always sanity-check all testcases. | Bert Vermeulen | |
2013-12-10 | Add protocol decoder testing framework. | Bert Vermeulen | |
This adds a tool in the tests directory, called pdtest. It uses the "test/" directory in every PD directory, if present, to run the PD against dumps found in the sigrok-dumps repository, and compares the output against ".output" files in the "test/" directory. The file "test/test.conf" is used to configure which tests to run. A separate tool (tests/runtc.c) is used to run the actual decoding and report output. To get an overview of the options, run tests/pdtest without any options. |