Link Search Menu Expand Document

Due by 11:59 PM on Sunday, Oct 18

Project 2: Tests

You must adequately test your kernel changes to ensure that they work under all sorts of situations (including in error cases). You should build one or more testing drivers and include them in your sources submitted. Create a new directory in the Linux kernel tree called proj2tests to include your test case program(s). Be sure to include a Makefile to build them and instructions on how to run them in a plain-text README file within this directory. Your README for the test programs should also describe your general strategy for testing the system calls. Remember that testing is one of the primary jobs of a developer in the real world!

Your tests account for 10% of your project grade!

It is strongly suggested that you additionally build a separate program for each system call to be implemented to simply call that system call with user-provided arguments. For the data to be sent you might consider allowing the user to specify a file of data to send or a string on the command line. These programs will likely prove to be invaluable in debugging.

Do not create a test driver that is multithreaded or simulated parallel processing (extra credit excluded). Each user-space driver program is to be single threaded and “self contained” (i.e., not be dependent on another process to show “success” for the test).