1
0
Fork 0
mirror of https://github.com/u-boot/u-boot.git synced 2025-04-26 07:17:10 +00:00
u-boot/test
Simon Glass 8344038a93 test: Allow signaling that U-Boot is ready
When Labgrid is used, it can get U-Boot ready for running tests. It
prints a message when it has done so.

Add logic to detect this message and accept it.

Note that this does not change pytest, which still (also) looks for the
U-Boot banner. This change merely makes it possible for pytest to
believe Labgrid when it says that the board is ready for use.

In several cases, the board starts up and Labgrid receives some initial
output, then pytest starts and misses some of that output, because it
came in while Labgrid had the console open. Then pytest fails because
it doesn't see the expected banners.

With this change, Labgrid handles getting U-Boot to a prompt, in a
fully reliable manner. Then pytest starts up and can simply start
running its tests.

But, again, this does not prevent pytest from handling a banner if one
is provided (e.g. if not using the Labgrid integration).

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
2024-11-13 12:01:35 -06:00
..
boot test: efi: boot: Add a test for the efi bootmeth 2024-11-09 10:01:47 +01:00
cmd x86: coreboot: Allow building an expo for editing CMOS config 2024-11-03 21:27:12 -06:00
common test: Use UTF_CONSOLE in remaining tests 2024-08-26 18:51:49 -06:00
dm dm: core: Add a function to see if a device exists 2024-11-03 21:27:12 -06:00
env test: Rename UTF_CONSOLE_REC to UTF_CONSOLE 2024-08-26 18:51:49 -06:00
fs test: fs: fs-test: Move the tests to use sha256sum 2024-01-11 21:19:25 -05:00
fuzz global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
hush test/hush: Add CONFIG_CONSOLE_RECORD where required 2024-10-29 16:17:47 -06:00
image spl: Create a function to init spl_load_info 2024-08-23 15:58:42 -06:00
lib alist: Add a way to efficiently filter an alist 2024-11-03 21:27:12 -06:00
log Merge patch series "Tidy up console recording in tests" 2024-08-26 18:52:18 -06:00
optee Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
overlay test/overlay: Make this depend on SANDBOX 2024-08-23 15:59:39 -06:00
py test: Allow signaling that U-Boot is ready 2024-11-13 12:01:35 -06:00
stdint Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
trace
bloblist.c bloblist: test: Mark tests with UTF_BLOBLIST 2024-11-03 21:27:12 -06:00
bootm.c test: bootm: Ensure GD_FLG_SILENT is reset 2024-11-04 14:49:06 -06:00
cmd_ut.c global: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD 2024-10-11 11:44:48 -06:00
command_ut.c Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
common.sh Consistently use nproc for counting the CPUs 2020-01-30 13:30:35 -05:00
compression.c test: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
Kconfig test: Remove ASN1 library test 2024-10-14 17:58:52 -06:00
Makefile global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
print_ut.c test: Use UTF_CONSOLE in remaining tests 2024-08-26 18:51:49 -06:00
run test: Run the VPL tests with 'make check' 2023-04-03 06:53:53 +12:00
str_ut.c lib: Handle a special case with str_to_list() 2024-08-07 08:49:10 -06:00
test-main.c test: Allow saving and restoring the bloblist 2024-11-03 21:27:12 -06:00
time_ut.c Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
unicode_ut.c Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
ut.c test: Fail when an empty line is expected but not present 2024-08-26 18:51:48 -06:00