blob: 48f5b313870afbe0c9313ecf395df6fa4dacdf20 [file] [log] [blame]
Simon Glasseb0a7eb2023-10-26 14:31:37 -04001# SPDX-License-Identifier: GPL-2.0
2# Copyright 2022 Google LLC
3# Written by Simon Glass <sjg@chromium.org>
4
5import pytest
6
Simon Glassdb0e4532025-02-09 09:07:16 -07007import utils
Simon Glasseb0a7eb2023-10-26 14:31:37 -04008
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')
Simon Glassddba5202025-02-09 09:07:14 -070014def test_sandbox_cmdline(ubman):
Simon Glasseb0a7eb2023-10-26 14:31:37 -040015 """Test building sandbox without CONFIG_CMDLINE"""
Simon Glasseb0a7eb2023-10-26 14:31:37 -040016
Simon Glassdb0e4532025-02-09 09:07:16 -070017 utils.run_and_log(
Simon Glass32701112025-02-09 09:07:17 -070018 ubman, ['./tools/buildman/buildman', '-m', '--board', 'sandbox',
Simon Glasseb0a7eb2023-10-26 14:31:37 -040019 '-a', '~CMDLINE', '-o', TMPDIR])
Tom Rini773f1ed2023-10-26 14:31:38 -040020
21@pytest.mark.slow
22@pytest.mark.boardspec('sandbox')
Simon Glassddba5202025-02-09 09:07:14 -070023def test_sandbox_lto(ubman):
Tom Rini773f1ed2023-10-26 14:31:38 -040024 """Test building sandbox without CONFIG_LTO"""
Tom Rini773f1ed2023-10-26 14:31:38 -040025
Simon Glassdb0e4532025-02-09 09:07:16 -070026 utils.run_and_log(
Simon Glass32701112025-02-09 09:07:17 -070027 ubman, ['./tools/buildman/buildman', '-m', '--board', 'sandbox',
Tom Rini773f1ed2023-10-26 14:31:38 -040028 '-a', '~LTO', '-o', TMPDIR])