test: Add a command function for test execution
authorSimon Glass <sjg@chromium.org>
Sat, 25 Nov 2017 18:57:29 +0000 (11:57 -0700)
committerTom Rini <trini@konsulko.com>
Sat, 2 Dec 2017 23:32:58 +0000 (18:32 -0500)
commit4d869c1e49e5a276bd53f50a83e78999a25e2846
tree43478b125299c63748298b33f400e9a6ecd08d03
parentb59670f2bd028b682cfab88a9c8e980a968f24bd
test: Add a command function for test execution

The logic to either iterate through a list of tests or pick a named test
is common to at lest two test suits. Move this logic into a new function
and call it from the environment tests.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/test/suites.h
test/cmd_ut.c
test/env/cmd_ut_env.c