dm: test: Allow 'dm test' to select a particular test to run

As well as running all tests, it is useful to be able to run a selected test.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
Simon Glass 2015-03-25 12:23:04 -06:00
parent b66c0a662b
commit 57f54d55bd
3 changed files with 17 additions and 8 deletions

View file

@ -205,12 +205,13 @@ void dm_leak_check_start(struct dm_test_state *dms);
/**
* dm_test_main() - Run all the tests
* dm_test_main() - Run all or one of the tests
*
* This runs all available driver model tests
* This runs all available driver model tests, or a selected one
*
* @test_name: Name of test to run, or NULL for all
* @return 0 if OK, -ve on error
*/
int dm_test_main(void);
int dm_test_main(const char *test_name);
#endif