DejaGnu

DejaGnu
GNU DejaGnu
Developer(s) GNU Project
Stable release 1.5 / March 9, 2011; 8 months ago (2011-03-09)
Operating system Cross-platform
Platform GNU
Type Framework for testing
License GNU General Public License
Website http://www.gnu.org/software/dejagnu/

DejaGnu is a framework for testing other programs. It has a main script called runtest that goes through a directory looking at configuration files and then runs some tests with given criteria. The purpose of the DejaGnu package is to provide a single front end for all tests. It is a part of the GNU Project and is licensed under the GPL. It is based on Expect, which is in turn based on Tcl. The current maintainers are Rob Savoye and Ben Elliston.

Contents

Testing

DejaGnu has a very strong history in testing due to its Tcl base. Tcl is used extensively by companies such as Oracle and Sybase to test their products.[citation needed] DejaGnu allows this work to be much more structured.

The tests can be grouped according to the tool they are testing. The test is run by merely calling runtest in the root project directory.

 runtest --tool program_to_test

This will look in the testsuite directory for any folders starting with program_to_test and will run all .exp files in that folder.

Embedded design

One field for which DejaGnu is particularly well suited[citation needed] is that of embedded system design. It allows for testing to be done remotely on development boards; separate initialization files can be created for each operating system and board.[clarification needed] This mainly focuses on embedded targets and remote hosts. DejaGnu is thus popular with many GNU projects,[clarification needed] at universities, and for private companies.

Files

Essential Files

  • testsuite
    • Apache Each directory in testsuite should contain tests for a specific tool. In this example, the tool being tested is the Apache webserver.
      • Apache.test1.exp This will be the file containing tests, which in this fictional case might change configuration options, and then connect to the network and check to make sure the changes have taken effect.
    • config
      • unix.exp
    • lib
      • whois.exp This file will be run as a tool init file.

Other Files

  • site.exp This file is a directory specific configuration file for runtest. Options can be placed in this file rather than retyped on each invocation; these options can include any variable passed as a command line argument.
set tool Apache         #run tests on Apache
set srcdir ./testsuite  #look here for test files
set outdir ./logs       #save the logs in a separate directory
set all 1               #show results from all tests (rather than just ones with errors)
  • .dejagnurc This is a personal configuration file, which should be located in the user's home directory (~/.dejagnurc)
  • global_config.exp This is the first configuration file loaded. It can be named anything but must be pointed to by the $DEJAGNU environment variable (set when your terminal loads).

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • DejaGnu — Développeur Projet GNU Dernière version …   Wikipédia en Français

  • Linux From Scratch — Company / developer Gerard Beekmans et al. OS family Unix like Working state Current Source model Open source / Free Software Initial release …   Wikipedia

  • Liste des paquets GNU — Article principal : GNU. GNU N est pas Unix Cet article liste les paquets logiciels du système GNU maintenus par le projet GNU et soutenus par la Free Software Foundation. Sommaire …   Wikipédia en Français

  • Linux From Scratch — o LFS es un tipo de instalación del sistema operativo GNU/Linux y el nombre de un libro escrito por Gerard Beekmans junto a otros. El libro es una colección de documentos que indican los pasos para desarrollar un sistema GNU/Linux desde cero, a… …   Wikipedia Español

  • Expect — Infobox Software name = Expect author = Don Libes latest release version = 5.44.1 latest release date = January 31 2006 programming language = Tcl operating system = POSIX, Windows license = Public domain [cite web |… …   Wikipedia

  • Rob Savoye — is the primary developer of Gnash. He is a developer for the GNU project, having worked on Debian, Red Hat and dozens of other free/open source software projects. He was among the first employees of Cygnus Support, which was sold to Red Hat in… …   Wikipedia

  • FSF Award — Der FSF Award for the Advancement of Free Software ist eine seit 1998 von der Free Software Foundation (FSF) vergebene Auszeichnung an Personen, die sich um die Weiterentwicklung Freier Software verdient gemacht haben. Die Auszeichnung des Jahres …   Deutsch Wikipedia

  • Liste von Modultest-Software — Inhaltsverzeichnis 1 ABAP 2 C 3 C++ 4 Cobol 5 Delphi …   Deutsch Wikipedia

  • Linux From Scratch — Famille Systèmes Unix Licence Licence Creative Commons et Licence MIT Dernière version stable …   Wikipédia en Français

  • Non-régression — Pour les articles homonymes, voir Régression. La non régression concerne un type de tests effectués sur les logiciels. Sommaire 1 Définition 2 Difficulté …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”