Difference between revisions of "SL2TVEC Test Driver Issues"

From T-VEC Wiki
Jump to: navigation, search
Line 17: Line 17:
 
*Copy Generated LDRA .tcf file to code directory
 
*Copy Generated LDRA .tcf file to code directory
 
*Execute LDRA
 
*Execute LDRA
*Load New File
+
*Load Code File
*Load New Test Sequence
+
*Invoke TBrun and Load New Test Sequence
 
*Add necessary Pre/Post includes
 
*Add necessary Pre/Post includes
  
Line 59: Line 59:
 
   <rtZCEStruct> - defines the localZCE variable relating to triggers
 
   <rtZCEStruct> - defines the localZCE variable relating to triggers
  
==
+
===Build Test Drivers===
 +
The referenced schema produces a .tcf file in the test_drivers directory. If the particular subsystem is related to a state chart, then those dependent subsystems are include in the parent's .tcf file. This allows one file to be executed for verification of test coverage. The reference to a dependent subsystem is defined by the user-defined variable dependencies as shown in the following example.
 +
 
 +
<dependencies> = '__triggerRisingB,signal_light__sf__a';
 +
 
 +
===Execute LDRA===
 +
The LDRA tool provides a significant number of features. This description provides the following minimal steps to execute the generated LDRA script .tcf file against the generated code.
 +
 
 +
====Load Code File====
 +
The code is generated the auto generated code file that is the target of the test.
 +
 
 +
[[Image:LDRA_Select_File.png‎|Select the file to be tested]]
 +
 
 +
====Start TBrun and Load New Test Sequence
 +
This is where the generated .tcf file is loaded into TBrun. If you copied the .tcf file to the code directory. Load that .tcf file as the test sequence. Otherwise load it from the test drivers directory where it was produced by VGS.
 +
 
 +
Execute the Run Drivers command or execute the commands separately:
 +
*Generate Driver
 +
*Build Driver
 +
 
 +
If successful
 +
*Execute Driver
 +
*Process Driver Output
 +
 
 +
Note: during the Generate Driver process, you might see the following LDRA Question - Answer None:
 +
 
 +
[[Image:Answer_None.png‎|Answer None to LDRA Question]]
 +
 
 +
 
 +
====Pre/Post Includes might be necessary====

Revision as of 16:05, 24 February 2008