When running sandbox with lots of console output, the vidconsole slows things down significantly since it renders truetype fonts to the internal framebuffer. Add a -Q/--quiet_vidconsole command-line option that removes vidconsole from stdout and stderr, using only the serial console. This can provide a ~300x speedup for output-heavy operations. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com>
28 lines
1.4 KiB
Python
28 lines
1.4 KiB
Python
# SPDX-License-Identifier: GPL-2.0+
|
|
# Copyright 2021 Google LLC
|
|
# Written by Simon Glass <sjg@chromium.org>
|
|
|
|
import pytest
|
|
import re
|
|
import utils
|
|
|
|
# This is only a partial test - coverting 64-bit sandbox. It does not test
|
|
# big-endian images, nor 32-bit images
|
|
@pytest.mark.boardspec('sandbox')
|
|
def test_event_dump(ubman):
|
|
"""Test that the "help" command can be executed."""
|
|
sandbox = ubman.config.build_dir + '/u-boot'
|
|
out = utils.run_and_log(ubman, ['scripts/event_dump.py', sandbox])
|
|
expect = '''.*Event type Id Source location
|
|
-------------------- ------------------------------ ------------------------------
|
|
EVT_FT_FIXUP bootmeth_vbe_ft_fixup .*boot/vbe_request.c:.*
|
|
EVT_FT_FIXUP bootmeth_vbe_simple_ft_fixup .*boot/vbe_simple_os.c:.*
|
|
EVT_LAST_STAGE_INIT alloc_write_acpi_tables .*lib/acpi/acpi_table.c:.*
|
|
EVT_LAST_STAGE_INIT efi_block_device_create .*lib/efi_driver/efi_block_device.c:.*
|
|
EVT_LAST_STAGE_INIT install_smbios_table .*lib/efi_loader/efi_smbios.c:.*
|
|
EVT_LAST_STAGE_INIT last_stage_init .*arch/sandbox/cpu/start.c:.*
|
|
EVT_MISC_INIT_F sandbox_early_getopt_check .*arch/sandbox/cpu/start.c:.*
|
|
EVT_SETTINGS_R sandbox_settings .*board/sandbox/sandbox.c:.*
|
|
EVT_TEST h_adder_simple .*test/common/event.c:'''
|
|
assert re.match(expect, out, re.MULTILINE) is not None
|