From: Rob Savoye Date: Fri, 4 May 2001 15:42:43 +0000 (+0000) Subject: Add section on using dejagnu.h for unit testing. X-Git-Tag: upstream/1.6.2~604 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca94f15320ca1c1bd31020459f4751ab512b217c;p=platform%2Fupstream%2Fdejagnu.git Add section on using dejagnu.h for unit testing. --- diff --git a/doc/overview.sgml b/doc/overview.sgml index 32b4b2e..e358fee 100644 --- a/doc/overview.sgml +++ b/doc/overview.sgml @@ -4,7 +4,7 @@ - + &dj; The GNU Testing Framework - 2001 Feb 16 + 2001 May 2 &version - for circulation within Cygnus + New release Rob Savoye @@ -86,6 +86,12 @@ into another language, under the above conditions for modified versions. + 0.6.1 + 2001-2-16 + rob@welcomehome.org + Add info on the new dejagnu.h file. + + 0.6 2001-2-16 rob@welcomehome.org diff --git a/doc/ref.sgml b/doc/ref.sgml index 6e0c9f5..f8f0ea7 100644 --- a/doc/ref.sgml +++ b/doc/ref.sgml @@ -4252,12 +4252,119 @@ lib/util-defs.exp lib/utils.exp lib/xsh.exp + lib/dejagnu.exp + + Unit Testing + + + Unit Testing API + + For unit testing, you can use the dejagnu.h header file. + + + C Unit Testing API + + For C code, there is a C API. + + + Pass Method + + This prints a message for a successful test + completion. + msg. This is a C char * string that + is the message to be dislayed. + + + pass + msg + + + + + + C++ Unit Testing API + + + Pass Method + + This prints a message for a successful test + completion. + msg. This is a C char * string that + is the message to be dislayed. + + + TestState::pass + msg + + + + + Fail Method + + This prints a message for an unsuccessful test + completion. + msg. This is a C char * string that + is the message to be dislayed. + + + TestState::fail + msg + + + + + Untested Method + + This prints a message for an test case that isn't run + for some technical reason. + msg. This is a C char * string that + is the message to be dislayed. + + + TestState::untested + msg + + + + + Unresolved Method + + 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. + msg. This is a C char * string that + is the message to be dislayed. + + + TestState::unresolved + msg + + + + + Totals Method + + This prints out the total numbers of all the test + state outputs. + + + TestState::totals + + + + + + + + + +