Showing posts with label design-doc. Show all posts
Showing posts with label design-doc. Show all posts

Friday, September 14, 2012

Modularizing testers as independent binaries

While waiting for an approval to get Kyua into NetBSD (just sent the plan to the core team), I have started to think about how to implement a highly desired feature: that is, the parallel execution of test cases.

Theoretically, this should be relatively simple in most cases because test cases are independent entities and because they are run in an isolated manner precisely to allow this. However, the current implementation of the test case isolation makes this very hard — or rather, extremely hard to get right — as all the logic would be in a single process and would require threads.

I have written a more detailed exposition of the problems to solve and the idea that is floating my mind in the new TestersDesign wiki page. Please take a look!

(Alright, alright: sincerely speaking, the major reason I am considering this restructuration right now is because the new code could be easily written in C and a lot of C++ code could be dropped from Kyua... which could be a major selling point for NetBSD users. But it's true that such a design could make the whole implementation clearer and the addition of parallel execution of tests much simpler!)