mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-01-10 12:18:55 +00:00
56ea7c8b75
The primary motivation for having a sandbox without LTO build in CI is to ensure that we don't have that option break. We now have the ability to run tests of specific options being enabled/disabled, so drop the parts of CI that build and test that configuration specifically and add a build test instead. We still test that "NO_LTO=1" rather than editing the config file works via the ftrace tests. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com>
30 lines
897 B
Python
30 lines
897 B
Python
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright 2022 Google LLC
|
|
# Written by Simon Glass <sjg@chromium.org>
|
|
|
|
import pytest
|
|
|
|
import u_boot_utils as util
|
|
|
|
# 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(u_boot_console):
|
|
"""Test building sandbox without CONFIG_CMDLINE"""
|
|
cons = u_boot_console
|
|
|
|
out = util.run_and_log(
|
|
cons, ['./tools/buildman/buildman', '-m', '--board', 'sandbox',
|
|
'-a', '~CMDLINE', '-o', TMPDIR])
|
|
|
|
@pytest.mark.slow
|
|
@pytest.mark.boardspec('sandbox')
|
|
def test_sandbox_lto(u_boot_console):
|
|
"""Test building sandbox without CONFIG_LTO"""
|
|
cons = u_boot_console
|
|
|
|
out = util.run_and_log(
|
|
cons, ['./tools/buildman/buildman', '-m', '--board', 'sandbox',
|
|
'-a', '~LTO', '-o', TMPDIR])
|