]> git.sur5r.net Git - u-boot/commit
dm: test: Allow test names to leave out the dm_test_ prefix
authorSimon Glass <sjg@chromium.org>
Mon, 6 Jul 2015 18:54:23 +0000 (12:54 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 21 Jul 2015 23:39:30 +0000 (17:39 -0600)
commitc02790ce12f3bf01a49fbef71da64322fde863e6
treecf2268090d0b1486c43eace7a0a6c7cad500cbd5
parent97f3ee34b6725f9fa5431e91db3223a53e55761c
dm: test: Allow test names to leave out the dm_test_ prefix

All driver model tests have a dm_test_ prefix. Ignore it when matching a
test name. This makes it easier to run individual tests, like this:

   ./sandbox/u-boot -d ./sandbox/arch/sandbox/dts/test.dtb \
-c "ut dm clk_periph"

We can use 'clk_periph' instead of 'dm_test_clk_periph'.

Also print a message if the requested test is not found.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/dm/test-main.c