TutorialSample Scenarios




Prev | Up | Next | Back | Forward | Online Documentation Home Page

Ada-Audit can be invoked either from a command line or from within Ada-ASSURED.

Scenario 1

Here is a typical command-line invocation:

What happens is:

Ada-ASSURED menu Tools/Ada-Audit/View contains commands for changing the view of the STYLE table. Ada-ASSURED menu Tools/Ada-Audit/Find invokes a command that restricts attention to a subset of the facts.

At any time while reviewing the database:

The Ada-Audit session is terminated by executing command exit (menu: File/Exit) from the Ada-ASSURED window.

Scenario 1 updates a persistent record of the STYLE table that is associated with the given library. If no Ada source files change between subsequent invocations of Scenario 1, the STYLE table will be up to date and will not need updating.

Scenario 2

The updating process of Scenario 1 requires time proportional to the number of files changed since the previous update. You may wish to do this updating periodically rather than on demand, as in Scenario 1.

The command-line invocation:

just updates the STYLE table to be consistent with respect to the current Ada source files, and omits invocation of the browsers. For example, you might wish to invoke this command nightly, or as part of a check-in process.

When the -update_only flag is used, Ada-ASSURED will be invoked in batch mode and no window will appear.

Scenario 3

Suppose you wish to review the database "as is" without performing an update. The command-line invocation: omits the updating and just loads whatever table resulted from the most recent update for the given library.

Senario 4

Instead of loading Ada-Audit with the facts for a whole library, you can view just the facts pertinent to a list of files. The command-line updates the STYLE table for files f1.a, f2.a, and f3.a, and displays the STYLE table with the facts associated with these files. The -view_only and -update_only options also work with a list of files.

Senario 5

If you have a long list of files to be audited, you may wish to list their paths in a separate file, one per line. The command-line updates the STYLE table for all files whose paths are given in file filelist, and displays the STYLE table with the facts associated with these files.

Senario 6

Audits can be invoked from within Ada-ASSURED by executing command audit-library-or-files (menu: Tools/Audit/Library or Files). If the audit of a library is requested, the default vendor information is based on Ada-ASSURED's compiler preferences (menu: Options/Compiler Preferences).

If a user is using Ada-ASSURED interactively, then performing an audit will use the running Ada-ASSURED process unless the -update_only flag is used.

Senario 7

Interactive users of Ada-ASSURED can set the STYLE table based on the contents of files currently in edit buffers:


Forward