このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
生成コードのテスト
統合コード、C コード、以前のリリースのコードについてのテストの実行
生成コード、手書きコード、および以前のリリースで生成されたコードを検証するテストを作成して実行できます。MATLAB ユニット テスト フレームワークを使用してモデルとコードをテストすることもできます。
関数
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 |
トピック
- 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.
- MATLAB ユニット テストを使用したモデルのテスト
MATLAB テスト スクリプトとのテストの統合。
- 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.
- テストの実行順序
モデルが読み込まれ、テスト ケース、反復、およびコールバックが実行される順序。
