This topic explains how to configure and run static analysis on code that is designed to be compiled/built using Wind River Tornado compilers and/or written with the aid of Wind River Tornado IDE Wind River Tornado.

Since static analysis runs on pure code only, information and settings related to linking and running the test object are not relevant to this kind of testing. However you must have all compiler settings set properly (see Setting Target/Platform Dependent Options)

To perform static analysis:

  1. Select the Navigator node that represents the resource(s) you want to test (a single file, a selection of multiple files, or the entire project).
  2. Start the analysis in one of the following ways:
    • From the Parasoftmenu, choose Test Using> [Preferred  Test Configuration].
    • Open the pull-down menu for the Test Using toolbar button (this is a blue triangle), then choose your preferred static analysis test configuration.

After the analysis begins, C++test will collect the analysis options (for Makefile-based projects, this is done by scanning the Makefile; for other projects, this is done by scanning the appropriate files [e.g., project files]), calculate the scope of the analysis, and then start the static analysis. After the analysis is completed, the summary dialog and the static analysis results will display in the C++test output panel. You can now review and respond to results, as well as generate reports, as described in the following sections:

For more information on Static Analysis, see Static Code Analysis, and Flow Analysis.

  • No labels