selftests: kselftest framework: add API to return pass/fail/* counts
authorShuah Khan <shuahkh@osg.samsung.com>
Mon, 24 Jul 2017 19:55:18 +0000 (13:55 -0600)
committerShuah Khan <shuahkh@osg.samsung.com>
Fri, 28 Jul 2017 19:20:19 +0000 (13:20 -0600)
commit1d3ee8bef9549ec8c16223de452f2e08b81f83d9
tree5fa0c68fb26cf6a37ac54cdead7d915c228b281c
parentf6c44bbb79aa875d60dbd29ed1fa63923fb1fe81
selftests: kselftest framework: add API to return pass/fail/* counts

Some tests print final pass/fail message based on fail count. Add
ksft_get_*_cnt() API to kselftest framework to return counts.

Update ksft_print_cnts() to print the test results summary message with
individual pass, fail, ... counters.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.com>
tools/testing/selftests/kselftest.h