]> sigrok.org Git - libsigrokdecode.git/commit
Add protocol decoder testing framework.
authorBert Vermeulen <redacted>
Tue, 10 Dec 2013 16:17:38 +0000 (17:17 +0100)
committerBert Vermeulen <redacted>
Tue, 10 Dec 2013 16:22:24 +0000 (17:22 +0100)
commitfbd226c3f70f20fdf3cbfd43a671bf2bcc5d23e6
tree7372a8e8b359b38a1a542a16fe14dd9058d5bded
parent4d2c7619ec72728dd01999f20ef1004e018d18a4
Add protocol decoder testing framework.

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.
17 files changed:
.gitignore
Makefile.am
configure.ac
decoders/edid/config
decoders/edid/pd.py
decoders/edid/test/samsung_le46b620r3p_fields.output [new file with mode: 0644]
decoders/edid/test/samsung_le46b620r3p_sections.output [new file with mode: 0644]
decoders/edid/test/test.conf [new file with mode: 0644]
decoders/i2c/pd.py
decoders/i2c/test/gigabyte_6vle_vxl_i2c.output [new file with mode: 0644]
decoders/i2c/test/rtc_ds1307_200khz.output [new file with mode: 0644]
decoders/i2c/test/rtc_ds1307_200khz_data_read.output [new file with mode: 0644]
decoders/i2c/test/rtc_ds1307_200khz_data_write.output [new file with mode: 0644]
decoders/i2c/test/test.conf [new file with mode: 0644]
tests/Makefile.am
tests/pdtest [new file with mode: 0755]
tests/runtc.c [new file with mode: 0644]