]> git.kernelconcepts.de Git - karo-tx-uboot.git/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)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:48:54 +0000 (13:48 +0200)
commit708920cb9018f2b5db20cce65c81d23efda2ecdd
treee1dfdeac2a73f4a795e27088a6ea0ffe476c0bde
parent013ec03e628464119e43ac044c2355447fbe6e7f
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