Services and Modeling for Embedded Software Development
Embecosm divider strip
  Next

Howto: Using DejaGnu for Testing

A Simple Introduction

Jeremy Bennett

Embecosm

Application Note 8. Issue 1

April 2010


Table of Contents

1. Introduction
1.1. Target Audience
1.2. Further information
1.3. About Embecosm Application Notes
2. Overview of DejaGnu
2.1. The runtest command
2.2. The expect language
2.3. A typical test framework directory structure
2.4. DejaGnu configuration files
3. Writing tests using expect
3.1. Test results
3.2. The expect command
3.2.1. Patterns for use with the expect command
3.3. An example test
3.3.1. Automating testing
4. Using DejaGnu standalone
5. Using DejaGnu with autoconf, automake and libtool
5.1. The configure.ac file
5.2. Makefile.am files
5.3. Fine tuning autoconf and automake with DejaGnu
5.3.1. Example: Short test names.
Glossary
References
Embecosm divider strip