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 utils 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(ubman): 15 """Test building sandbox without CONFIG_CMDLINE""" 16 17 utils.run_and_log( 18 ubman, ['./tools/buildman/buildman', '-m', '--board', 'sandbox', 19 '-a', '~CMDLINE', '-o', TMPDIR]) 20 21@pytest.mark.slow 22@pytest.mark.boardspec('sandbox') 23def test_sandbox_lto(ubman): 24 """Test building sandbox without CONFIG_LTO""" 25 26 utils.run_and_log( 27 ubman, ['./tools/buildman/buildman', '-m', '--board', 'sandbox', 28 '-a', '~LTO', '-o', TMPDIR]) 29