mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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:
parent
b66c0a662b
commit
57f54d55bd
3 changed files with 17 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue