aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-10-16 16:28:23 -0600
committerTom Rini <trini@konsulko.com>2023-10-18 19:13:43 -0400
commita57fc12288824a0805bafb5b3bf740766feb75ab (patch)
tree4b1de6a86197fcb3087459529d469a1d32561125
parentd524a1327f4a39f071e8b034e9875b44d9a8c634 (diff)
downloadu-boot-TEST/v4-tidy-up-use-of-CONFIG_CMDLINE.zip
u-boot-TEST/v4-tidy-up-use-of-CONFIG_CMDLINE.tar.gz
u-boot-TEST/v4-tidy-up-use-of-CONFIG_CMDLINE.tar.bz2
sandbox: Add a test for disabling CONFIG_CMDLINETEST/v4-tidy-up-use-of-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>
-rw-r--r--test/py/tests/test_sandbox_opts.py20
1 files changed, 20 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 0000000..91790b3
--- /dev/null
+++ b/test/py/tests/test_sandbox_opts.py
@@ -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])