• Simon Glass's avatar
    dm: test: Allow test names to leave out the dm_test_ prefix · c02790ce
    Simon Glass authored
    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: default avatarSimon Glass <sjg@chromium.org>
test-main.c 3.16 KB