]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/i2c/test/test.conf
pdtests: Check for SamplerateError in all PDs that emit it.
[libsigrokdecode.git] / decoders / i2c / test / test.conf
index 880f36093677b085606df680be676e8803d0e028..e383f5fc91fe0cca122c451c0aed41096dbf4752 100644 (file)
@@ -1,5 +1,5 @@
 test rtc
-       protocol-decoder i2c probe scl=0 probe sda=1
+       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
@@ -7,16 +7,21 @@ test rtc
        output i2c python match rtc_ds1307_200khz.python
 
 test motherboard
-       protocol-decoder i2c probe scl=0 probe sda=3
+       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 probe scl=0 probe sda=1
+       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
+