From e6449805fc8d56d0d8ff4003d123437e799b242f Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Thu, 12 Dec 2013 13:30:36 +0100 Subject: [PATCH] i2c: Add binary tests. --- decoders/i2c/test/test.conf | 8 ++++++++ decoders/i2c/test/xfp_address_read.binary | 1 + decoders/i2c/test/xfp_address_write.binary | 1 + decoders/i2c/test/xfp_data_read.binary | Bin 0 -> 256 bytes decoders/i2c/test/xfp_data_write.binary | 2 ++ 5 files changed, 12 insertions(+) create mode 100644 decoders/i2c/test/xfp_address_read.binary create mode 100644 decoders/i2c/test/xfp_address_write.binary create mode 100644 decoders/i2c/test/xfp_data_read.binary create mode 100644 decoders/i2c/test/xfp_data_write.binary diff --git a/decoders/i2c/test/test.conf b/decoders/i2c/test/test.conf index 4e96a00..84a3d47 100644 --- a/decoders/i2c/test/test.conf +++ b/decoders/i2c/test/test.conf @@ -10,3 +10,11 @@ test motherboard input i2c/gigabyte_6vle-vxl_i2c/gigabyte_6vle_vxl_i2c.sr output i2c annotation match gigabyte_6vle_vxl_i2c.output +test xfp + protocol-decoder i2c probe scl=0 probe 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 + diff --git a/decoders/i2c/test/xfp_address_read.binary b/decoders/i2c/test/xfp_address_read.binary new file mode 100644 index 0000000..f514e15 --- /dev/null +++ b/decoders/i2c/test/xfp_address_read.binary @@ -0,0 +1 @@ +PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP \ No newline at end of file diff --git a/decoders/i2c/test/xfp_address_write.binary b/decoders/i2c/test/xfp_address_write.binary new file mode 100644 index 0000000..ea78966 --- /dev/null +++ b/decoders/i2c/test/xfp_address_write.binary @@ -0,0 +1 @@ +PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP \ No newline at end of file diff --git a/decoders/i2c/test/xfp_data_read.binary b/decoders/i2c/test/xfp_data_read.binary new file mode 100644 index 0000000000000000000000000000000000000000..35a3b86f3b30aa0fdcdbe5579e5bc87d5cc2f2cd GIT binary patch literal 256 zcmZQ$2w?cg;LY%j0R|2SFfhz;<83Tj4E~6w&o&epz(69(eiSlU( zC-hEZAOpjO1xQjLCL>z}y9-ooLP`!7i0KeqnwwdYpPTQRlbT#ol$rd2flD?xBEZ})2pkpCBKQ}$_0&$|V6ZSYHZU}DG%zr>umH&!SQr=^89JJBBoy=*d$<}H dn3|b50)c@cP@j*Zf`Vs2sHbC4kc*>Z2mn*fEr|dC literal 0 HcmV?d00001 diff --git a/decoders/i2c/test/xfp_data_write.binary b/decoders/i2c/test/xfp_data_write.binary new file mode 100644 index 0000000..017b909 --- /dev/null +++ b/decoders/i2c/test/xfp_data_write.binary @@ -0,0 +1,2 @@ + +  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ \ No newline at end of file -- 2.30.2