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>
29 lines
832 B
Python
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])
|