The following section describes the options available on the Test Driver tab.
If the Enabled check box is selected, then the code generator will produce the code required for using the MicroC Test Driver. The Test Driver allows the running of scenarios whose input has been saved to file. The outputs can then be compared with the recorded outputs. Asynchronous/Sunchronous(The Test Driver can be run in either of these modes) The Test Driver is synchronized with the running application. When this method is used, the test-related data is read directly from the running application, and is executed immediately.
• Task
If this check box is selected, a call to the Test Driver dispatch function is generated in the task code frame.
• ISR
If this check box is selected, a call to the Test Driver dispatch function is generated in the ISR code frame.
• Level 1, Level 2
If Level 1 is selected, then the call to the Test Driver dispatch function is made after every task/ISR superstep.
If Level 2 is selected, then the call to the Test Driver dispatch function is made after every task/ISR step.The Test Driver is not synchronized with the running application. When this method is used, the data is read directly from the running application, but rather than being executed immediately, the test data is stored in a buffer which stores the data until the Test Driver Task is running.
• Generate Test Driver Function/Task
If this option is selected, the code generator generates a function calledTEST_DRIVER_TASK
which launches the Test Driver.
•
•
• This text box contains the name of the source code file for the Test Driver implementation. If you prefer to use Test Driver code that you have modified, type in the name of the appropriate source code file, or click ... to browse for the file. Use "Get Value" Functions If this option is selected, “get” functions will be generated for retrieving the values of elements that are being tested.These functions are not called in the default Test Driver implementation, but if you are using modified code, you can include calls to these functions.