1# SPDX-License-Identifier: GPL-2.0 2# Copyright 2022 Google LLC 3# Written by Simon Glass <sjg@chromium.org> 4 5import pytest 6 7import u_boot_utils as util 8 9# This is needed for Azure, since the default '..' directory is not writeable 10TMPDIR = '/tmp/test_cmdline' 11 12@pytest.mark.slow 13@pytest.mark.boardspec('sandbox') 14def test_sandbox_cmdline(u_boot_console): 15 """Test building sandbox without CONFIG_CMDLINE""" 16 cons = u_boot_console 17 18 out = util.run_and_log( 19 cons, ['./tools/buildman/buildman', '-m', '--board', 'sandbox', 20 '-a', '~CMDLINE', '-o', TMPDIR]) 21 22@pytest.mark.slow 23@pytest.mark.boardspec('sandbox') 24def test_sandbox_lto(u_boot_console): 25 """Test building sandbox without CONFIG_LTO""" 26 cons = u_boot_console 27 28 out = util.run_and_log( 29 cons, ['./tools/buildman/buildman', '-m', '--board', 'sandbox', 30 '-a', '~LTO', '-o', TMPDIR]) 31