From e6449805fc8d56d0d8ff4003d123437e799b242f Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Thu, 12 Dec 2013 13:30:36 +0100 Subject: 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 (limited to 'decoders/i2c') 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 0000000..35a3b86 Binary files /dev/null and b/decoders/i2c/test/xfp_data_read.binary differ 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 -- cgit v1.2.3-70-g09d2