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

5

When we use Java language, we use JUnit to test the codes. But the codes written in C, like the Linux , how is it tested?

    
asked by anonymous 23.03.2015 / 20:41

1 answer

4

In theory you 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 the Autotest is used by the Linux Kernel development community.

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

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

In some project types per se and by the type of programmer involved, formal testing becomes less necessary. Do not expect a group that has a formal responsibility to test any changes sent to the repository. Linux is a project that shows that more emphasis is placed on testing than it should. Such a complex project that has a reputation for quality goes well without overt testing.

On the other hand, some project types are not even suitable for unit testing.

Some tools for unit testing in C:

23.03.2015 / 20:56