fake-bti / fake-resource partner SDK review

20 views
Skip to first unread message

Christopher Anderson

unread,
Jun 1, 2023, 1:02:51 PM6/1/23
to api-c...@fuchsia.dev
Howdy!

To support OOT driver efforts we'd like to place the following libraries in the partner SDK:


These are test-only libraries that allow test authors to create fake versions of kernel objects and intercept syscalls that accept them to allow for writing hardware and driver related unit tests. They're widely used and have been stable for years with the only change in the last year or so being to make the fakes work over FIDL.

The public interface consists of only three methods to create fakes, along with another two to inspect the state of the objects. I have not prepared a document or presentation yet because I wanted to see if folks felt this warranted a full meeting, or if we should do it offline. I imagine Jocelyn would be a primary stakeholder, but since this is related to test scaffolding I imagine it will be of interest to others as well.

Thanks!

Hunter Freyer

unread,
Jun 5, 2023, 12:36:29 PM6/5/23
to Christopher Anderson, api-c...@fuchsia.dev
Hey! Yes, I think we can do this asynchronously. Could you make a CL that makes a trivial change in each of the two header files? We can then have a comment period where feedback can be added to that CL.

Thanks,
Hunter

--
You received this message because you are subscribed to the Google Groups "api-council" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-council...@fuchsia.dev.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/api-council/CAGV1eogN8s14JnU7poWf3P%2B6UcKTdF8O4YCvruYgOiTvgaZzHg%40mail.gmail.com.

Christopher Anderson

unread,
Jun 5, 2023, 1:11:30 PM6/5/23
to Hunter Freyer, api-c...@fuchsia.dev
Of course. I'll do the legwork to get the Partner CL ready, and then send something out for comment. Thanks.

Christopher Anderson

unread,
Jun 8, 2023, 2:35:22 PM6/8/23
to Hunter Freyer, api-c...@fuchsia.dev
Hello again,

I've uploaded the draft to https://fuchsia-review.git.corp.google.com/c/fuchsia/+/868656/2 to discuss the proposed interface in the SDK. The existing in-tree headers are present for comparison.

Hunter Freyer

unread,
Jun 8, 2023, 2:56:54 PM6/8/23
to Christopher Anderson, Jocelyn Dang, Christopher Johnson, api-c...@fuchsia.dev
Sounds good!

API Council members! Please take a look at this CL and leave any feedback before Next Thursday, Jun 15. Based on the subject matter, it'd be good to have +Jocelyn Dang and +Christopher Johnson chime in!

Thanks,
Hunter
Reply all
Reply to author
Forward
0 new messages