Simon Glass | eb0a7eb | 2023-10-26 14:31:37 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # Copyright 2022 Google LLC |
| 3 | # Written by Simon Glass <sjg@chromium.org> |
| 4 | |
| 5 | import pytest |
| 6 | |
| 7 | import u_boot_utils as util |
| 8 | |
| 9 | # This is needed for Azure, since the default '..' directory is not writeable |
| 10 | TMPDIR = '/tmp/test_cmdline' |
| 11 | |
| 12 | @pytest.mark.slow |
| 13 | @pytest.mark.boardspec('sandbox') |
| 14 | def test_sandbox_cmdline(u_boot_console): |
| 15 | """Test building sandbox without CONFIG_CMDLINE""" |
| 16 | cons = u_boot_console |
| 17 | |
| 18 | out = util.run_and_log( |
| 19 | cons, ['./tools/buildman/buildman', '-m', '--board', 'sandbox', |
| 20 | '-a', '~CMDLINE', '-o', TMPDIR]) |
Tom Rini | 773f1ed | 2023-10-26 14:31:38 -0400 | [diff] [blame] | 21 | |
| 22 | @pytest.mark.slow |
| 23 | @pytest.mark.boardspec('sandbox') |
| 24 | def test_sandbox_lto(u_boot_console): |
| 25 | """Test building sandbox without CONFIG_LTO""" |
| 26 | cons = u_boot_console |
| 27 | |
| 28 | out = util.run_and_log( |
| 29 | cons, ['./tools/buildman/buildman', '-m', '--board', 'sandbox', |
| 30 | '-a', '~LTO', '-o', TMPDIR]) |