selftests: Extract logic for multiple test runs
authorKees Cook <keescook@chromium.org>
Wed, 24 Apr 2019 23:12:32 +0000 (16:12 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 25 Apr 2019 19:14:38 +0000 (13:14 -0600)
commitbf66078235ca27062f5924ed6901f40becc4a1a4
treee3f63a723fba72eeb66cc8f17cb56bb6e56f47f1
parentd4e59a536f505c6760ba0187e451daa62a2df703
selftests: Extract logic for multiple test runs

This moves the logic for running multiple tests into a single "run_many"
function of runner.sh. Both "run_tests" and "emit_tests" are modified to
use it. Summary handling is now controlled by the "per_test_logging"
shell flag.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/Makefile
tools/testing/selftests/kselftest/runner.sh
tools/testing/selftests/lib.mk