public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [RFC] make sandbox UT more generic
@ 2023-08-31  0:38 AKASHI Takahiro
  2023-08-31  2:49 ` Simon Glass
  0 siblings, 1 reply; 6+ messages in thread
From: AKASHI Takahiro @ 2023-08-31  0:38 UTC (permalink / raw)
  To: u-boot; +Cc: sjg

Hi,

I'm working on implementing SCMI-based pinctrl/gpio driver,
and want to re-use sandbox UT to test the code. However,
It is somehow sandbox-specific (with additional DT nodes).
How can/should we make it more generic for other targets/drivers
rather than just by copying the test code?
(I have already created a test for pinmux since there is only
one existing scenario, but gpio test has many.)

Even if I say 'generic', my case may be special since real
hardware (device drivers) cannot always run all the test cases,
while SCMI-based drivers potentially can with a dummy SCMI server
for sandbox.
See:
    drivers/firmware/scmi/sandbox-scmi_agent.c

Thanks,
-Takahiro Akashi

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-09-07 12:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-31  0:38 [RFC] make sandbox UT more generic AKASHI Takahiro
2023-08-31  2:49 ` Simon Glass
2023-08-31  5:28   ` AKASHI Takahiro
2023-08-31 15:04     ` Simon Glass
2023-09-06  3:00       ` AKASHI Takahiro
2023-09-07 12:23         ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox