You can create and run tests to verify generated code, hand-written code, as well code generated in a previous release. You can also use the MATLAB Unit Test framework to test models and code.
You can test custom C or C++ code by importing it into Simulink® using the Code Importer wizard in the Test Manager or API commands at the MATLAB® command line.
Test code integrated in a Simulink model using C Caller blocks or S-Functions.
Test integration with MATLAB test scripts.
Use generated code that was verified using SIL or PIL in a previous release to verify code in current release.
Perform code generation verification for a model.
Order in which models load, and test cases, iterations, and callbacks run.