diff options
author | Bert Vermeulen <bert@biot.com> | 2013-12-10 17:17:38 +0100 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2013-12-10 17:22:24 +0100 |
commit | fbd226c3f70f20fdf3cbfd43a671bf2bcc5d23e6 (patch) | |
tree | 7372a8e8b359b38a1a542a16fe14dd9058d5bded /decoders/i2c/pd.py | |
parent | 4d2c7619ec72728dd01999f20ef1004e018d18a4 (diff) | |
download | libsigrokdecode-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/i2c/pd.py')
-rw-r--r-- | decoders/i2c/pd.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/decoders/i2c/pd.py b/decoders/i2c/pd.py index 60e9c45..45b84e8 100644 --- a/decoders/i2c/pd.py +++ b/decoders/i2c/pd.py @@ -81,16 +81,16 @@ class Decoder(srd.Decoder): 'address_format': ['Displayed slave address format', 'shifted'], } annotations = [ - ['Start', 'Start condition'], - ['Repeat start', 'Repeat start condition'], - ['Stop', 'Stop condition'], - ['ACK', 'ACK'], - ['NACK', 'NACK'], - ['Address read', 'Address read'], - ['Address write', 'Address write'], - ['Data read', 'Data read'], - ['Data write', 'Data write'], - ['Warnings', 'Human-readable warnings'], + ['start', 'Start condition'], + ['repeat-start', 'Repeat start condition'], + ['stop', 'Stop condition'], + ['ack', 'ACK'], + ['nack', 'NACK'], + ['address-read', 'Address read'], + ['address-write', 'Address write'], + ['data-read', 'Data read'], + ['data-write', 'Data write'], + ['warnings', 'Human-readable warnings'], ] binary = ( 'Address read', |