From a2c66a5e8321016df4701484fce9bc750a5a7205 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Tue, 3 Feb 2004 14:41:25 +0000 Subject: * doc/overview.sgml (revhistory): Update. (install): Fold in top-level sections "obtaining" and "installation" from ref.sgml. * doc/user.sgml: Shuffle some chapters and top-level sections about to make better structural sense. * doc/ref.sgml (reference): Rename to "Library Reference". (reference): Remove "obtaining" and "installation" sections. Remove "filemap" section. (unittestapi): Fold the contents of this chapter into the Unit Testing chapter. (appendix): New. --- ChangeLog | 14 + doc/overview.sgml | 130 ++- doc/ref.sgml | 310 +----- doc/user.sgml | 3224 ++++++++++++++++++++++++++++------------------------- 4 files changed, 1829 insertions(+), 1849 deletions(-) diff --git a/ChangeLog b/ChangeLog index c989465..e350872 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2004-02-04 Ben Elliston + + * doc/overview.sgml (revhistory): Update. + (install): Fold in top-level sections "obtaining" and + "installation" from ref.sgml. + * doc/user.sgml: Shuffle some chapters and top-level sections + about to make better structural sense. + * doc/ref.sgml (reference): Rename to "Library Reference". + (reference): Remove "obtaining" and "installation" sections. + Remove "filemap" section. + (unittestapi): Fold the contents of this chapter into the Unit + Testing chapter. + (appendix): New. + 2004-02-04 Ben Elliston * doc/overview.sgml (dejagnu-copyright): Update copyright year. diff --git a/doc/overview.sgml b/doc/overview.sgml index 1ab59c6..5ca5e2d 100644 --- a/doc/overview.sgml +++ b/doc/overview.sgml @@ -89,28 +89,34 @@ into another language, under the above conditions for modified versions. + + 0.7 + 2004-02-02 + bje + So much restructuring it's not funny .. + 0.6.2 - 2002-7-16 - rob@welcomehome.org + 2002-07-16 + rob Add new tutorial as a new chapter. 0.6.1 - 2001-2-16 - rob@welcomehome.org + 2001-02-16 + rob Add info on the new dejagnu.h file. 0.6 - 2001-2-16 - rob@welcomehome.org + 2001-02-16 + rob Updated for new release. 0.5 - 2000-1-24 - rob@welcomehome.org + 2000-01-24 + rob Initial version after conversion to DocBook. @@ -137,7 +143,7 @@ into another language, under the above conditions for modified versions. Introduction - What is &dj; ? + What is &dj;? &dj; is a framework for testing other programs. Its purpose is to provide a uniform @@ -455,10 +461,108 @@ into another language, under the above conditions for modified versions. Installation - - Foo - Foo. - + + + Obtaining DejaGnu + + You can obtain DejaGnu from the DejaGnu web site at the + Free Software Foundation, + which is at www.gnu.org/software/dejagnu/ + + + + + Installation + + Once you have the DejaGnu source unpacked and available, you must + first configure the software to specify where it is to run (and the + associated defaults); then you can proceed to installing it. + + + Configuring DejaGnu + + It is usually best to configure in a directory separate from the + source tree, specifying where to find the source with the optional + --srcdir option to + configure. DejaGnu uses the GNU + autoconf to configure itself. For more info on using + autoconf, read the GNU autoconf manual. To configure, execute the + configure program, no other options are + required. For an example, to configure in a seperate tree for objects, + execute the configure script from the source tree like this: + + + ../dejagnu-&version/configure + + + DejaGnu doesn't care at config time if it's for testing a native + system or a cross system. That is determined at runtime by using the + config files. + + You may also want to use the configure option + --prefix to specify where you want DejaGnu and its + supporting code installed. By default, installation is in subdirectories + of /usr/local, but you can select any alternate + directory altdir by including + {altdir}} on the + configure command line. (This value is captured in + the Makefile variables prefix and + execprefix}.) + + Save for a small number of example tests, the DejaGnu distribution + itself does not include any testsuites; these are available + separately. Testsuites for the GNU development tools are included in + those releases. After configuring the top-level DejaGnu directory, unpack + and configure the test directories for the tools you want to test; then, + in each test directory, run make check to build + auxiliary programs required by some of the tests, and run the test + suites. + + + + + Installing DejaGnu + + To install DejaGnu in your filesystem (either in + /usr/local, or as specified by your + --prefix option to configure), + execute. + + + eg$ make install + + + make installdoes thes things for + DejaGnu: + + + Look in the path specified for executables + $exec_prefix) for directories called + lib and bin. If these + directories do not exist, make install creates + them. + + Create another directory in the + share directory, called + dejagnu, and copy all the library files into + it. + + Create a directory in the + dejagnu/share directory, called + config, and copy all the configuration files into + it. + + Copy the runtest shell script into + $exec_prefix/bin. + + Copy runtest.exp into + $exec_prefix/lib/dejagnu. This is the main Tcl + code implementing DejaGnu. + + + + diff --git a/doc/ref.sgml b/doc/ref.sgml index 2fa363a..928ae05 100644 --- a/doc/ref.sgml +++ b/doc/ref.sgml @@ -1,113 +1,8 @@ - Reference - - - Obtaining DejaGnu - - You can obtain DejaGnu from the DejaGnu web site at the - Free Software Foundation, - which is at www.gnu.org/software/dejagnu/ - - - - - - Installation - - Once you have the DejaGnu source unpacked and available, you must - first configure the software to specify where it is to run (and the - associated defaults); then you can proceed to installing it. - - - Configuring DejaGnu - - It is usually best to configure in a directory separate from the - source tree, specifying where to find the source with the optional - --srcdir option to - configure. DejaGnu uses the GNU - autoconf to configure itself. For more info on using - autoconf, read the GNU autoconf manual. To configure, execute the - configure program, no other options are - required. For an example, to configure in a seperate tree for objects, - execute the configure script from the source tree like this: - - - ../dejagnu-&version/configure - - - DejaGnu doesn't care at config time if it's for testing a native - system or a cross system. That is determined at runtime by using the - config files. - - You may also want to use the configure option - --prefix to specify where you want DejaGnu and its - supporting code installed. By default, installation is in subdirectories - of /usr/local, but you can select any alternate - directory altdir by including - {altdir}} on the - configure command line. (This value is captured in - the Makefile variables prefix and - execprefix}.) - - Save for a small number of example tests, the DejaGnu distribution - itself does not include any testsuites; these are available - separately. Testsuites for the GNU development tools are included in - those releases. After configuring the top-level DejaGnu directory, unpack - and configure the test directories for the tools you want to test; then, - in each test directory, run make check to build - auxiliary programs required by some of the tests, and run the test - suites. + Library Reference - - - - Installing DejaGnu - - To install DejaGnu in your filesystem (either in - /usr/local, or as specified by your - --prefix option to configure), - execute. - - - eg$ make install - - - make installdoes thes things for - DejaGnu: - - - Look in the path specified for executables - $exec_prefix) for directories called - lib and bin. If these - directories do not exist, make install creates - them. - - Create another directory in the - share directory, called - dejagnu, and copy all the library files into - it. - - Create a directory in the - dejagnu/share directory, called - config, and copy all the configuration files into - it. - - Copy the runtest shell script into - $exec_prefix/bin. - - Copy runtest.exp into - $exec_prefix/lib/dejagnu. This is the main Tcl - code implementing DejaGnu. - - - - - - - Builtin Procedures - - DejaGnu provides these Tcl procedures. + + Internal Procedures Core Internal Procedures @@ -4227,198 +4122,23 @@ - - - - - File Map - - This is a map of the files in DejaGnu. - - - runtest - runtest.exp - stub-loader.c - testglue.c - config - baseboards - lib/debugger.exp - lib/dg.exp - lib/framework.exp - lib/ftp.exp - lib/kermit.exp - lib/libgloss.exp - lib/mondfe.exp - lib/remote.exp - lib/rlogin.exp - lib/rsh.exp - lib/standard.exp - lib/target.exp - lib/targetdb.exp - lib/telnet.exp - lib/tip.exp - lib/util-defs.exp - lib/utils.exp - lib/xsh.exp - lib/dejagnu.exp - - - - + - - Unit Testing API - - - C Unit Testing API - - All of the functions that take a - msg parameter use a C char * that is - the message to be dislayed. There currently is no support for - variable length arguments. - - - - Pass Function - - This prints a message for a successful test - completion. - - - pass - msg - - - - - - Fail Function - - This prints a message for an unsuccessful test - completion. - - - fail - msg - - - - - - Untested Function - - This prints a message for an test case that isn't run - for some technical reason. - - - untested - msg - - - - - Unresolved Function - - This prints a message for an test case that is run, - but there is no clear result. These output states require a - human to look over the results to determine what happened. - - - - unresolved - msg - - - - - Totals Function - - This prints out the total numbers of all the test - state outputs. - - - totals - - - - - - - - C++ Unit Testing API - - All of the methods that take a - msg parameter use a C char * - or STL string, that is the message to be - dislayed. There currently is no support for variable - length arguments. - - - Pass Method - - This prints a message for a successful test - completion. - - - TestState::pass - msg - - - - - Fail Method - - This prints a message for an unsuccessful test - completion. - - - TestState::fail - msg - - - - - Untested Method - - This prints a message for an test case that isn't run - for some technical reason. - - - TestState::untested - msg - - - - - Unresolved Method + + Appendix + Reporting Bugs Blah. + Tcl/Tk and Expect Resources Blah. - This prints a message for an test case that is run, - but there is no clear result. These output states require a - human to look over the results to determine what happened. - + - +