summaryrefslogtreecommitdiff
path: root/test/emulate.pl
Commit message (Collapse)AuthorAgeFilesLines
* test: emulate.pl: fix firmware use with non-tuxmake out-of-tree buildAhmad Fatoum2023-04-111-10/+12
| | | | | | | | | | | | The YAMLs may contain URLs for firmware that needs to be fetched before starting Qemu. This firmware needs to be installed where Qemu will find it, which is _not_ the source directory for out-of-tree builds. This adjust the path. Fixes: 7271ce78d0fc ("test: add emulate.pl, a runner for barebox on emulated targets") Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230411071436.1630752-7-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* test: emulate.pl: fix support for multiple block devicesAhmad Fatoum2022-10-101-0/+2
| | | | | | | | | Block devices on QEMU command line need a unique id. The id factors in $i, which we failed to increment. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20221010060504.2082266-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* test: emulate.pl: fix typo in help textAhmad Fatoum2021-11-301-1/+1
| | | | | | | | s/kconfig_add/kconfig-add/ Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20211125160526.3827881-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* test: add emulate.pl, a runner for barebox on emulated targetsAhmad Fatoum2021-06-091-0/+528
This script is a wrapper around tuxmake, qemu and labgrid-pytest. It parses the same YAML files, labgrid-pytest uses and instructs tuxmake to build and collect the needed images. By default, it will start an interactive emulator session, but with --test, it can also run labgrid-pytest instead. The script has some knowledge of QEMU options to make common tasks like passing images straight-forward. Script is written with both manual use and CI in mind. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20210604084704.17410-12-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>