Hi Linus,
Please pull the Kunit update for Linux 5.8-rc12.
This Kunit update for Linux 5.8-rc2 consists of:
- Adds a generic kunit_resource API extending it to support resources that are passed in to kunit in addition kunit allocated resources. In addition, KUnit resources are now refcounted to avoid passed in resources being released while in use by kunit.
- Add support for named resources.
diff is attached.
thanks, -- Shuah
----------------------------------------------------------------
The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407:
Linux 5.8-rc1 (2020-06-14 12:45:04 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-kunit-5.8-rc2
for you to fetch changes up to 7bf200b3a4ac10b1b0376c70b8c66ed39eae7cdd:
kunit: add support for named resources (2020-06-15 09:31:23 -0600)
---------------------------------------------------------------- linux-kselftest-kunit-5.8-rc2
This Kunit update for Linux 5.8-rc2 consists of:
- Adds a generic kunit_resource API extending it to support resources that are passed in to kunit in addition kunit allocated resources. In addition, KUnit resources are now refcounted to avoid passed in resources being released while in use by kunit.
- Add support for named resources.
---------------------------------------------------------------- Alan Maguire (2): kunit: generalize kunit_resource API beyond allocated resources kunit: add support for named resources
include/kunit/test.h | 210 +++++++++++++++++++++++++++++++++++++++------- lib/kunit/kunit-test.c | 111 +++++++++++++++++++----- lib/kunit/string-stream.c | 14 ++-- lib/kunit/test.c | 171 ++++++++++++++++++++++--------------- 4 files changed, 380 insertions(+), 126 deletions(-)
----------------------------------------------------------------
On Fri, Jun 19, 2020 at 10:28 AM Shuah Khan skhan@linuxfoundation.org wrote:
Please pull the Kunit update for Linux 5.8-rc12.
This doesn't sound like a fix for after the merge window. Explain.
Linus
On 6/20/20 1:13 PM, Linus Torvalds wrote:
On Fri, Jun 19, 2020 at 10:28 AM Shuah Khan skhan@linuxfoundation.org wrote:
Please pull the Kunit update for Linux 5.8-rc12.
This doesn't sound like a fix for after the merge window. Explain.
Linus
I should have added a note like I usually do.
"KUnit resources are now refcounted to avoid passed in resources being released while in use by kunit." is the reason why I made a call on sending this request.
You are right that the second patch "Add support for named resources" is a merge window content. However, my thinking is this could enable writing more tests during 5.8 and these two patches are scoped to just kunit.
Please feel free to delay it if you like. I will include them in for next release.
thanks, -- Shuah
linux-kselftest-mirror@lists.linaro.org