tbot is a testing/automation tool that is focused on usage in embedded development. At its core tbot just provides utilities for interaction with remote hosts/targets and an extensive library of routines that are common in embedded development/testing.
tbot aims to be a support for the developer while working on a project and without much modification also allow running tests in an automated setting (CI).
tbot can very easily support complex test architectures with many different hosts and boards involved. As an example:
python3 setup.py install --user
If you haven't done it already, you need to add
~/.local/bin to your
tbot supports command line completions. Enable them by adding
.bashrc or equivalent.
Blinks a GPIO Led on your selected target.
import time import tbot from tbot_contrib import gpio @tbot.testcase @tbot.with_linux def blink(lnx, pin: int = 18) -> None: """Blink the led on pin ``pin``.""" led = gpio.Gpio(lnx, pin) led.set_direction("out") for _ in range(5): led.set_value(True) time.sleep(0.5) led.set_value(False) time.sleep(0.5)
Help is really appreciated! Please take a look at tbot's contribution guidelines for more info. If you are unsure about anything, please open an issue or consult the mailing list first!
tbot is licensed under the
GNU General Public License v3.0 or later. See LICENSE for more info.