mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
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>
This commit is contained in:
committed by
chrome-internal-fetch
parent
23bad6732c
commit
748848e8a2
1
extra/lightbar/programs/bad-decode-32.bin
Normal file
1
extra/lightbar/programs/bad-decode-32.bin
Normal file
@@ -0,0 +1 @@
|
||||
UUU
|
||||
1
extra/lightbar/programs/bad-decode-8.bin
Normal file
1
extra/lightbar/programs/bad-decode-8.bin
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
BIN
extra/lightbar/programs/bad-jump.bin
Normal file
BIN
extra/lightbar/programs/bad-jump.bin
Normal file
Binary file not shown.
1
extra/lightbar/programs/bad-opcode.bin
Normal file
1
extra/lightbar/programs/bad-opcode.bin
Normal file
@@ -0,0 +1 @@
|
||||
<EFBFBD>
|
||||
BIN
extra/lightbar/programs/green-pulse.bin
Normal file
BIN
extra/lightbar/programs/green-pulse.bin
Normal file
Binary file not shown.
BIN
extra/lightbar/programs/infinite-jump.bin
Normal file
BIN
extra/lightbar/programs/infinite-jump.bin
Normal file
Binary file not shown.
BIN
extra/lightbar/programs/rainbow-shift.bin
Normal file
BIN
extra/lightbar/programs/rainbow-shift.bin
Normal file
Binary file not shown.
BIN
extra/lightbar/programs/red-green-blink.bin
Normal file
BIN
extra/lightbar/programs/red-green-blink.bin
Normal file
Binary file not shown.
Reference in New Issue
Block a user