mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 18:34:42 +00:00
sandbox: Add a test for disabling CONFIG_CMDLINE
Now that everything is working, add a test to make sure that this builds correctly. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
d563bb5d16
commit
703b5b33cd
1 changed files with 20 additions and 0 deletions
20
test/py/tests/test_sandbox_opts.py
Normal file
20
test/py/tests/test_sandbox_opts.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Copyright 2022 Google LLC
|
||||
# Written by Simon Glass <sjg@chromium.org>
|
||||
|
||||
import pytest
|
||||
|
||||
import u_boot_utils as util
|
||||
|
||||
# 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(u_boot_console):
|
||||
"""Test building sandbox without CONFIG_CMDLINE"""
|
||||
cons = u_boot_console
|
||||
|
||||
out = util.run_and_log(
|
||||
cons, ['./tools/buildman/buildman', '-m', '--board', 'sandbox',
|
||||
'-a', '~CMDLINE', '-o', TMPDIR])
|
Loading…
Add table
Reference in a new issue