Hi,
On 19.05.2011 10:12, Svetlana Berdnikova wrote:
I need to test drivers for UART, GPIO, I2C, I2S, DMA Controller, MLB, SATAII,
SD/SDIO/MMC, SPI.
But I don't have any idea how to do this.
It will be great to have any example how to do this.
Everything depends on what exactly you would like to check in these drivers.
If you are working on x86 and want to detect the errors like incorrect error
handling, memory leaks, locking issues and other problems not very specific to a
particular class of drivers, you could look at our analysis systems:
- LDV - see http://forge.ispras.ru/projects/ldv and
http://linuxtesting.org/ldv/online
- KEDR - see http://kedr.berlios.de/
LDV is a powerful static analysis system that checks the drivers for errors
according to the list of rules
(http://linuxtesting.org/ldv/online?action=rules). I suppose my colleagues who
developed LDV could describe it in more detail if you are interested.
KEDR framework allows you to analyse the kernel modules (device drivers,
filesystem modules, etc.) in runtime. The current version allows to detect
memory leaks and to simulate failures of memory allocation functions (as well as
other functions like capable(), etc.) to make the kernel module in question
execute the portions of the code it rarely executes.
You could look at our "Getting Started" tutorial
(http://kedr.berlios.de/kedr-doc/getting_started.html) to see what can be done
with KEDR there are simple examples there.
KEDR can be used standalone or in conjunction with some functional tests for the
kernel modules. If you need more information about KEDR, feel free to contact me.
Apart from our tools, there are of course several in-kernel facilities that can
aid in error detection - but this is another story.
On the other hand, if you are more interested in functional testing, well, I
would suggest you to look at the following projects:
- Autotest (http://autotest.kernel.org/) - a (semi-official) framework for
testing the Linux kernel
- Linux Test Project (LTP, http://ltp.sourceforge.net/) - a collection of tests
for various parts of the kernel including the drivers.
Regards,
Eugene
--
Eugene Shatokhin
Linux Verification Center, ISPRAS
web: http://www.linuxtesting.org
e-mail: [email protected]
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines