Re: [PATCH v5 1/3] rust: kunit: add KUnit case and suite macros

2025-01-03 Thread Miguel Ojeda
On Fri, Dec 13, 2024 at 9:10 AM David Gow wrote: > > +/// The test case should have the signature > +/// `unsafe extern "C" fn test_case(test: *mut crate::bindings::kunit)`. I guess this is here so that people can copy-paste it (i.e. users)? However, given it is private (i.e. users are not expect

[PATCH v5 1/3] rust: kunit: add KUnit case and suite macros

2024-12-13 Thread David Gow
From: José Expósito Add a couple of Rust const functions and macros to allow to develop KUnit tests without relying on generated C code: - The `kunit_unsafe_test_suite!` Rust macro is similar to the `kunit_test_suite` C macro. It requires a NULL-terminated array of test cases (see below).