Skip to content

Files

Latest commit

9168201 · May 20, 2020

History

History

TestIn

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 7, 2020
Feb 20, 2018
May 20, 2020
Jan 1, 2017
Feb 17, 2019
Feb 17, 2019
Mar 18, 2018
Nov 9, 2018
Nov 22, 2017
Mar 12, 2019
Mar 18, 2018

Kiibohd Controller - TestIn Scan Module

The TestIn scan module is a host configuration of the Kiibohd Controller. This means it does not run on a keyboard, but on the host computer itself. It is most useful in unit testing various pieces of control logic within the Kiibohd Controller codebase. The code is compiled into a shared library.

All system calls that would have been implemented using microcontroller hardware are replaced using Python callbacks.

Various test cases are available to be run from the Tests directory. All of the Tests are configured and copied at build time, so don't try to run them from this directory.

Directories

  • Tests - Contains KLL TestIn unit and functional tests.

Files

  • capabilities.kll - KLL capabilities file for the TestIn Scan Module.
  • gdb - Convenience script to call gdb with a given test script e.g. ./gdb Tests/kll.py.
  • host.py - Python commands and callbacks for the TestIn module.
  • interface.py - Build-time template to configure host side KLL. Used to set defaults in Tests.
  • scan_loop.h/.c - Basic scan loop to handle key input for the TestIn module.
  • scancode_map.kll - Default layout configuration for TestIn module.
  • setup.cmake - CMake configuration for TestIn module.