[PATCH 4/5] test: self: dm: Add test of linear target
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Sep 8 11:53:17 PDT 2025
Hi,
On 08.09.25 11:27, Tobias Waldekranz wrote:
> On fre, sep 05, 2025 at 18:50, Ahmad Fatoum <a.fatoum at pengutronix.de> wrote:
>> On 8/28/25 5:05 PM, Tobias Waldekranz wrote:
>>> Verify that the 'linear' target works as expected.
>>>
>>> Do this by (1) creating a dm device with a couple of linear mappings
>>> to two underlying ramdisks, and then (2) verify that data is returned
>>> in the expected order when reading it through the dm device.
>>
>> Thanks for writing a test! :)
>>
>>> Signed-off-by: Tobias Waldekranz <tobias at waldekranz.com>
>>> ---
>>> test/self/Kconfig | 7 ++
>>> test/self/Makefile | 1 +
>>> test/self/dm.c | 159 +++++++++++++++++++++++++++++++++++++++++++++
>>> 3 files changed, 167 insertions(+)
>>
>> Please add to common/boards/configs/enable_self_test.config, so CI also
>> tests this.
>
> Ah right, tests are more useful if you execute them :)
>
> I have told SELFTEST_ENABLE_ALL to select SELFTEST_DM and all checks
> pass (https://github.com/wkz/barebox/actions/runs/17545487677), but I'm
> not exactly sure which job is running the selftests, and how I can see
> whether the dm tests are included.
https://github.com/wkz/barebox/actions/runs/17545487672/job/49825889525#step:8:65
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list