-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Daniel/orbit/tests integration (#103)
- Loading branch information
1 parent
d39a525
commit 15472e2
Showing
230 changed files
with
604,712 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Vortex CLI | ||
|
||
This folder contains the command line interface vortex tool | ||
|
||
This tool allows the vortex engine to be run on the command line and print it's output in various ways. | ||
|
||
The usage includes options to control the engine in various ways, this allows for robust tests to be | ||
designed around this tool to test the vortex engine to ensure it is behaving correctly. | ||
|
||
The usage of the tool is as follows: | ||
|
||
Usage: ../vortex [options] < input commands | ||
Output Selection (at least one required): | ||
-x, --hex Use hex values to represent led colors | ||
-c, --color Use console color codes to represent led colors | ||
|
||
Engine Control Flags (optional): | ||
-t, --no-timestep Bypass the timestep and run as fast as possible | ||
-l, --lockstep Only step once each time an input is received | ||
-i, --in-place Print the output in-place (interactive mode) | ||
-r, --record Record the inputs and dump to a file after (recorded_input.txt) | ||
-a, --autowake Automatically and instantly wake on sleep (disable sleep) | ||
-n, --nolock Automatically unlock upon locking the chip (disable lock) | ||
-s, --storage [file] Persistent storage to file (default file: FlashStorage.flash) | ||
|
||
Initial Pattern Options (optional): | ||
-P, --pattern <id> Preset the pattern ID on the first mode | ||
-C, --colorset c1,c2... Preset the colorset on the first mode (csv list of hex codes or color names) | ||
-A, --arguments a1,a2... Preset the arguments on the first mode (csv list of arguments) | ||
|
||
Other Options: | ||
-h, --help Display this help message | ||
|
||
Input Commands (pass to stdin): | ||
c standard short click | ||
l standard long click | ||
m open menus length click | ||
a enter adv menu length click (enter adv menu from menus) | ||
d delete length click (delete color in col select) | ||
s enter sleep length click (enter sleep at main modes) | ||
f force sleep length click (force sleep anywhere) | ||
t toggle button pressed (only way to wake after sleep) | ||
r rapid button click (ex: r15) | ||
w wait 1 tick | ||
<digits> repeat command n times (only single digits in -i mode) | ||
q quit | ||
Example Usage: | ||
./vortex -ci | ||
./vortex -ci -P42 -Ccyan,purple | ||
./vortex -ct -P0 -Cred,green -A1,2 <<< w10q | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Vortex Tests | ||
|
||
At the moment this folders only contains a set of integration tests which test the entire Vortex Engine from end to end. | ||
|
||
The tests use the command line vortex tool with various inputs and parameters and compare the output against prerecorded | ||
test files. If the output differs then the test fails. These tests are rather rudimentary and not the most robust. | ||
|
||
These tests will catch if anything changes in the output of the vortex engine, including if something as simple as a blink | ||
timing has been changed. That can be both a helpful and annoying aspect of these tests. |
Oops, something went wrong.