selftests: add kselftest framework for uniform test reporting
authorShuah Khan <shuahkh@osg.samsung.com>
Fri, 3 Oct 2014 15:04:23 +0000 (09:04 -0600)
committerShuah Khan <shuahkh@osg.samsung.com>
Mon, 17 Nov 2014 17:38:56 +0000 (10:38 -0700)
commit7fb2c3ea28bf7b748923a7cd58b6f49bce491bb7
tree924523faeb492c2a2d3cca832f11b89b29090d17
parent3c25fa14f0bfa21a0b8d5efc3174d0506682658d
selftests: add kselftest framework for uniform test reporting

Add kselftest framework for tests to use. This is a light
weight framework provides a set of interfaces to report test
results. Tests can use these interfaces to report pass, and
fail cases as well as when failure is due to configuration
problems such as missing modules, or when a test that is should
fail, fails as expected, and a test that should fail, passes.
The framework uses POSIX standard return codes for reporting
results to address the needs of users that want to run the kernel
selftests from their user-space test suites and want to know why a
test failed. In addition, the framework includes interfaces to use
to report test statistics on number of tests passed and failed.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/kselftest.h [new file with mode: 0644]