kunit/test: Add example test showing parameterized testing
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 17 May 2023 11:18:14 +0000 (13:18 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 26 May 2023 14:43:57 +0000 (08:43 -0600)
commitd273b72846d636a7a9072587b5c53e7c0aeb791b
tree8d3c17b1ade0a1233a94ba282f39b7adcaf16025
parentc7853b55116e644e1fd4f0e5d8ea7c5dc89d71b8
kunit/test: Add example test showing parameterized testing

Use of parameterized testing is documented [1] but such use case
is not present in demo kunit test. Add small subtest for that.

[1] https://kernel.org/doc/html/latest/dev-tools/kunit/usage.html#parameterized-testing

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: David Gow <davidgow@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/kunit-example-test.c