diff options
author | Tom Rini <trini@konsulko.com> | 2023-11-07 18:33:09 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-11-07 18:33:09 -0500 |
commit | 1e4d9dd871512e1955e45ac1c3095fb063c0d07c (patch) | |
tree | 3770d9ca70d5f8447a25bdabe03c7c60f4fd29aa /test/py | |
parent | 3af0e9556c968fc2c40e3778d8f1e668a90af92e (diff) | |
parent | d7f592da6ee90b11cea4d2ad4d0f39d6d26fc3b6 (diff) |
Merge branch '2023-11-07-assorted-big-cleanups' into next
- Merge in changes such that CONFIG_CMDLINE can be disabled and merge
in a series that starts to remove <common.h> usage.
Diffstat (limited to 'test/py')
-rw-r--r-- | test/py/tests/test_sandbox_opts.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/py/tests/test_sandbox_opts.py b/test/py/tests/test_sandbox_opts.py new file mode 100644 index 00000000000..422b43cb3bc --- /dev/null +++ b/test/py/tests/test_sandbox_opts.py @@ -0,0 +1,30 @@ +# 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]) + +@pytest.mark.slow +@pytest.mark.boardspec('sandbox') +def test_sandbox_lto(u_boot_console): + """Test building sandbox without CONFIG_LTO""" + cons = u_boot_console + + out = util.run_and_log( + cons, ['./tools/buildman/buildman', '-m', '--board', 'sandbox', + '-a', '~LTO', '-o', TMPDIR]) |