SPNU636 January   2020 RM42L432 , RM44L520 , RM44L920 , RM46L430 , RM46L440 , RM46L450 , RM46L830 , RM46L840 , RM46L850 , RM46L852 , RM48L530 , RM48L540 , RM48L730 , RM48L740 , RM48L940 , RM48L950 , RM48L952 , RM57L843 , TMS570LC4357 , TMS570LC4357-EP , TMS570LC4357-SEP , TMS570LS0332 , TMS570LS0432 , TMS570LS0714 , TMS570LS0714-S , TMS570LS0914 , TMS570LS1114 , TMS570LS1115 , TMS570LS1224 , TMS570LS1225 , TMS570LS1227 , TMS570LS2124 , TMS570LS2125 , TMS570LS2134 , TMS570LS2135 , TMS570LS3134 , TMS570LS3135 , TMS570LS3137 , TMS570LS3137-EP

 

  1.   Hercules Software Diagnostic Library CSP Without LDRA
    1.     Trademarks
    2. Introduction
    3. Software Requirements
    4. Software Diagnostic Library TAU Tool Restrictions
    5. Terminologies Used in Software Diagnostic Library TAU
      1. 4.1 What is Unit Testing?
      2. 4.2 What is a Test Sequence?
      3. 4.3 What is a TCF?
      4. 4.4 What is Code Coverage?
      5. 4.5 What is Regression Report?
    6. Functional Blocks of Software Diagnostic Library TAU
    7. Software Diagnostic Library TAU Test Flow
    8. Manual Settings to the LDRA Install Needed by the User
    9. Steps for Using the Software Diagnostic Library TAU
    10. Inputs to Software Diagnostic Library TAU
      1. 9.1 Device Selection
      2. 9.2 Target Configuration File
      3. 9.3 Build Options File
    11. 10 How to Add Individual Test Cases
    12. 11 Reports
      1. 11.1 Regression Report
      2. 11.2 Dynamic Coverage Analysis Report
    13. 12 FAQ

What is a Test Sequence?

A test sequence is a set of test cases, unit or functional (not both), targeted on a single c file. A test sequence is written in the form an Excel sheet listing the following:

  • Global declarations
  • Global code
  • Function tested in each test case
  • Input parameters for each test case
  • Pass or fail criteria for each test case
  • Variable declarations, startup code, and cleanup code for each test case

In addition for the traceability report generation, the following artifacts are also added for each test case:

  • Test case ID
  • Requirements covered by the test case

Each test sequence is converted to the TCF file, which is the actual input to the LDRA tool. Figure 1 shows an example of a test case in the sequence. See Section 10 for more information on how to write test cases.

excel_test_snap_SPNU615.pngFigure 1. Excel Test Case Snapshot

Each test case in a sequence does the following:

  • Runs any initialization code
  • Configures I/O variables
  • Invokes a single function with specified arguments
  • Captures any return values that are to be checked
  • Captures the value of any I/O variables that are to be checked
  • Runs any custom checks, such as checking execution time
  • Saves the results
  • Runs any cleanup code