> Would you be interested in it?

I'd be willing to help with this. I believe this would be a great
improvement.

> Would you have a preferred approach or framework?

I've been looking into https://cmocka.org. Though I wouldn't say I prefer
it to any other framework.

I would also suggest looking into mockable TCL interfaces.
E.g.:
 For JTAG operations there is a dummy JTAG driver. Currently this driver
returns a series of constants.
It can be extended by allowing to specify TCL handlers for writes and reads
to it.
Such handlers can be used in a test case to verify inputs and provide
necessary outputs, so that JTAG TCL interface (`drscan`/`irscan` etc.) can
be tested.
Similarly, a dummy target class can be created, so that servers (GDB,
rclrpc, etc) can be tested.

Please, let me know what are your thoughts on this?


Reply via email to