Files
u-boot/test/py/tests/test_sandbox_opts.py
Simon Glass 0d11fbb0e2 test: Move the non-LTO test to sandbox_flattree
The sandbox build is about to be used for ulib, so will not support LTO.
Use the sandbox_flatree build to check disabling LTO.

There is limited value in this, since sandbox will already check
building without LTO. But it seems reasonable to keep the test working,
making sure that the same board can build with and without LTO.

Signed-off-by: Simon Glass <sjg@chromium.org>
2025-09-08 12:16:38 -06:00

29 lines
832 B
Python

# SPDX-License-Identifier: GPL-2.0
# Copyright 2022 Google LLC
# Written by Simon Glass <sjg@chromium.org>
import pytest
import utils
# This is needed for Azure, since the default '..' directory is not writeable
TMPDIR = '/tmp/test_cmdline'
@pytest.mark.slow
@pytest.mark.boardspec('sandbox')
def test_sandbox_cmdline(ubman):
"""Test building sandbox without CONFIG_CMDLINE"""
utils.run_and_log(
ubman, ['./tools/buildman/buildman', '-m', '--board', 'sandbox',
'-a', '~CMDLINE', '-o', TMPDIR])
@pytest.mark.slow
@pytest.mark.boardspec('sandbox_flattree')
def test_sandbox_lto(ubman):
"""Test building sandbox_flattree without CONFIG_LTO"""
utils.run_and_log(
ubman, ['./tools/buildman/buildman', '-m', '--board',
'sandbox_flattree', '-a', '~LTO', '-o', TMPDIR])