2019-09-23 02:02:31 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-03-11 07:23:13 -08:00
|
|
|
|
2019-09-23 02:02:31 -07:00
|
|
|
|
2020-05-29 22:46:20 +01:00
|
|
|
|
2021-08-03 22:08:08 -07: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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:39 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:35 -07:00
|
|
|
|
2020-01-06 22:28:20 +00: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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
2020-11-16 11:10:35 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
2021-08-03 22:08:08 -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
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
|
|
|
|
|
2020-08-04 13:47:42 -07: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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-29 22:46:20 +01: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
|
|
|
|
2020-05-29 22:46:20 +01: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-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
|
|
|
|
2019-09-23 02:02:32 -07:00
|
|
|
|
2020-05-29 22:46:20 +01: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
|
|
|
|
2020-05-29 22:46:21 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-29 22:46:20 +01: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
|
|
|
|
2020-05-29 22:46:20 +01: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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-29 22:46:20 +01: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-06-28 19:34:30 -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-05-29 22:46:20 +01: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
|
|
|
|
|
|
|
|
|
2020-05-29 22:46:20 +01: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
|
|
|
|
|
|
|
|
|
2020-05-29 22:46:20 +01: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
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-29 22:46:20 +01: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
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
2020-01-06 22:28:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
|
2020-01-06 22:28:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|