]> Git Repo - J-u-boot.git/blob - test/py/tests/test_event_dump.py
Merge tag 'u-boot-imx-master-20250127' of https://gitlab.denx.de/u-boot/custodians...
[J-u-boot.git] / test / py / tests / test_event_dump.py
1 # SPDX-License-Identifier: GPL-2.0+
2 # Copyright 2021 Google LLC
3 # Written by Simon Glass <[email protected]>
4
5 import pytest
6 import re
7 import u_boot_utils as util
8
9 # This is only a partial test - coverting 64-bit sandbox. It does not test
10 # big-endian images, nor 32-bit images
11 @pytest.mark.boardspec('sandbox')
12 def test_event_dump(u_boot_console):
13     """Test that the "help" command can be executed."""
14     cons = u_boot_console
15     sandbox = cons.config.build_dir + '/u-boot'
16     out = util.run_and_log(cons, ['scripts/event_dump.py', sandbox])
17     expect = '''.*Event type            Id                              Source location
18 --------------------  ------------------------------  ------------------------------
19 EVT_FT_FIXUP          bootmeth_vbe_ft_fixup           .*boot/vbe_request.c:.*
20 EVT_FT_FIXUP          bootmeth_vbe_simple_ft_fixup    .*boot/vbe_simple_os.c:.*
21 EVT_LAST_STAGE_INIT   alloc_write_acpi_tables         .*lib/acpi/acpi_table.c:.*
22 EVT_LAST_STAGE_INIT   install_smbios_table            .*lib/efi_loader/efi_smbios.c:.*
23 EVT_MISC_INIT_F       sandbox_early_getopt_check      .*arch/sandbox/cpu/start.c:.*
24 EVT_TEST              h_adder_simple                  .*test/common/event.c:'''
25     assert re.match(expect, out, re.MULTILINE) is not None
This page took 0.029199 seconds and 4 git commands to generate.