From 57f54d55bdf7a21034182cf213c1084df214d98c Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 25 Mar 2015 12:23:04 -0600 Subject: 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 Reviewed-by: Marek Vasut --- include/dm/test.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/dm') diff --git a/include/dm/test.h b/include/dm/test.h index b310e5f3ff..9c4b8d3e57 100644 --- a/include/dm/test.h +++ b/include/dm/test.h @@ -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 -- cgit v1.2.1