Services and Modeling for Embedded Software Development
Embecosm divider strip
Prev  Next

Chapter 4.  Using DejaGnu standalone

To run a DejaGnu test framework standalone is straightforward.

  1. Create a directory structure for the test framework (see Section 2.3).

  2. Write any test programs and compile them.

  3. Write tests in expect and place them in the tool specific test directory (or directories) (see Chapter 3)

  4. Place any TCL support procedures for the tests in the tool specific configuration file (see Section 2.4 and Section 3.3.1).

  5. Run runtest, specifying the source directory and tool name.

This sequence of steps can easily be captured in either a script file, or a hand-written make file.

Embecosm divider strip