From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: Simon Glass <sjg@chromium.org>
Cc: trini@konsulko.com, etienne.carriere@st.com,
michal.simek@amd.com, u-boot@lists.denx.de
Subject: Re: [PATCH v2 1/5] test: dm: skip scmi tests against disabled protocols
Date: Tue, 14 Nov 2023 10:44:17 +0900 [thread overview]
Message-ID: <ZVLQ8bryk6Jjo5C0@octopus> (raw)
In-Reply-To: <CAPnjgZ1AQMoKVgF_tk6fhnMaTbh5=gtgy6XDPgvLs4BjYR6+Aw@mail.gmail.com>
On Mon, Nov 13, 2023 at 11:01:18AM -0700, Simon Glass wrote:
> Hi AKASHI,
>
> On Sun, 12 Nov 2023 at 18:49, AKASHI Takahiro
> <takahiro.akashi@linaro.org> wrote:
> >
> > This is a precautionary change to make scmi tests workable whether or not
> > a specific protocol be enabled.
> >
> > Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
> > ---
> > test/dm/scmi.c | 12 ++++++++++++
> > 1 file changed, 12 insertions(+)
> >
> > diff --git a/test/dm/scmi.c b/test/dm/scmi.c
> > index da45314f2e4c..2f63f2da16fb 100644
> > --- a/test/dm/scmi.c
> > +++ b/test/dm/scmi.c
> > @@ -217,6 +217,9 @@ static int dm_test_scmi_power_domains(struct unit_test_state *uts)
> > u8 *name;
> > int ret;
> >
> > + if (!IS_ENABLED(CONFIG_SCMI_POWER_DOMAIN))
> > + return 0;
>
> -EAGAIN to skip a test
Ah, I didn't notice such a common practice as it is rarely seen
under ut. Will fix.
-Takahiro Akashi
> Please update a comment if this needs to be documented better
>
> > +
> > /* preparation */
> > ut_assertok(load_sandbox_scmi_test_devices(uts, &agent, &dev));
> > ut_assertnonnull(agent);
> > @@ -317,6 +320,9 @@ static int dm_test_scmi_clocks(struct unit_test_state *uts)
> > int ret_dev;
> > int ret;
> >
> > + if (!IS_ENABLED(CONFIG_CLK_SCMI))
> > + return 0;
> > +
> > ret = load_sandbox_scmi_test_devices(uts, &agent, &dev);
> > if (ret)
> > return ret;
> > @@ -382,6 +388,9 @@ static int dm_test_scmi_resets(struct unit_test_state *uts)
> > struct udevice *agent_dev, *reset_dev, *dev = NULL;
> > int ret;
> >
> > + if (!IS_ENABLED(CONFIG_RESET_SCMI))
> > + return 0;
> > +
> > ret = load_sandbox_scmi_test_devices(uts, &agent, &dev);
> > if (ret)
> > return ret;
> > @@ -418,6 +427,9 @@ static int dm_test_scmi_voltage_domains(struct unit_test_state *uts)
> > struct udevice *dev;
> > struct udevice *regul0_dev;
> >
> > + if (!IS_ENABLED(CONFIG_DM_REGULATOR_SCMI))
> > + return 0;
> > +
> > ut_assertok(load_sandbox_scmi_test_devices(uts, &agent, &dev));
> >
> > scmi_devices = sandbox_scmi_devices_ctx(dev);
> > --
> > 2.34.1
> >
>
> Regards,
> Simon
next prev parent reply other threads:[~2023-11-14 1:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-13 1:49 [PATCH v2 0/5] cmd: add scmi command AKASHI Takahiro
2023-11-13 1:49 ` [PATCH v2 1/5] test: dm: skip scmi tests against disabled protocols AKASHI Takahiro
2023-11-13 18:01 ` Simon Glass
2023-11-14 1:44 ` AKASHI Takahiro [this message]
2023-11-13 1:49 ` [PATCH v2 2/5] firmware: scmi: support protocols on sandbox only if enabled AKASHI Takahiro
2023-11-13 18:01 ` Simon Glass
2023-11-14 1:53 ` AKASHI Takahiro
2023-11-13 1:49 ` [PATCH v2 3/5] cmd: add scmi command for SCMI firmware AKASHI Takahiro
2023-11-13 1:49 ` [PATCH v2 4/5] doc: cmd: add documentation for scmi AKASHI Takahiro
2023-11-13 1:49 ` [PATCH v2 5/5] test: dm: add scmi command test AKASHI Takahiro
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=ZVLQ8bryk6Jjo5C0@octopus \
--to=takahiro.akashi@linaro.org \
--cc=etienne.carriere@st.com \
--cc=michal.simek@amd.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.