Click here to download the project: https://github.com/DanlawMxTeam/Samples/raw/master/SIL-MIL-PIL.rar
Each type of test has its own requirements:
•By default, this SUT uses RapiCover code coverage. Code coverage can be disabled if desired. See RapiCover.
•MxSuite 3.42 or higher is required to use a GCC compiler with your SUT.
•To install GCC, see MxVMC - The Virtual MicroController.
•A licensed copy of a supported version of Matlab Simulink is required to run the MIL test.
•For the requirements to run a PIL test, see PIL.
There are 5 harness (.mxform) files provided with the project:
Use the Harness Setting tab in the Project Settings to select the appropriate harness file for your test:
All the Scenarios and TestCases exercise the Cruise Control simulation. The purpose is to show that the results are the same regardless of the selected Harness (SUT).
1.Select the Harness for the test you want to run.
Note: It may be necessary to recompile the SUT. If using Visual Studio, see Retargeting.
2.Open any one of the Scenarios in the Project Explorer.
3.Click the run button to run the test.
All the TestCases should pass unless modified. Repeat these steps to run with another Harness.