Skip to content

Example Code

trentmeester edited this page Dec 13, 2011 · 2 revisions

The best place to begin looking at example code is to start in the tnvme/GrpBasicInit directory. In here you will find examples of most of the concepts discussed in this wiki. Start by looking at file grpBasicInit.{cpp | h} to understand how tests are associated with groups. Groups are basically containers for test cases. Test cases are those classes which developers will need to add to tnvme allowing the validation of the specification.

Further investigation should commence in the same directory viewing the remaining source code files. These remaining files are the individual tests cases which that group supports. Moreover, you might want to look at two methods within the *.cpp files. Specifically, RunCoreTest() is where each test case core logic resides. The constructor should also be viewed because it contains the documentation of that test case, its reason for existing, what specification it targets, etc.

Clone this wiki locally