This project demonstrates testing with SIL (Visual Studio or GCC), MIL (Simulink), or PIL (ARM or PPC). The same TestCases are used regardless of the type of SUT.
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: SIL with MxVMC and Visual Studio •A supported version of Visual Studio is required to compile or modify the SUT (MxVMC) code. You can run the test without Visual Studio. •By default, this SUT uses RapiCover code coverage. Code coverage can be disabled if desired. See RapiCover. SIL with GCC •MxSuite 3.42 or higher is required to use a GCC compiler with your SUT. •To install GCC, see MxVMC - The Virtual MicroController. MIL •A licensed copy of a supported version of Matlab Simulink is required to run the MIL test. PIL •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. |