Files
buildroot/support/testing/tests/package/test_snagboot.py
Thomas Petazzoni bf4e1ec19f package/snagboot: new package
This commit adds a package for Snagboot, the open-source
vendor-neutral recover and reflashing tool for embedded targets. We
install the dependencies needed for snagrecover and snagflash, but we
don't bother installing the dependencies of the GUI-based snagfactory,
as that would require Kivy on the host, which is Qt based.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
2025-10-30 21:16:47 +01:00

17 lines
448 B
Python

import infra.basetest
class TestHostSnagboot(infra.basetest.BRHostPkgTest):
hostpkgs = ["host-snagboot"]
config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
"""
BR2_PACKAGE_HOST_SNAGBOOT=y
"""
def test_run(self):
cmd = ["host/bin/snagrecover", "--help"]
infra.run_cmd_on_host(self.builddir, cmd)
cmd = ["host/bin/snagflash", "--help"]
infra.run_cmd_on_host(self.builddir, cmd)