The DejaGnu Testing Framework
for DejaGnu Version 1.1
Nov 1993
Rob Savoye
What is DejaGnu?
Running existing tests
What does a DejaGnu test look like?
Design goals
A POSIX conforming test framework
Future directions
Tcl and Expect
Using
runtest
Setting
runtest
defaults
Configuration dependent values
Defaults for
runtest
options
The DejaGnu Implementation
Conventions for using tool names
Initialization module
DejaGnu procedures
Library procedures
Target dependent procedures
Remote targets supported
The files DejaGnu reads
The files DejaGnu writes
Summary log
Detailed log
Logging
expect
internal actions
How To Write a Test Case
Writing a test case
Debugging a test case
Adding a test case to a test suite
Hints on writing a test case
Special variables used by test cases
New Tools, Targets, or Hosts
Writing tests for a new tool
Adding a target
Porting to a new host
Expect: Programmed Dialogue
Introduction
Usage
Commands
Pretty-Printing
Examples
Caveats
Bugs
Expect Hints
Expect Bibliography
Acknowledgements
Tcl Overview
Introduction
Tcl Interpreters
Tcl Data Types
Basic Command Syntax
Comments
Grouping arguments with double-quotes
Grouping arguments with braces
Command substitution with brackets
Variable substitution with
$
Separating commands with semicolons
Backslash substitution
Command summary
Expressions
Lists
Regular expressions
Command results
Procedures
Variables: scalars and arrays
Built-in commands
Built-in variables
Acknowledgements
Installing DejaGnu
Configuring the DejaGnu test driver
Installing DejaGnu
Index