From dd37a782a8637bdee703a13c949b222b9ba8b95d Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Mon, 1 Sep 2014 18:23:54 +0200 Subject: Add initial set of PD tests. This is a slightly modified version of the PD test suite that was part of libsigrokdecode previously. --- decoder/test/i2c/test.conf | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 decoder/test/i2c/test.conf (limited to 'decoder/test/i2c/test.conf') diff --git a/decoder/test/i2c/test.conf b/decoder/test/i2c/test.conf new file mode 100644 index 0000000..e383f5f --- /dev/null +++ b/decoder/test/i2c/test.conf @@ -0,0 +1,27 @@ +test rtc + protocol-decoder i2c channel scl=0 channel sda=1 + input i2c/rtc_dallas_ds1307/rtc_ds1307_200khz.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 + +test motherboard + protocol-decoder i2c channel scl=0 channel sda=3 + input i2c/gigabyte_6vle-vxl_i2c/gigabyte_6vle_vxl_i2c.sr + output i2c annotation match gigabyte_6vle_vxl_i2c.output + output i2c python match gigabyte_6vle_vxl_i2c.python + +test xfp + protocol-decoder i2c channel scl=0 channel sda=1 + input i2c/network-transceivers/xfp.sr + output i2c binary class data-read match xfp_data_read.binary + output i2c binary class data-write match xfp_data_write.binary + output i2c binary class address-read match xfp_address_read.binary + output i2c binary class address-write match xfp_address_write.binary + +test exception_samplerate + protocol-decoder i2c + input misc/no-samplerate.sr + output i2c exception match SamplerateError + -- cgit v1.2.3-54-g00ecf