summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-25 12:23:04 -0600
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:30 -0600
commit57f54d55bdf7a21034182cf213c1084df214d98c (patch)
treeeabcdf89497ebccbae438200ad6be9ebcfe161f2 /include
parentb66c0a662b29127bc67f1a70b38ea0966c32ec90 (diff)
downloadtalos-obmc-uboot-57f54d55bdf7a21034182cf213c1084df214d98c.tar.gz
talos-obmc-uboot-57f54d55bdf7a21034182cf213c1084df214d98c.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/dm/test.h7
1 files changed, 4 insertions, 3 deletions
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
OpenPOWER on IntegriCloud