Professional Documents
Culture Documents
Dejagnu: PALANI RAJA.T (1630910032) RAGUNATH.S (1630910038)
Dejagnu: PALANI RAJA.T (1630910032) RAGUNATH.S (1630910038)
PALANI RAJA.T(1630910032)
RAGUNATH.S(1630910038)
ABSTRACT
• This document describes the functionality of
DejaGnu, the testing framework of the GNU project.
• DejaGnu is written in Expect, which uses Tcl as a
command language.
• Expect acts as a very programmable shell. As with
other Unix command shells, you can run any
program, but once the program is started, your test
script has programmable control over its input and
output. This does not just apply to the programs
under test; expect can also run any auxiliary
program, such as diff or sh, with full control over its
input and output.
OVERVIEW
What is DejaGnu ?
DejaGnu is a framework for testing other
programs. Its purpose is to provide a single front end
for all tests.
• Currently DejaGnu can use rsh, rlogin, telnet, tip, kermit and
mondfe for remote communications.
A POSIX CONFIRMING TEST FRAMEWORK
apt-get dejagnu
TEST THE INSTALLATION
RUNNING TESTS
2 ways:
1.Make check
2.Run test
-output states
Invoking Runtest
• --all [-a]
• --build [string]
• --host [string]
• --host_board [name]
• --target [string]
• --debug [-de]
• --help [-he]
• --ignore name[s]
CUSTOMISING DEJAGNU
1.$prms_id
2. $item bug_id
3. $subdir
4. $expect_out
5. $exec_output
6. $comp_output
ADVANTAGES
• The flexibility and consistency of the DejaGnu framework make it
easy to write tests for any program, with either batch oriented, or
interactive programs.
• Using Tcl and Expect, it's easy to create wrappers for existing
testsuites. By incorporating existing tests under DejaGnu, it's easier
to have a single set of report analyse programs.