summaryrefslogtreecommitdiff
path: root/decoders/edid/test/test.conf
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2013-12-10 17:17:38 +0100
committerBert Vermeulen <bert@biot.com>2013-12-10 17:22:24 +0100
commitfbd226c3f70f20fdf3cbfd43a671bf2bcc5d23e6 (patch)
tree7372a8e8b359b38a1a542a16fe14dd9058d5bded /decoders/edid/test/test.conf
parent4d2c7619ec72728dd01999f20ef1004e018d18a4 (diff)
downloadlibsigrokdecode-fbd226c3f70f20fdf3cbfd43a671bf2bcc5d23e6.tar.gz
libsigrokdecode-fbd226c3f70f20fdf3cbfd43a671bf2bcc5d23e6.zip
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.
Diffstat (limited to 'decoders/edid/test/test.conf')
-rw-r--r--decoders/edid/test/test.conf8
1 files changed, 8 insertions, 0 deletions
diff --git a/decoders/edid/test/test.conf b/decoders/edid/test/test.conf
new file mode 100644
index 0000000..aff116c
--- /dev/null
+++ b/decoders/edid/test/test.conf
@@ -0,0 +1,8 @@
+test tv
+ protocol-decoder i2c probe scl=0 probe sda=1
+ protocol-decoder edid
+ stack i2c edid
+ input i2c/edid/samsung_le46b620r3p.sr
+ output edid annotation class fields match samsung_le46b620r3p_fields.output
+ output edid annotation class sections match samsung_le46b620r3p_sections.output
+