summaryrefslogtreecommitdiff
path: root/test/py/tests/test_sandbox_opts.py
blob: 48f5b313870afbe0c9313ecf395df6fa4dacdf20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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')
def test_sandbox_lto(ubman):
    """Test building sandbox without CONFIG_LTO"""

    utils.run_and_log(
        ubman, ['./tools/buildman/buildman', '-m', '--board', 'sandbox',
               '-a', '~LTO', '-o', TMPDIR])