From dafde0f97e8efd42f797ee9dde8c82b2f6e3b9c8 Mon Sep 17 00:00:00 2001
From: Uwe Hermann <uwe@hermann-uwe.de>
Date: Tue, 1 Sep 2015 21:59:53 +0200
Subject: lpc: Add a test-case.

---
 decoder/test/lpc/lpc_vultureprog_snippet.output | 21 +++++++++++++++++++++
 decoder/test/lpc/test.conf                      |  4 ++++
 2 files changed, 25 insertions(+)
 create mode 100644 decoder/test/lpc/lpc_vultureprog_snippet.output
 create mode 100644 decoder/test/lpc/test.conf

(limited to 'decoder/test')

diff --git a/decoder/test/lpc/lpc_vultureprog_snippet.output b/decoder/test/lpc/lpc_vultureprog_snippet.output
new file mode 100644
index 0000000..69726a7
--- /dev/null
+++ b/decoder/test/lpc/lpc_vultureprog_snippet.output
@@ -0,0 +1,21 @@
+100979-100980 lpc: start: "Start of cycle for a target" "START" "St" "S"
+100980-100986 lpc: cycle-type: "Cycle type: Memory read"
+100986-101034 lpc: addr: "Address: 0xffbc0000"
+101034-101046 lpc: tar1: "TAR, cycle 0: 1111"
+101046-101049 lpc: tar1: "TAR, cycle 1: 0000"
+101049-101049 lpc: warnings: "TAR, cycle 1: 0000 (expected 1111)"
+101049-101070 lpc: sync: "SYNC, cycle 0: 0000"
+101070-101088 lpc: data: "DATA: 0xbf"
+101088-101099 lpc: tar2: "TAR, cycle 0: 1111"
+101099-101123 lpc: tar2: "TAR, cycle 1: 1111"
+101189-101190 lpc: start: "Start of cycle for a target" "START" "St" "S"
+101190-101196 lpc: cycle-type: "Cycle type: Memory read"
+101196-101244 lpc: addr: "Address: 0xffbc0001"
+101244-101256 lpc: tar1: "TAR, cycle 0: 1111"
+101256-101259 lpc: tar1: "TAR, cycle 1: 0000"
+101259-101259 lpc: warnings: "TAR, cycle 1: 0000 (expected 1111)"
+101259-101280 lpc: sync: "SYNC, cycle 0: 0000"
+101280-101298 lpc: data: "DATA: 0x1b"
+101298-101299 lpc: tar2: "TAR, cycle 0: 0101"
+101299-101299 lpc: warnings: "Warning: TAR, cycle 0: 0101 (expected 1111)"
+101299-101309 lpc: tar2: "TAR, cycle 1: 1111"
diff --git a/decoder/test/lpc/test.conf b/decoder/test/lpc/test.conf
new file mode 100644
index 0000000..087da2f
--- /dev/null
+++ b/decoder/test/lpc/test.conf
@@ -0,0 +1,4 @@
+test lpc_vultureprog_snippet
+	protocol-decoder lpc channel lad0=0 channel lad1=1 channel lad2=2 channel lad3=3 channel lclk=4 channel lframe=5
+	input lpc/vultureprog/lpc_vultureprog_snippet.sr
+	output lpc annotation match lpc_vultureprog_snippet.output
-- 
cgit v1.2.3-70-g09d2