Jesse Vincent
81b8582eda
Merge pull request #977 from PedroDiogo/PedroDiogo-tapdance-doc-update
...
Update TapDance documentation
4 years ago
Pedro Diogo
8b9db57957
Update TapDance documentation
...
The code example was using an outdated header for `tapDanceAction` that used `row` and `col`.
Updated to use `key_addr` instead.
Solution found in this forum reply: https://community.keyboard.io/t/status-of-using-tapdance-with-chrysalis/4143/5
Signed-off-by: Pedro Diogo <158898+PedroDiogo@users.noreply.github.com>
4 years ago
Jesse Vincent
a61765e630
Exit from the testing loop with an error in case of failed test.
...
Fixes #974
4 years ago
Jesse Vincent
4ca0e94af9
Don't pass TEST_PATH to docker unless it's set
4 years ago
Jesse Vincent
b0902f35da
Add a "generate-testcases" target to make -C tests
...
Make ktest regeneration use a little bit more of Make's smarts.
Fixed #973
4 years ago
Jesse Vincent
51fd6be466
target to generate given testcase
4 years ago
Jesse Vincent
aafd594183
Make it possible to run a single testcase's makefile without being called from above
...
by setting topdir if it's not set
4 years ago
Jesse Vincent
b2e899429f
'make clean' fixes
4 years ago
Jesse Vincent
6829f3497b
ignore artifacts from the new arduino-cli branch
4 years ago
Jesse Vincent
cd211efa24
Remove generated testcases when running make clean
...
Fixes #976
4 years ago
Jesse Vincent
8c13d25cc3
Don't try to add the generated testcase to the list of possible test files if it already exists
...
Fixes #975
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
4 years ago
Jesse Vincent
0dc3861f3a
Merge pull request #972 from gedankenexperimenter/f/testing.CheckReports
...
Improve report verification in testing
4 years ago
Michael Richters
e1166b5ebd
Fix issue #970 testcase
...
The timing of expected reports was off slightly in two places.
Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
4 years ago
Michael Richters
3160edfd8c
Improve report verification in testing
...
This replaces the `CHECK_EXPECTED_REPORTS()` macro with a new `CheckReports()`
method. The new method verifies both the content and timestamps of expected
keyboard reports, and provides more output on failures (including details of any
unexpected reports).
Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
4 years ago
Jesse Vincent
a6b4b12343
We use git, not got
4 years ago
Jesse Vincent
c5612c979b
Make the github actions clone of the required bundle repo quiet.
4 years ago
Jesse Vincent
475cc0fc12
Merge pull request #971 from gedankenexperimenter/b/qukeys.issue-970
...
Fix Qukeys minimum prior interval error
4 years ago
Jesse Vincent
0f9fc0b4be
make our github actions run on pull requests, too
4 years ago
Michael Richters
0d788bb718
Fix Qukeys minimum prior interval problem
...
The code for guarding against integer overflow on the prior interval timestamp
was in the wrong place, and wouldn't get executed on cycles when the keyboard
was idle, leading to a very slim chance of getting the wrong qukey value if all
keys were idle long enough (65 seconds).
Also fixed the same problem in the first quarter-second after the keyboard power
on. Not likely to ever be observed, but costs nothing extra to fix.
Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
4 years ago
Michael Richters
9e1aaac3d8
Convert issue #970 testcase to ktest
...
Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
4 years ago
Michael Richters
ae0a9975b6
Add testcase for issue #970
...
Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
4 years ago
Michael Richters
33618fb088
Update Qukeys basic testcase for issue #970
...
Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
4 years ago
Jesse Vincent
6bd1f81ea0
Try to make the travis ramdisk setup tool a bit shellcheck friendlier
4 years ago
Jesse Vincent
d9a4d1bc2c
First pass at a GitHub Action workflow
4 years ago
Jesse Vincent
4c421277a7
make a comment in run-docker shellcheck friendlier
4 years ago
Jesse Vincent
395f8ac992
temp workaround for test failures
4 years ago
Jesse Vincent
1b061fe27f
We no longer use that HIDAdaptor
4 years ago
Jesse Vincent
a8dead14e5
Merge pull request #969 from keyboardio/revert-921-atreus-key-macros-fix
...
Revert "Fix key macros"
4 years ago
Jesse Vincent
268af21836
Revert "Fix key macros"
4 years ago
Jesse Vincent
bc7de50fd8
Merge pull request #921 from WildlyManifest/atreus-key-macros-fix
...
Fix key macros for the Atreus v1
4 years ago
Jesse Vincent
edb218a826
Merge pull request #929 from gedankenexperimenter/qukeys-rollover-925
...
Improve Qukeys protection against unintended modifiers
4 years ago
Jesse Vincent
cf8021e1f8
Merge pull request #684 from gedankenexperimenter/bug/qukeys-rollover-682
...
Prevent rollover to a qukey from causing unintended repeats
4 years ago
Jesse Vincent
cd2698d701
Port Redial tests to ktest. Add a couple ktest features to support that
4 years ago
Jesse Vincent
b767a25e7f
re-enable the subtests in keycode tests
4 years ago
Jesse Vincent
fde137509b
Add a pseudo-test that shows off the name of the test source file for generated tests
4 years ago
Jesse Vincent
2dd247dae8
Improve parsing of comments without spaces after the #
...
Better handle cases with empty test scripts
4 years ago
Jesse Vincent
7e5b05e447
There's no real need to vary the generated test
...
class for each generated test file. removing
this makes test definitions simpler
Also, grow support for multiple tests within a script
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
4 years ago
Jesse Vincent
5a9aa3b3a9
Merge pull request #966 from gedankenexperimenter/b/macros.key-range
...
Standardize Macros key definitions
4 years ago
Michael Richters
3ccbd1ceeb
Remove stale commented definition of IS_MACRO
...
Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
4 years ago
Michael Richters
ec7cdbcecb
Standardize Macros to use Kaleidoscope-Ranges
...
Macros was still using its own bit in the `Key.flags_` byte to define Macros
keys, unlike all the other plugins that define their own special `Key`
values. This standardizes Macros to make it more like other plugins.
Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
4 years ago
Michael Richters
ef126a267e
Add Macros.isMacroKey() function
...
This just isolates the test for a Macros plugin key to its own function.
Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
4 years ago
Michael Richters
d673585224
Add a few simple testcases for Macros
...
These testcases demonstrate that the macros defined in the keymap still work as
they did before the change from `IS_MACRO` to using `kaleidoscope::ranges`.
Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
4 years ago
Jesse Vincent
cbdd2b30eb
Port issue 941 test case to ktest
4 years ago
Jesse Vincent
bf461fc9ea
Move "basic keypress" test to ktest
4 years ago
Jesse Vincent
61b41972c4
Port the 'keycodes' test to ktest
4 years ago
Jesse Vincent
533b6da571
Little bits of refactoring to the ktest parser
4 years ago
Jesse Vincent
4517ff7c0e
Add a first version of a Kaleidoscope testing DSL.
...
The goal is to make it easy for folks to write tests without knowing C++
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
4 years ago
Jesse Vincent
d8b674f4dc
Small error in my cherry-picking.
4 years ago
Jesse Vincent
072892111e
Extract expected report validation. I'm very much not proud of the
...
hack of using a macro for this, but I'm happy to simplify test scripts
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
4 years ago
Jesse Vincent
eebf8e639b
Add a variant of ExpectReport that takes an explicit list of keycodes
...
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
4 years ago