LWN.net Logo

Mark Shuttleworth at LinuxTag

Mark Shuttleworth at LinuxTag

Posted Jun 17, 2010 16:57 UTC (Thu) by vonbrand (subscriber, #4458)
In reply to: Mark Shuttleworth at LinuxTag by nhippi
Parent article: Mark Shuttleworth at LinuxTag

It is anything but "simple" to write a proper test suite for something, plus it is boring detail work. It is really no wonder there are few and between test suites. The more extensive ones I've seen (e.g. for GCC) are mostly collected and cleaned up problem cases.


(Log in to post comments)

Mark Shuttleworth at LinuxTag

Posted Jun 20, 2010 20:17 UTC (Sun) by nix (subscriber, #2304) [Link]

It's actually quite easy to write white-box testsuites for parts of systems -- *if you do it when you write the code*. If you do it then, you *know* the edge cases you have to test in your coverage testcase, and you *know* the boundaries you want to wander up to in any fuzz tests -- so it's fairly easy to write them.

What's a total sod is trying to do the same when faced with a bunch of code you wrote ages ago and no longer remember anything about, or that you didn't write at all.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds