How is the Linux kernel or programs written in C tested?

Asked

Viewed 170 times

5

When we use Java, we use Junit to test codes. But codes written in C, such as kernel Linux, how it is tested?

1 answer

4


In thesis one can use any test methodology and any tool that helps this process in C can be used.

In Java you use Junit, other programmers use something else.

As far as I know Autotest is used by the Linux Kernel development community.

From the information I read there are independent testing initiatives also, some well organized, such as the Linux Test Project.

In addition the community is very active and is not always used a very formal methodology as occurs in certain projects.

In some types of projects by themselves and by the type of programmer involved, formal testing becomes less necessary. Do not expect that you have a formal group that is responsible for testing any changes sent to the repository. Linux is a project that shows that more emphasis is placed on testing than it should be. A project so complex and that it has reputation of quality it turns out well without ostensible tests.

Looking on the other hand, some types of design are even suitable for unit testing.

Some tools for C unit testing:

Browser other questions tagged

You are not signed in. Login or sign up in order to post.