]> sigrok.org Git - sigrok-test.git/commitdiff
signature: add test cases
authorsharow <redacted>
Mon, 7 Oct 2019 00:26:09 +0000 (09:26 +0900)
committerUwe Hermann <redacted>
Thu, 28 Nov 2019 19:54:36 +0000 (20:54 +0100)
decoder/test/signature/signature-0003.output [new file with mode: 0644]
decoder/test/signature/signature-6F9A.output [new file with mode: 0644]
decoder/test/signature/signature-7791.output [new file with mode: 0644]
decoder/test/signature/signature-UUUU.output [new file with mode: 0644]
decoder/test/signature/signature-misc1.output [new file with mode: 0644]
decoder/test/signature/signature-misc2.output [new file with mode: 0644]
decoder/test/signature/signature-unstable1.output [new file with mode: 0644]
decoder/test/signature/test.conf [new file with mode: 0644]

diff --git a/decoder/test/signature/signature-0003.output b/decoder/test/signature/signature-0003.output
new file mode 100644 (file)
index 0000000..e642362
--- /dev/null
@@ -0,0 +1 @@
+188368-974874 signature: sig: "0003"
diff --git a/decoder/test/signature/signature-6F9A.output b/decoder/test/signature/signature-6F9A.output
new file mode 100644 (file)
index 0000000..7d5c44f
--- /dev/null
@@ -0,0 +1,3 @@
+1505977-4652004 signature: sig: "6F9A"
+7798030-10944057 signature: sig: "6F9A"
+14090083-17236110 signature: sig: "6F9A"
diff --git a/decoder/test/signature/signature-7791.output b/decoder/test/signature/signature-7791.output
new file mode 100644 (file)
index 0000000..00cfa70
--- /dev/null
@@ -0,0 +1,2 @@
+521892-1570568 signature: sig: "7791"
+2619244-3667920 signature: sig: "7791"
diff --git a/decoder/test/signature/signature-UUUU.output b/decoder/test/signature/signature-UUUU.output
new file mode 100644 (file)
index 0000000..0698c95
--- /dev/null
@@ -0,0 +1,5 @@
+467587-1516263 signature: sig: "UUUU"
+2564939-3613614 signature: sig: "UUUU"
+4662290-5710966 signature: sig: "UUUU"
+6759642-7808318 signature: sig: "UUUU"
+8856994-9905670 signature: sig: "UUUU"
diff --git a/decoder/test/signature/signature-misc1.output b/decoder/test/signature/signature-misc1.output
new file mode 100644 (file)
index 0000000..efb1be6
--- /dev/null
@@ -0,0 +1,19 @@
+128-384 signature: sig: "3CPF"
+640-896 signature: sig: "3CPF"
+1152-1408 signature: sig: "3CPF"
+1664-1920 signature: sig: "3CPF"
+2176-2432 signature: sig: "3CPF"
+2688-2944 signature: sig: "3CPF"
+3200-3456 signature: sig: "3CPF"
+3712-3968 signature: sig: "3CPF"
+4224-4480 signature: sig: "3CPF"
+4736-4992 signature: sig: "3CPF"
+5248-5504 signature: sig: "3CPF"
+5760-6016 signature: sig: "3CPF"
+6272-6528 signature: sig: "3CPF"
+6784-7040 signature: sig: "3CPF"
+7296-7552 signature: sig: "3CPF"
+7808-8064 signature: sig: "3CPF"
+8320-8576 signature: sig: "3CPF"
+8832-9088 signature: sig: "3CPF"
+9344-9600 signature: sig: "3CPF"
diff --git a/decoder/test/signature/signature-misc2.output b/decoder/test/signature/signature-misc2.output
new file mode 100644 (file)
index 0000000..766e82f
--- /dev/null
@@ -0,0 +1,19 @@
+128-384 signature: sig: "5A34"
+640-896 signature: sig: "5A34"
+1152-1408 signature: sig: "5A34"
+1664-1920 signature: sig: "5A34"
+2176-2432 signature: sig: "5A34"
+2688-2944 signature: sig: "5A34"
+3200-3456 signature: sig: "5A34"
+3712-3968 signature: sig: "5A34"
+4224-4480 signature: sig: "5A34"
+4736-4992 signature: sig: "5A34"
+5248-5504 signature: sig: "5A34"
+5760-6016 signature: sig: "5A34"
+6272-6528 signature: sig: "5A34"
+6784-7040 signature: sig: "5A34"
+7296-7552 signature: sig: "5A34"
+7808-8064 signature: sig: "5A34"
+8320-8576 signature: sig: "5A34"
+8832-9088 signature: sig: "5A34"
+9344-9600 signature: sig: "5A34"
diff --git a/decoder/test/signature/signature-unstable1.output b/decoder/test/signature/signature-unstable1.output
new file mode 100644 (file)
index 0000000..987e755
--- /dev/null
@@ -0,0 +1,17 @@
+12-1206846 signature: sig: "196U"
+3304197-5401548 signature: sig: "145F"
+7498899-9596250 signature: sig: "P4PH"
+11693601-13790952 signature: sig: "6101"
+15888303-17985654 signature: sig: "1350"
+20083006-22180357 signature: sig: "C0H6"
+24277708-26375059 signature: sig: "C323"
+28472410-30569761 signature: sig: "92F3"
+32667112-34764463 signature: sig: "AAHA"
+36861814-38959165 signature: sig: "7HH0"
+41056516-43153867 signature: sig: "8153"
+45251218-47348569 signature: sig: "P62F"
+49445920-51543271 signature: sig: "P501"
+53640622-55737973 signature: sig: "5A8H"
+57835324-59932675 signature: sig: "9531"
+62030026-64127377 signature: sig: "01U6"
+66224728-68322079 signature: sig: "7F50"
diff --git a/decoder/test/signature/test.conf b/decoder/test/signature/test.conf
new file mode 100644 (file)
index 0000000..d5e4dcf
--- /dev/null
@@ -0,0 +1,34 @@
+test signature-misc1
+       protocol-decoder signature channel start=7 channel stop=7 channel clk=0 channel data=6
+       input misc/demo/incremental_8ch_long.sr
+       output signature annotation match signature-misc1.output
+
+test signature-misc2
+       protocol-decoder signature channel start=7 channel stop=7 channel clk=0 channel data=4
+       input misc/demo/incremental_8ch_long.sr
+       output signature annotation match signature-misc2.output
+
+test signature-0003
+       protocol-decoder signature channel start=0 channel stop=1 channel clk=7 channel data=5
+       input signature/0003.sr
+       output signature annotation match signature-0003.output
+
+test signature-6F9A
+       protocol-decoder signature channel start=0 channel stop=1 channel clk=7 channel data=5
+       input signature/6F9A.sr
+       output signature annotation match signature-6F9A.output
+
+test signature-UUUU
+       protocol-decoder signature channel start=0 channel stop=1 channel clk=7 channel data=5
+       input signature/UUUU.sr
+       output signature annotation match signature-UUUU.output
+
+test signature-7791
+       protocol-decoder signature channel start=0 channel stop=1 channel clk=7 channel data=5
+       input signature/7791.sr
+       output signature annotation match signature-7791.output
+
+test signature-unstable1
+       protocol-decoder signature channel start=0 channel stop=1 channel clk=7 channel data=5
+       input signature/unstable1.sr
+       output signature annotation match signature-unstable1.output