From: Rasmus Villemoes <rv@rasmusvillemoes.dk>
To: "Simon Glass" <sjg@chromium.org>
Cc: <u-boot@lists.denx.de>, "Tom Rini" <trini@konsulko.com>,
"Quentin Schulz" <quentin.schulz@cherry.de>
Subject: Re: [PATCH v3 3/3] test: hook up test of allowing control DTB to act as FIT image
Date: Mon, 01 Jun 2026 09:06:55 +0200 [thread overview]
Message-ID: <87eciq20z4.fsf@prevas.dk> (raw)
In-Reply-To: <CAFLszTiBQwRkXt4eZkopi5rC2tDP8d=u6zpXMDxF0WzaRv18Uw@mail.gmail.com> (Simon Glass's message of "Fri, 29 May 2026 17:02:45 -0500")
On Fri, May 29 2026, "Simon Glass" <sjg@chromium.org> wrote:
> Hi Rasmus,
>
> On 2026-05-29T19:46:18, Rasmus Villemoes <rv@rasmusvillemoes.dk> wrote:
>> test: hook up test of allowing control DTB to act as FIT image
>>
>> Add a test demonstrating how one can embed various scripts in the
>> control DTB.
>>
>> Verify that the source command can be used with ${fdtcontroladdr} by
>> itself (invoking the default script), and with :<node-name>
>> suffix. Check that the scripts themselves can invoke 'sibling'
>> scripts. Also verify that without CONTROL_DTB_AS_FIT set, the control
>> DTB is not accepted by the source command.
>>
>> Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
>>
>> arch/sandbox/dts/sandbox-boot.sh | 2 ++
>> arch/sandbox/dts/sandbox-inner.sh | 4 ++++
>> arch/sandbox/dts/sandbox-outer.sh | 4 ++++
>> arch/sandbox/dts/sandbox_scripts.dtsi | 24 ++++++++++++++++++++++++
>> configs/sandbox_defconfig | 2 ++
>> test/py/tests/test_source.py | 32 ++++++++++++++++++++++++++++++++
>> 6 files changed, 68 insertions(+)
>
>> diff --git a/test/py/tests/test_source.py b/test/py/tests/test_source.py
>> @@ -34,3 +34,35 @@ def test_source(ubman):
>> +@pytest.mark.boardspec('sandbox')
>> +@pytest.mark.buildconfigspec('cmd_echo')
>> +@pytest.mark.buildconfigspec('cmd_source')
>> +@pytest.mark.buildconfigspec('fit')
>> +@pytest.mark.notbuildconfigspec('control_dtb_as_fit')
>> +def test_source_reject_control_dtb(ubman):
>> + assert 'Fail' in ubman.run_command('source ${fdtcontroladdr} || echo Fail')
>> + assert 'Fail' in ubman.run_command('source ${fdtcontroladdr}:boot || echo Fail')
>
> Just to check: since sandbox_defconfig now enables CONTROL_DTB_AS_FIT,
> this case is skipped on the main sandbox build. Did you confirm it
> runs on one of the other variants (sandbox_noinst / sandbox_spl /
> sandbox64)? If none satisfy the marker combination, this is dead code.
Indeed, I didn't really know exactly what boardspec('sandbox') meant,
and couldn't find any documentation on it, so I kinda assumed it meant
"all the sandbox_*" defconfigs.
But regardless, I suppose the right thing to do is to just drop that
boardspec line, since this really should fail on any .config without
control_dtb_as_fit, regardless of whether any scripts are included in
the .dtb via an appropriate .dtsi or not.
Rasmus
prev parent reply other threads:[~2026-06-01 12:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-29 19:46 [PATCH v3 0/3] allow control DTB to double as "FIT image" Rasmus Villemoes
2026-05-29 19:46 ` [PATCH v3 1/3] image-fit.c: introduce CONTROL_DTB_AS_FIT config knob Rasmus Villemoes
2026-05-29 22:02 ` Simon Glass
2026-05-29 19:46 ` [PATCH v3 2/3] doc: develop: add section on embedding scripts inside control DTB Rasmus Villemoes
2026-05-29 19:46 ` [PATCH v3 3/3] test: hook up test of allowing control DTB to act as FIT image Rasmus Villemoes
2026-05-29 22:02 ` Simon Glass
2026-06-01 7:06 ` Rasmus Villemoes [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eciq20z4.fsf@prevas.dk \
--to=rv@rasmusvillemoes.dk \
--cc=quentin.schulz@cherry.de \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox