usb_power_delivery: Add new tests
[sigrok-test.git] / decoder / test / usb_power_delivery / test.conf
index 4772842e45f2f87ef487b5082638b58f72f5cc4c..4ee45b511b2987051b880c991d9b009382900480 100644 (file)
@@ -1,23 +1,62 @@
+test exception_samplerate
+       protocol-decoder usb_power_delivery
+       input misc/no-samplerate.sr
+       output usb_power_delivery exception match SamplerateError
+
 test pixel2015_supply
-       protocol-decoder usb_power_delivery channel cc=0 option fulltext=yes
+       protocol-decoder usb_power_delivery channel cc1=0 channel cc2=1 option fulltext=yes
        input usb_power_delivery/pixel_2015/power_supply_20V.sr
        output usb_power_delivery annotation match pixel2015_supply.output
+       output usb_power_delivery python match pixel2015_supply.python
        output usb_power_delivery binary class raw-data match pixel2015_supply.bin_raw_data
 
 test pixel2015_hdmi
-       protocol-decoder usb_power_delivery channel cc=1 option fulltext=yes
+       protocol-decoder usb_power_delivery channel cc1=0 channel cc2=1 option fulltext=yes
        input usb_power_delivery/pixel_2015/hdmi_dongle.sr
        output usb_power_delivery annotation match pixel2015_hdmi.output
+       output usb_power_delivery python match pixel2015_hdmi.python
        output usb_power_delivery binary class raw-data match pixel2015_hdmi.bin_raw_data
 
 test macbook2015_supply
-       protocol-decoder usb_power_delivery channel cc=0 option fulltext=yes
+       protocol-decoder usb_power_delivery channel cc1=0 channel cc2=1 option fulltext=yes
        input usb_power_delivery/macbook_2015/apple_power_brick.sr
        output usb_power_delivery annotation match macbook2015_supply.output
+       output usb_power_delivery python match macbook2015_supply.python
        output usb_power_delivery binary class raw-data match macbook2015_supply.bin_raw_data
 
 test macbook2015_hdmi
-       protocol-decoder usb_power_delivery channel cc=0 option fulltext=yes
+       protocol-decoder usb_power_delivery channel cc1=0 channel cc2=1 option fulltext=yes
        input usb_power_delivery/macbook_2015/apple_av_hdmi.sr
        output usb_power_delivery annotation match macbook2015_hdmi.output
+       output usb_power_delivery python match macbook2015_hdmi.python
        output usb_power_delivery binary class raw-data match macbook2015_hdmi.bin_raw_data
+
+test thinkpad_yoga_370-anker_powerbank
+       protocol-decoder usb_power_delivery channel cc1=2 channel cc2=3 option fulltext=yes
+       input usb_power_delivery/thinkpad_yoga_370/thinkpad_yoga_370-anker_powerbank-both_orientations.sr
+       output usb_power_delivery annotation match thinkpad_yoga_370-anker_powerbank-both_orientations.output
+       output usb_power_delivery binary class raw-data match thinkpad_yoga_370-anker_powerbank-both_orientations.bin_raw_data
+
+test thinkpad_yoga_370-aukey_45w
+       protocol-decoder usb_power_delivery channel cc1=0 channel cc2=1 option fulltext=yes
+       input usb_power_delivery/thinkpad_yoga_370/thinkpad_yoga_370-aukey_45w.sr
+       output usb_power_delivery annotation match thinkpad_yoga_370-aukey_45w.output
+       output usb_power_delivery binary class raw-data match thinkpad_yoga_370-aukey_45w.bin_raw_data
+
+test thinkpad_yoga_370-passtrough_dongle
+       protocol-decoder usb_power_delivery channel cc1=0 channel cc2=1 option fulltext=yes
+       input usb_power_delivery/thinkpad_yoga_370/thinkpad_yoga_370-passtrough_dongle-anker_powerbank.sr
+       output usb_power_delivery annotation match thinkpad_yoga_370-passtrough_dongle-anker_powerbank.output
+       output usb_power_delivery binary class raw-data match thinkpad_yoga_370-passtrough_dongle-anker_powerbank.bin_raw_data
+
+test zy12pds_sink_module-65w_noname_supply
+       protocol-decoder usb_power_delivery channel cc1=2 channel cc2=3 option fulltext=yes
+       input usb_power_delivery/zy12pds_sink_module/zy12pds_sink_module-65w_noname_supply.sr
+       output usb_power_delivery annotation match zy12pds_sink_module-65w_noname_supply.output
+       output usb_power_delivery binary class raw-data match zy12pds_sink_module-65w_noname_supply.bin_raw_data
+
+test zy12pds_sink_module-anker_powerbank
+       protocol-decoder usb_power_delivery channel cc1=2 channel cc2=3 option fulltext=yes
+       input usb_power_delivery/zy12pds_sink_module/zy12pds_sink_module-anker_powerbank.sr
+       output usb_power_delivery annotation match zy12pds_sink_module-anker_powerbank.output
+       output usb_power_delivery binary class raw-data match zy12pds_sink_module-anker_powerbank.bin_raw_data