-
Notifications
You must be signed in to change notification settings - Fork 551
Creating Test kernels
This doc assumes you have the devkit installed and are able to run the normal test cases.
Adding your own test case is as simple as adding your own project under the Tests > Compiler folder (in your solution explorer), and using the userkit new 'C# Operating System' template. Then add a reference to TestRunner. To make it work as a test kernel, do whatever you like, and add assertion(s) via Cosmos.TestRunner.Assert
, and tell the main tester program when you are done by adding TestController.Completed();
at the end of the overrided Run()
function, or any (and all) other exit point(s).
While extra tests are better than none, you should explore already created ones, so that if you find a bug relating to an already created one that it doesn't test for, add it there instead of creating a whole new kernel.