Re: the Linux kernel, testsuites, and maybe *you*

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Saturday, September 1, 2007 - 3:08 pm

"Mike Frysinger" <vapier.adi@gmail.com> writes:


Everybody does their own.


I would like to see this too. I wrote a couple of unit tests
during x86-64 development too and they would be handy
to have in a central place.

The SUSE kernel also has a crasher module that exercises the
allocators and is pretty useful to stress code in general.

Disadvantage is that test code tends to be hackish and ugly
and very specialized and will probably not pass standard review procedures.

Also the rt people seem to have pushed a couple of tests in already, 
but I always hated it that they're in the standard directories.
RCU also has, in fact they added a "eat all my CPU in tests"
CONFIG option. Just making that dependent on a CONFIG_UNIT_TESTS
would be a good change in itself. And then there are the slab
failure inducers of course.

BTW string functions are best tested in user space. That's
a relatively bad example.

-Andi
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
the Linux kernel, testsuites, and maybe *you*, Mike Frysinger, (Fri Aug 31, 2:22 pm)
Re: the Linux kernel, testsuites, and maybe *you*, Robin Getz, (Fri Aug 31, 11:14 pm)
Re: the Linux kernel, testsuites, and maybe *you*, Andi Kleen, (Sat Sep 1, 3:08 pm)
Re: the Linux kernel, testsuites, and maybe *you*, Mike Frysinger, (Sat Sep 1, 3:50 pm)
Re: the Linux kernel, testsuites, and maybe *you*, Mike Frysinger, (Sat Sep 1, 3:52 pm)
Re: the Linux kernel, testsuites, and maybe *you*, Bill Davidsen, (Sat Sep 1, 7:34 pm)
Re: the Linux kernel, testsuites, and maybe *you*, Mike Frysinger, (Sat Sep 1, 8:44 pm)
Re: the Linux kernel, testsuites, and maybe *you*, Andi Kleen, (Sat Sep 1, 11:59 pm)
Re: the Linux kernel, testsuites, and maybe *you*, Mike Frysinger, (Sun Sep 2, 8:15 am)
Re: the Linux kernel, testsuites, and maybe *you*, Andi Kleen, (Sun Sep 2, 8:43 am)
Re: the Linux kernel, testsuites, and maybe *you*, Håvard Skinnemoen, (Sun Sep 2, 11:20 am)
Re: the Linux kernel, testsuites, and maybe *you*, Bill Davidsen, (Mon Sep 3, 6:37 am)
Re: the Linux kernel, testsuites, and maybe *you*, Robin Getz, (Tue Sep 4, 7:41 am)
Re: the Linux kernel, testsuites, and maybe *you*, Mike Frysinger, (Tue Sep 4, 8:05 am)
Re: the Linux kernel, testsuites, and maybe *you*, Mike Frysinger, (Wed Sep 5, 10:51 am)