La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.
Tests du code généré
Vous pouvez créer et exécuter des tests pour vérifier le code généré, le code manuel, ainsi que le code généré dans une version précédente. Vous pouvez également utiliser le MATLAB Unit Test Framework pour tester les modèles et le code.
Fonctions
sltest.CodeImporter | Import C or C++ code into Simulink for testing |
sltest.CodeImporter.SandboxSettings | Sandbox settings for C code testing |
createSandbox | Create sandbox for C code unit testing |
Rubriques
- Importing and Testing Custom C/C++ 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 Integrated Code
Test code integrated in a Simulink model using C Caller blocks or S-Functions.
- Test Models Using MATLAB Unit Test
Test integration with MATLAB test scripts.
- Use Back-to-Back Test to Verify Generated Code from an Earlier Release
Use generated code that was verified using SIL or PIL in a previous release to verify code in current release.
- Code Generation Verification Workflow with Simulink Test
Perform code generation verification for a model.
- Test Execution Order
Order in which models load, and test cases, iterations, and callbacks run.
