[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <p733axyxcli.fsf@bingen.suse.de>
Date: 02 Sep 2007 00:08:57 +0200
From: Andi Kleen <andi@...stfloor.org>
To: "Mike Frysinger" <vapier.adi@...il.com>
Cc: "Linux Kernel" <linux-kernel@...r.kernel.org>
Subject: Re: the Linux kernel, testsuites, and maybe *you*
"Mike Frysinger" <vapier.adi@...il.com> writes:
> is there any sort of standard for testing and integration into
> mainline ?
Everybody does their own.
> in the Blackfin world, we've been developing little
> external kernel modules and adding them to our own testsuite, but
> often times these things are not Blackfin specific. case in point,
> we're integrating a string testsuite to make sure all of the fun str*
> and mem* functions are sane and operate as they expected, but rather
> than having just Blackfin benefit here, i'd like to see this pushed
> upstream ...
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists