summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Caruso <ejcaruso@chromium.org>2014-09-23 15:14:55 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-09-26 01:12:45 +0000
commit748848e8a264530a0ed31fc62d11b19a42d11eec (patch)
tree5dc40a8013b966d2bd6245e6f11447209b817953
parent23bad6732c7249dad117a26c9722d8adf6cf33da (diff)
downloadchrome-ec-748848e8a264530a0ed31fc62d11b19a42d11eec.tar.gz
lightbar: test programs for seq type PROGRAM
These programs test various bytecode interpreter functions. rainbow-shift, red-green-blink and green-pulse produce visual effects, whereas the other three programs test error cases. bad-jump makes sure the interpreter stops if the PC goes out of bounds. bad-opcode makes sure the interpreter stops if it does not understand the instructions it is decoding. infinite-jump makes sure that sticking a tight loop in the EC (i.e., one not perforated with any DELAYs, RAMP_ONCEs, or CYCLE*s) does not cause it to hang or crash. bad-decode-8 and -32 test that malformed instructions are detected while decoding the instruction's immediate data. BUG=None BRANCH=ToT TEST=In simulator/scp files to device and test Change-Id: I6c189997a13e7c6196daa28eb74d5506b5288f2b Signed-off-by: Eric Caruso <ejcaruso@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/219565 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
-rw-r--r--extra/lightbar/programs/bad-decode-32.bin1
-rw-r--r--extra/lightbar/programs/bad-decode-8.bin1
-rw-r--r--extra/lightbar/programs/bad-jump.binbin0 -> 2 bytes
-rw-r--r--extra/lightbar/programs/bad-opcode.bin1
-rw-r--r--extra/lightbar/programs/green-pulse.binbin0 -> 23 bytes
-rw-r--r--extra/lightbar/programs/infinite-jump.binbin0 -> 2 bytes
-rw-r--r--extra/lightbar/programs/rainbow-shift.binbin0 -> 52 bytes
-rw-r--r--extra/lightbar/programs/red-green-blink.binbin0 -> 36 bytes
8 files changed, 3 insertions, 0 deletions
diff --git a/extra/lightbar/programs/bad-decode-32.bin b/extra/lightbar/programs/bad-decode-32.bin
new file mode 100644
index 0000000000..de2e71b327
--- /dev/null
+++ b/extra/lightbar/programs/bad-decode-32.bin
@@ -0,0 +1 @@
+UUU \ No newline at end of file
diff --git a/extra/lightbar/programs/bad-decode-8.bin b/extra/lightbar/programs/bad-decode-8.bin
new file mode 100644
index 0000000000..d8188da697
--- /dev/null
+++ b/extra/lightbar/programs/bad-decode-8.bin
@@ -0,0 +1 @@
+ \ No newline at end of file
diff --git a/extra/lightbar/programs/bad-jump.bin b/extra/lightbar/programs/bad-jump.bin
new file mode 100644
index 0000000000..d284cb97ce
--- /dev/null
+++ b/extra/lightbar/programs/bad-jump.bin
Binary files differ
diff --git a/extra/lightbar/programs/bad-opcode.bin b/extra/lightbar/programs/bad-opcode.bin
new file mode 100644
index 0000000000..6b10f95843
--- /dev/null
+++ b/extra/lightbar/programs/bad-opcode.bin
@@ -0,0 +1 @@
+Ã \ No newline at end of file
diff --git a/extra/lightbar/programs/green-pulse.bin b/extra/lightbar/programs/green-pulse.bin
new file mode 100644
index 0000000000..9ea21f789a
--- /dev/null
+++ b/extra/lightbar/programs/green-pulse.bin
Binary files differ
diff --git a/extra/lightbar/programs/infinite-jump.bin b/extra/lightbar/programs/infinite-jump.bin
new file mode 100644
index 0000000000..09f370e38f
--- /dev/null
+++ b/extra/lightbar/programs/infinite-jump.bin
Binary files differ
diff --git a/extra/lightbar/programs/rainbow-shift.bin b/extra/lightbar/programs/rainbow-shift.bin
new file mode 100644
index 0000000000..44e1af4b7d
--- /dev/null
+++ b/extra/lightbar/programs/rainbow-shift.bin
Binary files differ
diff --git a/extra/lightbar/programs/red-green-blink.bin b/extra/lightbar/programs/red-green-blink.bin
new file mode 100644
index 0000000000..305f3c53f9
--- /dev/null
+++ b/extra/lightbar/programs/red-green-blink.bin
Binary files differ