Add some SSI32 tests.
authorUwe Hermann <uwe@hermann-uwe.de>
Sun, 21 Aug 2016 22:07:42 +0000 (00:07 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Sun, 21 Aug 2016 22:07:42 +0000 (00:07 +0200)
decoder/test/ssi32/ssi32_bananapi_loop_test.output [new file with mode: 0644]
decoder/test/ssi32/ssi32_watchdog.output [new file with mode: 0644]
decoder/test/ssi32/test.conf [new file with mode: 0644]

diff --git a/decoder/test/ssi32/ssi32_bananapi_loop_test.output b/decoder/test/ssi32/ssi32_bananapi_loop_test.output
new file mode 100644 (file)
index 0000000..8de6be1
--- /dev/null
@@ -0,0 +1,28 @@
+277-2837 ssi32: ctrl-tx: "> CTRL:0x43, LUN:0x09, SIZE:0x3c, CRC:0x8e, DATA:0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b"
+277-2837 ssi32: ctrl-rx: "< CTRL:0x43, LUN:0x09, SIZE:0x3c, CRC:0x8e, DATA:0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b"
+3294-3334 ssi32: ack-tx: "> ACK:0xd0"
+3294-3334 ssi32: ack-rx: "< ACK:0xd0"
+3667-6227 ssi32: ctrl-tx: "> CTRL:0x43, LUN:0x09, SIZE:0x3c, CRC:0x8e, DATA:0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b"
+3667-6227 ssi32: ctrl-rx: "< CTRL:0x43, LUN:0x09, SIZE:0x3c, CRC:0x8e, DATA:0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b"
+6559-6599 ssi32: ack-tx: "> ACK:0xd0"
+6559-6599 ssi32: ack-rx: "< ACK:0xd0"
+6914-9474 ssi32: ctrl-tx: "> CTRL:0x43, LUN:0x09, SIZE:0x3c, CRC:0x8e, DATA:0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b"
+6914-9474 ssi32: ctrl-rx: "< CTRL:0x43, LUN:0x09, SIZE:0x3c, CRC:0x8e, DATA:0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b"
+9792-9832 ssi32: ack-tx: "> ACK:0xd0"
+9792-9832 ssi32: ack-rx: "< ACK:0xd0"
+10135-12695 ssi32: ctrl-tx: "> CTRL:0x43, LUN:0x09, SIZE:0x3c, CRC:0x8e, DATA:0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b"
+10135-12695 ssi32: ctrl-rx: "< CTRL:0x43, LUN:0x09, SIZE:0x3c, CRC:0x8e, DATA:0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b"
+13011-13051 ssi32: ack-tx: "> ACK:0xd0"
+13011-13051 ssi32: ack-rx: "< ACK:0xd0"
+13350-15910 ssi32: ctrl-tx: "> CTRL:0x43, LUN:0x09, SIZE:0x3c, CRC:0x8e, DATA:0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b"
+13350-15910 ssi32: ctrl-rx: "< CTRL:0x43, LUN:0x09, SIZE:0x3c, CRC:0x8e, DATA:0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b"
+16225-16265 ssi32: ack-tx: "> ACK:0xd0"
+16225-16265 ssi32: ack-rx: "< ACK:0xd0"
+16562-19122 ssi32: ctrl-tx: "> CTRL:0x43, LUN:0x09, SIZE:0x3c, CRC:0x8e, DATA:0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b"
+16562-19122 ssi32: ctrl-rx: "< CTRL:0x43, LUN:0x09, SIZE:0x3c, CRC:0x8e, DATA:0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b"
+19436-19476 ssi32: ack-tx: "> ACK:0xd0"
+19436-19476 ssi32: ack-rx: "< ACK:0xd0"
+19773-22333 ssi32: ctrl-tx: "> CTRL:0x43, LUN:0x09, SIZE:0x3c, CRC:0x8e, DATA:0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b"
+19773-22333 ssi32: ctrl-rx: "< CTRL:0x43, LUN:0x09, SIZE:0x3c, CRC:0x8e, DATA:0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b"
+22643-22683 ssi32: ack-tx: "> ACK:0xd0"
+22643-22683 ssi32: ack-rx: "< ACK:0xd0"
diff --git a/decoder/test/ssi32/ssi32_watchdog.output b/decoder/test/ssi32/ssi32_watchdog.output
new file mode 100644 (file)
index 0000000..761d697
--- /dev/null
@@ -0,0 +1,8 @@
+45218-46338 ssi32: ctrl-tx: "> CTRL:0x43, LUN:0x09, SIZE:0x01, CRC:0x51, DATA:0x62"
+45218-46098 ssi32: ctrl-rx: "< CTRL:0x53, LUN:0xff, SIZE:0x00, CRC:0xae"
+79623-79783 ssi32: ack-tx: "> ACK:0xd0"
+79623-79783 ssi32: ack-rx: "< ACK:0xd0"
+937563-938443 ssi32: ctrl-tx: "> CTRL:0x53, LUN:0xff, SIZE:0x00, CRC:0xae"
+937563-938683 ssi32: ctrl-rx: "< CTRL:0x43, LUN:0x09, SIZE:0x01, CRC:0x50, DATA:0x63"
+971603-971763 ssi32: ack-tx: "> ACK:0xd0"
+971603-971763 ssi32: ack-rx: "< ACK:0xd0"
diff --git a/decoder/test/ssi32/test.conf b/decoder/test/ssi32/test.conf
new file mode 100644 (file)
index 0000000..b3ac5f9
--- /dev/null
@@ -0,0 +1,13 @@
+test ssi32_bananapi_loop_test
+       protocol-decoder spi channel clk=2 channel miso=1 channel mosi=0 channel cs=3
+       protocol-decoder ssi32
+       stack spi ssi32
+       input spi/ssi32/ssi32_bananapi_loop_test.sr
+       output ssi32 annotation match ssi32_bananapi_loop_test.output
+
+test ssi32_watchdog
+       protocol-decoder spi channel clk=2 channel miso=4 channel mosi=3 channel cs=0
+       protocol-decoder ssi32
+       stack spi ssi32
+       input spi/ssi32/ssi32_watchdog.sr
+       output ssi32 annotation match ssi32_watchdog.output