summaryrefslogtreecommitdiff
path: root/decoder/test/i2c
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2018-02-10 17:22:01 +0100
committerGerhard Sittig <gerhard.sittig@gmx.net>2018-02-10 19:19:00 +0100
commitbc2fae874ef11fe932820097dff71be3ca675d67 (patch)
tree7693a226f3f2a8de9a2d93e3498af47d587a2bde /decoder/test/i2c
parent8f57a69014d07bb32cd23282aa1954e8f3398568 (diff)
downloadsigrok-test-bc2fae874ef11fe932820097dff71be3ca675d67.tar.gz
sigrok-test-bc2fae874ef11fe932820097dff71be3ca675d67.zip
i2c: add test for input stream without sample rate (identical decoder output)
The existing test did not check the throughput annotation. Which is why the decoder output is identical for input streams with and without a sample rate specification.
Diffstat (limited to 'decoder/test/i2c')
-rw-r--r--decoder/test/i2c/test.conf12
1 files changed, 12 insertions, 0 deletions
diff --git a/decoder/test/i2c/test.conf b/decoder/test/i2c/test.conf
index 5e8e3b5..e4acf83 100644
--- a/decoder/test/i2c/test.conf
+++ b/decoder/test/i2c/test.conf
@@ -10,6 +10,18 @@ test rtc
output i2c binary class address-read match rtc_ds1307_200khz.bin_address_read
output i2c binary class address-write match rtc_ds1307_200khz.bin_address_write
+test rtc_no_samplerate
+ protocol-decoder i2c channel scl=0 channel sda=1 initial_pin scl=1 initial_pin sda=1
+ input i2c/rtc_dallas_ds1307/rtc_ds1307_200khz_no_samplerate.sr
+ output i2c annotation class data-read match rtc_ds1307_200khz_data_read.output
+ output i2c annotation class data-write match rtc_ds1307_200khz_data_write.output
+ output i2c annotation match rtc_ds1307_200khz.output
+ output i2c python match rtc_ds1307_200khz.python
+ output i2c binary class data-read match rtc_ds1307_200khz.bin_data_read
+ output i2c binary class data-write match rtc_ds1307_200khz.bin_data_write
+ output i2c binary class address-read match rtc_ds1307_200khz.bin_address_read
+ output i2c binary class address-write match rtc_ds1307_200khz.bin_address_write
+
test motherboard
protocol-decoder i2c channel scl=0 channel sda=3
input i2c/gigabyte_6vle-vxl_i2c/gigabyte_6vle_vxl_i2c.sr