2019-09-23 02:02:31 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-28 10:41:43 -07:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2021-03-11 07:23:13 -08:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2022-07-09 11:19:57 +08:00
|
|
|
|
2021-08-03 22:08:08 -07:00
|
|
|
|
2022-07-01 16:47:43 +08:00
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
2020-10-13 16:55:02 -07:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
2020-01-06 22:28:18 +00:00
|
|
|
|
2020-01-06 22:28:19 +00:00
|
|
|
|
2020-01-06 22:28:18 +00:00
|
|
|
|
2021-03-11 07:23:13 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-23 07:24:54 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-03 22:08:08 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2022-04-29 11:12:56 -07:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2020-03-26 14:25:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
|
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
|
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
|
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
|
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
|
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2022-04-29 11:12:57 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
kunit: Reset suite count after running tests
There are some KUnit tests (KFENCE, Thunderbolt) which, for various
reasons, do not use the kunit_test_suite() macro and end up running
before the KUnit executor runs its tests. This means that their results
are printed separately, and they aren't included in the suite count used
by the executor.
This causes the executor output to be invalid TAP, however, as the suite
numbers used are no-longer 1-based, and don't match the test plan.
kunit_tool, therefore, prints a large number of warnings.
While it'd be nice to fix the tests to run in the executor, in the
meantime, reset the suite counter to 1 in __kunit_test_suites_exit.
Not only does this fix the executor, it means that if there are multiple
calls to __kunit_test_suites_init() across different tests, they'll each
get their own numbering.
kunit_tool likes this better: even if it's lacking the results for those
tests which don't use the executor (due to the lack of TAP header), the
output for the other tests is valid.
Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Daniel Latypov <dlatypov@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2021-10-05 21:41:11 -07:00
|
|
|
|
|
|
|
|
|
2022-04-29 11:12:56 -07:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
|
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
|
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kunit: fix failure to build without printk
Previously KUnit assumed that printk would always be present, which is
not a valid assumption to make. Fix that by removing call to
vprintk_emit, and calling printk directly.
This fixes a build error[1] reported by Randy.
For context this change comes after much discussion. My first stab[2] at
this was just to make the KUnit logging code compile out; however, it
was agreed that if we were going to use vprintk_emit, then vprintk_emit
should provide a no-op stub, which lead to my second attempt[3]. In
response to me trying to stub out vprintk_emit, Sergey Senozhatsky
suggested a way for me to remove our usage of vprintk_emit, which led to
my third attempt at solving this[4].
In my third version of this patch[4], I completely removed vprintk_emit,
as suggested by Sergey; however, there was a bit of debate over whether
Sergey's solution was the best. The debate arose due to Sergey's version
resulting in a checkpatch warning, which resulted in a debate over
correct printk usage. Joe Perches offered an alternative fix which was
somewhat less far reaching than what Sergey had suggested and
importantly relied on continuing to use %pV. Much of the debated
centered around whether %pV should be widely used, and whether Sergey's
version would result in object size bloat. Ultimately, we decided to go
with Sergey's version.
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Link[1]: https://lore.kernel.org/linux-kselftest/c7229254-0d90-d90e-f3df-5b6d6fc0b51f@infradead.org/
Link[2]: https://lore.kernel.org/linux-kselftest/20190827174932.44177-1-brendanhiggins@google.com/
Link[3]: https://lore.kernel.org/linux-kselftest/20190827234835.234473-1-brendanhiggins@google.com/
Link[4]: https://lore.kernel.org/linux-kselftest/20190828093143.163302-1-brendanhiggins@google.com/
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Cc: Joe Perches <joe@perches.com>
Cc: Tim.Bird@sony.com
Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2019-09-23 02:02:49 -07:00
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kunit: fix failure to build without printk
Previously KUnit assumed that printk would always be present, which is
not a valid assumption to make. Fix that by removing call to
vprintk_emit, and calling printk directly.
This fixes a build error[1] reported by Randy.
For context this change comes after much discussion. My first stab[2] at
this was just to make the KUnit logging code compile out; however, it
was agreed that if we were going to use vprintk_emit, then vprintk_emit
should provide a no-op stub, which lead to my second attempt[3]. In
response to me trying to stub out vprintk_emit, Sergey Senozhatsky
suggested a way for me to remove our usage of vprintk_emit, which led to
my third attempt at solving this[4].
In my third version of this patch[4], I completely removed vprintk_emit,
as suggested by Sergey; however, there was a bit of debate over whether
Sergey's solution was the best. The debate arose due to Sergey's version
resulting in a checkpatch warning, which resulted in a debate over
correct printk usage. Joe Perches offered an alternative fix which was
somewhat less far reaching than what Sergey had suggested and
importantly relied on continuing to use %pV. Much of the debated
centered around whether %pV should be widely used, and whether Sergey's
version would result in object size bloat. Ultimately, we decided to go
with Sergey's version.
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Link[1]: https://lore.kernel.org/linux-kselftest/c7229254-0d90-d90e-f3df-5b6d6fc0b51f@infradead.org/
Link[2]: https://lore.kernel.org/linux-kselftest/20190827174932.44177-1-brendanhiggins@google.com/
Link[3]: https://lore.kernel.org/linux-kselftest/20190827234835.234473-1-brendanhiggins@google.com/
Link[4]: https://lore.kernel.org/linux-kselftest/20190828093143.163302-1-brendanhiggins@google.com/
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Cc: Joe Perches <joe@perches.com>
Cc: Tim.Bird@sony.com
Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2019-09-23 02:02:49 -07:00
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kunit: split out part of kunit_assert into a static const
This is per Linus's suggestion in [1].
The issue there is that every KUNIT_EXPECT/KUNIT_ASSERT puts a
kunit_assert object onto the stack. Normally we rely on compilers to
elide this, but when that doesn't work out, this blows up the stack
usage of kunit test functions.
We can move some data off the stack by making it static.
This change introduces a new `struct kunit_loc` to hold the file and
line number and then just passing assert_type (EXPECT or ASSERT) as an
argument.
In [1], it was suggested to also move out the format string as well, but
users could theoretically craft a format string at runtime, so we can't.
This change leaves a copy of `assert_type` in kunit_assert for now
because cleaning up all the macros to not pass it around is a bit more
involved.
Here's an example of the expanded code for KUNIT_FAIL():
if (__builtin_expect(!!(!(false)), 0)) {
static const struct kunit_loc loc = { .file = ... };
struct kunit_fail_assert __assertion = { .assert = { .type ... };
kunit_do_failed_assertion(test, &loc, KUNIT_EXPECTATION, &__assertion.assert, ...);
};
[1] https://groups.google.com/g/kunit-dev/c/i3fZXgvBrfA/m/VULQg1z6BAAJ
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2022-01-13 08:59:30 -08:00
|
|
|
|
2022-05-02 11:36:25 +02:00
|
|
|
|
2022-09-30 17:26:35 -07:00
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-14 12:37:25 +03:00
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
|
|
|
|
|
kunit: split out part of kunit_assert into a static const
This is per Linus's suggestion in [1].
The issue there is that every KUNIT_EXPECT/KUNIT_ASSERT puts a
kunit_assert object onto the stack. Normally we rely on compilers to
elide this, but when that doesn't work out, this blows up the stack
usage of kunit test functions.
We can move some data off the stack by making it static.
This change introduces a new `struct kunit_loc` to hold the file and
line number and then just passing assert_type (EXPECT or ASSERT) as an
argument.
In [1], it was suggested to also move out the format string as well, but
users could theoretically craft a format string at runtime, so we can't.
This change leaves a copy of `assert_type` in kunit_assert for now
because cleaning up all the macros to not pass it around is a bit more
involved.
Here's an example of the expanded code for KUNIT_FAIL():
if (__builtin_expect(!!(!(false)), 0)) {
static const struct kunit_loc loc = { .file = ... };
struct kunit_fail_assert __assertion = { .assert = { .type ... };
kunit_do_failed_assertion(test, &loc, KUNIT_EXPECTATION, &__assertion.assert, ...);
};
[1] https://groups.google.com/g/kunit-dev/c/i3fZXgvBrfA/m/VULQg1z6BAAJ
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2022-01-13 08:59:30 -08:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kunit: split out part of kunit_assert into a static const
This is per Linus's suggestion in [1].
The issue there is that every KUNIT_EXPECT/KUNIT_ASSERT puts a
kunit_assert object onto the stack. Normally we rely on compilers to
elide this, but when that doesn't work out, this blows up the stack
usage of kunit test functions.
We can move some data off the stack by making it static.
This change introduces a new `struct kunit_loc` to hold the file and
line number and then just passing assert_type (EXPECT or ASSERT) as an
argument.
In [1], it was suggested to also move out the format string as well, but
users could theoretically craft a format string at runtime, so we can't.
This change leaves a copy of `assert_type` in kunit_assert for now
because cleaning up all the macros to not pass it around is a bit more
involved.
Here's an example of the expanded code for KUNIT_FAIL():
if (__builtin_expect(!!(!(false)), 0)) {
static const struct kunit_loc loc = { .file = ... };
struct kunit_fail_assert __assertion = { .assert = { .type ... };
kunit_do_failed_assertion(test, &loc, KUNIT_EXPECTATION, &__assertion.assert, ...);
};
[1] https://groups.google.com/g/kunit-dev/c/i3fZXgvBrfA/m/VULQg1z6BAAJ
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2022-01-13 08:59:30 -08:00
|
|
|
|
2022-09-30 17:26:35 -07:00
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-22 17:15:30 +00:00
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-13 08:59:27 -08:00
|
|
|
|
kunit: split out part of kunit_assert into a static const
This is per Linus's suggestion in [1].
The issue there is that every KUNIT_EXPECT/KUNIT_ASSERT puts a
kunit_assert object onto the stack. Normally we rely on compilers to
elide this, but when that doesn't work out, this blows up the stack
usage of kunit test functions.
We can move some data off the stack by making it static.
This change introduces a new `struct kunit_loc` to hold the file and
line number and then just passing assert_type (EXPECT or ASSERT) as an
argument.
In [1], it was suggested to also move out the format string as well, but
users could theoretically craft a format string at runtime, so we can't.
This change leaves a copy of `assert_type` in kunit_assert for now
because cleaning up all the macros to not pass it around is a bit more
involved.
Here's an example of the expanded code for KUNIT_FAIL():
if (__builtin_expect(!!(!(false)), 0)) {
static const struct kunit_loc loc = { .file = ... };
struct kunit_fail_assert __assertion = { .assert = { .type ... };
kunit_do_failed_assertion(test, &loc, KUNIT_EXPECTATION, &__assertion.assert, ...);
};
[1] https://groups.google.com/g/kunit-dev/c/i3fZXgvBrfA/m/VULQg1z6BAAJ
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2022-01-13 08:59:30 -08:00
|
|
|
|
|
|
|
|
|
2022-05-02 11:36:25 +02:00
|
|
|
|
2022-09-30 17:26:35 -07:00
|
|
|
|
2022-01-13 08:59:27 -08:00
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
|
|
|
|
|
2022-01-25 13:00:09 -08:00
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
|
|
|
|
|
2022-01-25 13:00:09 -08:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
2022-09-30 17:26:35 -07:00
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
kunit: split out part of kunit_assert into a static const
This is per Linus's suggestion in [1].
The issue there is that every KUNIT_EXPECT/KUNIT_ASSERT puts a
kunit_assert object onto the stack. Normally we rely on compilers to
elide this, but when that doesn't work out, this blows up the stack
usage of kunit test functions.
We can move some data off the stack by making it static.
This change introduces a new `struct kunit_loc` to hold the file and
line number and then just passing assert_type (EXPECT or ASSERT) as an
argument.
In [1], it was suggested to also move out the format string as well, but
users could theoretically craft a format string at runtime, so we can't.
This change leaves a copy of `assert_type` in kunit_assert for now
because cleaning up all the macros to not pass it around is a bit more
involved.
Here's an example of the expanded code for KUNIT_FAIL():
if (__builtin_expect(!!(!(false)), 0)) {
static const struct kunit_loc loc = { .file = ... };
struct kunit_fail_assert __assertion = { .assert = { .type ... };
kunit_do_failed_assertion(test, &loc, KUNIT_EXPECTATION, &__assertion.assert, ...);
};
[1] https://groups.google.com/g/kunit-dev/c/i3fZXgvBrfA/m/VULQg1z6BAAJ
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2022-01-13 08:59:30 -08:00
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
2022-01-13 08:59:27 -08:00
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2020-01-06 22:28:20 +00:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-13 16:55:02 -07:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-16 11:10:35 +05:30
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-16 11:10:35 +05:30
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
2020-11-16 11:10:35 +05:30
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
|
|
|
|
|
2020-11-16 11:10:35 +05:30
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
|
|
|
|
|
2021-08-03 22:08:08 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
|
|
|
|
|
2020-11-16 11:10:35 +05:30
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2021-08-03 22:08:08 -07:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2022-07-01 16:47:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-29 11:12:57 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-29 11:12:56 -07:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2020-11-16 11:10:35 +05:30
|
|
|
|
|
|
|
|
|
2021-08-03 22:08:08 -07:00
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
2020-11-16 11:10:35 +05:30
|
|
|
|
2021-11-02 00:30:13 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-16 11:10:35 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kunit: Report test parameter results as (K)TAP subtests
Currently, the results for individial parameters in a parameterised test
are simply output as (K)TAP diagnostic lines.
As kunit_tool now supports nested subtests, report each parameter as its
own subtest.
For example, here's what the output now looks like:
# Subtest: inode_test_xtimestamp_decoding
ok 1 - 1901-12-13 Lower bound of 32bit < 0 timestamp, no extra bits
ok 2 - 1969-12-31 Upper bound of 32bit < 0 timestamp, no extra bits
ok 3 - 1970-01-01 Lower bound of 32bit >=0 timestamp, no extra bits
ok 4 - 2038-01-19 Upper bound of 32bit >=0 timestamp, no extra bits
ok 5 - 2038-01-19 Lower bound of 32bit <0 timestamp, lo extra sec bit on
ok 6 - 2106-02-07 Upper bound of 32bit <0 timestamp, lo extra sec bit on
ok 7 - 2106-02-07 Lower bound of 32bit >=0 timestamp, lo extra sec bit on
ok 8 - 2174-02-25 Upper bound of 32bit >=0 timestamp, lo extra sec bit on
ok 9 - 2174-02-25 Lower bound of 32bit <0 timestamp, hi extra sec bit on
ok 10 - 2242-03-16 Upper bound of 32bit <0 timestamp, hi extra sec bit on
ok 11 - 2242-03-16 Lower bound of 32bit >=0 timestamp, hi extra sec bit on
ok 12 - 2310-04-04 Upper bound of 32bit >=0 timestamp, hi extra sec bit on
ok 13 - 2310-04-04 Upper bound of 32bit>=0 timestamp, hi extra sec bit 1. 1 ns
ok 14 - 2378-04-22 Lower bound of 32bit>= timestamp. Extra sec bits 1. Max ns
ok 15 - 2378-04-22 Lower bound of 32bit >=0 timestamp. All extra sec bits on
ok 16 - 2446-05-10 Upper bound of 32bit >=0 timestamp. All extra sec bits on
# inode_test_xtimestamp_decoding: pass:16 fail:0 skip:0 total:16
ok 1 - inode_test_xtimestamp_decoding
Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2021-11-02 00:30:14 -07:00
|
|
|
|
|
|
|
|
|
2020-11-16 11:10:35 +05:30
|
|
|
|
2021-11-02 00:30:13 -07:00
|
|
|
|
|
|
|
|
|
2020-11-16 11:10:35 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kunit: Report test parameter results as (K)TAP subtests
Currently, the results for individial parameters in a parameterised test
are simply output as (K)TAP diagnostic lines.
As kunit_tool now supports nested subtests, report each parameter as its
own subtest.
For example, here's what the output now looks like:
# Subtest: inode_test_xtimestamp_decoding
ok 1 - 1901-12-13 Lower bound of 32bit < 0 timestamp, no extra bits
ok 2 - 1969-12-31 Upper bound of 32bit < 0 timestamp, no extra bits
ok 3 - 1970-01-01 Lower bound of 32bit >=0 timestamp, no extra bits
ok 4 - 2038-01-19 Upper bound of 32bit >=0 timestamp, no extra bits
ok 5 - 2038-01-19 Lower bound of 32bit <0 timestamp, lo extra sec bit on
ok 6 - 2106-02-07 Upper bound of 32bit <0 timestamp, lo extra sec bit on
ok 7 - 2106-02-07 Lower bound of 32bit >=0 timestamp, lo extra sec bit on
ok 8 - 2174-02-25 Upper bound of 32bit >=0 timestamp, lo extra sec bit on
ok 9 - 2174-02-25 Lower bound of 32bit <0 timestamp, hi extra sec bit on
ok 10 - 2242-03-16 Upper bound of 32bit <0 timestamp, hi extra sec bit on
ok 11 - 2242-03-16 Lower bound of 32bit >=0 timestamp, hi extra sec bit on
ok 12 - 2310-04-04 Upper bound of 32bit >=0 timestamp, hi extra sec bit on
ok 13 - 2310-04-04 Upper bound of 32bit>=0 timestamp, hi extra sec bit 1. 1 ns
ok 14 - 2378-04-22 Lower bound of 32bit>= timestamp. Extra sec bits 1. Max ns
ok 15 - 2378-04-22 Lower bound of 32bit >=0 timestamp. All extra sec bits on
ok 16 - 2446-05-10 Upper bound of 32bit >=0 timestamp. All extra sec bits on
# inode_test_xtimestamp_decoding: pass:16 fail:0 skip:0 total:16
ok 1 - inode_test_xtimestamp_decoding
Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2021-11-02 00:30:14 -07:00
|
|
|
|
|
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
2020-11-16 11:10:35 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-03 22:08:08 -07:00
|
|
|
|
2021-11-02 00:30:13 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-03 22:08:08 -07:00
|
|
|
|
2020-11-16 11:10:35 +05:30
|
|
|
|
2021-08-03 22:08:08 -07:00
|
|
|
|
|
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
2020-11-16 11:10:35 +05:30
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
|
|
|
|
|
2021-08-03 22:08:08 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-16 11:10:35 +05:30
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2022-04-29 11:12:57 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-03 22:08:08 -07:00
|
|
|
|
2022-04-29 11:12:57 -07:00
|
|
|
|
2022-04-29 11:12:56 -07:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-06 22:28:20 +00:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-06-24 23:58:12 -07:00
|
|
|
|
2022-04-29 11:12:57 -07:00
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
|
|
|
|
|
2022-08-23 07:24:54 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-09 11:19:58 +08:00
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-23 07:24:54 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-09 11:19:58 +08:00
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-09 11:19:58 +08:00
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-23 07:24:54 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-09 11:19:58 +08:00
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
kunit: Reset suite count after running tests
There are some KUnit tests (KFENCE, Thunderbolt) which, for various
reasons, do not use the kunit_test_suite() macro and end up running
before the KUnit executor runs its tests. This means that their results
are printed separately, and they aren't included in the suite count used
by the executor.
This causes the executor output to be invalid TAP, however, as the suite
numbers used are no-longer 1-based, and don't match the test plan.
kunit_tool, therefore, prints a large number of warnings.
While it'd be nice to fix the tests to run in the executor, in the
meantime, reset the suite counter to 1 in __kunit_test_suites_exit.
Not only does this fix the executor, it means that if there are multiple
calls to __kunit_test_suites_init() across different tests, they'll each
get their own numbering.
kunit_tool likes this better: even if it's lacking the results for those
tests which don't use the executor (due to the lack of TAP header), the
output for the other tests is valid.
Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Daniel Latypov <dlatypov@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2021-10-05 21:41:11 -07:00
|
|
|
|
|
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-09 11:19:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-09 11:19:58 +08:00
|
|
|
|
2022-07-09 11:19:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-09 11:19:58 +08:00
|
|
|
|
2022-07-09 11:19:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-03 13:58:34 -07:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-03 13:58:34 -07:00
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
2021-05-03 13:58:34 -07:00
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
2021-05-03 13:58:34 -07:00
|
|
|
|
2020-05-29 22:46:20 +01:00
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-03 13:58:34 -07:00
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
2020-05-29 22:46:20 +01:00
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
|
|
|
|
|
2021-05-03 13:58:34 -07:00
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
2021-05-03 13:58:34 -07:00
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
2021-05-03 13:58:34 -07:00
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-03 13:58:34 -07:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-03 13:58:34 -07:00
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
2022-07-22 17:15:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
|
|
|
|
|
2022-07-22 17:15:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-22 17:15:33 +00:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
2020-01-06 22:28:20 +00:00
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-29 22:46:20 +01:00
|
|
|
|
2021-06-28 19:34:30 -07:00
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-06-28 19:34:30 -07:00
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
2021-06-28 19:34:30 -07:00
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
|
|
|
|
|
2020-05-29 22:46:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-06-28 19:34:30 -07:00
|
|
|
|
2020-05-29 22:46:20 +01:00
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
2020-10-13 16:55:02 -07:00
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
2020-01-06 22:28:20 +00:00
|
|
|
|
2020-01-06 22:28:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
2022-07-09 11:19:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-06 22:28:22 +00:00
|
|
|
|
2022-07-09 11:19:57 +08:00
|
|
|
|
2020-01-06 22:28:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-09 11:19:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
2020-01-06 22:28:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|