Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided also that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions. DejaGnu is a framework for testing other programs. Its purpose is to provide a single front end for all tests. DejaGnu provides a layer of abstraction which allows you to write tests that are portable to any host or target where a program must be tested.
All tests have the same output format.
This makes it easy to integrate testing into other software development processes. Tests are usually written in expect using Tcl, but you can also use a Tcl script to run a test suite that is not based on expect . Running existing tests To run tests from an existing collection, first use configure as usual to set up the source directory containing the tests. When you have a cross configuration, the tests run on a different computer, controlled by the host running runtest . By default, runtest prints only the names of the tests it runs, output from any tests that have unexpected results, and a summary showing how many tests passed and how many failed.