mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-19 05:43:51 -09:00
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>
17 lines
448 B
Python
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)
|