aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJacob Bachmeyer <jcb62281+dev@gmail.com>2020-07-06 21:04:07 -0500
committerJacob Bachmeyer <jcb62281+dev@gmail.com>2020-07-06 21:04:07 -0500
commit376dacc26259cbd61860d58a3ec16099d5b7581f (patch)
tree7a39a88df6cae6513a3592b55b164422c5aa6b00 /doc
parente572af7e43e26162a717408c2464cad24c936d07 (diff)
parent8c750f7449bd33cb8952e8ddbb3cc5cecaa05bb3 (diff)
downloaddejagnu-376dacc26259cbd61860d58a3ec16099d5b7581f.zip
dejagnu-376dacc26259cbd61860d58a3ec16099d5b7581f.tar.gz
dejagnu-376dacc26259cbd61860d58a3ec16099d5b7581f.tar.bz2
Merge branch 'new-api-for-1.6.3'
Conflicts: ChangeLog NEWS doc/dejagnu.texi
Diffstat (limited to 'doc')
-rw-r--r--doc/dejagnu.texi68
1 files changed, 65 insertions, 3 deletions
diff --git a/doc/dejagnu.texi b/doc/dejagnu.texi
index fa03a07..85b2f58 100644
--- a/doc/dejagnu.texi
+++ b/doc/dejagnu.texi
@@ -2600,6 +2600,7 @@ DejaGnu provides these Tcl procedures.
* verbose Procedure: verbose procedure
* load_lib Procedure: load_lib procedure
* testsuite Procedure: testsuite procedure
+* testcase procedure: testcase procedure
@end menu
@node open_logs procedure, close_logs procedure, , Core Internal Procedures
@@ -3181,7 +3182,7 @@ lappend libdirs $srcdir/../../gcc/testsuite/lib
load_lib foo.exp
@end example
-@node testsuite procedure, , load_lib procedure, Core Internal Procedures
+@node testsuite procedure, testcase procedure, load_lib procedure, Core Internal Procedures
@subsubheading testsuite Procedure
@findex testsuite
@@ -3234,6 +3235,67 @@ implied by the returned value will exist upon return. Implied
directories are created in the object tree if needed. An error is
raised if an implied directory does not exist in the source tree.
+@subsubheading testsuite can call api
+
+The @code{testsuite can call api} command is a feature test and
+returns a boolean value indicating if a subcommand under a multiplex
+point is available. This API call is needed because only the
+multiplex points themselves are visible to the Tcl info command.
+
+@quotation
+@t{ @b{testsuite can call api} @i{feature}... }
+@end quotation
+
+Any number of words are joined together into a single name, beginning
+with a multiplex entry point and forming the full name of an API call
+as documented in this manual.
+
+@node testcase procedure, , testsuite procedure, Core Internal Procedures
+@subsubheading testcase Procedure
+
+The @code{testcase} procedure is a multiplex call for retrieving or
+providing information about the state of the testing process.
+
+@subsubheading testcase group
+
+The @code{testcase group} command provides support for grouping tests
+into hierarchical groups within a test script.
+
+Group names are internally tracked as Tcl lists, but are reported as
+strings delimited using forward slash (@samp{/}) characters.
+Individual name elements may not contain whitespace, but may contain
+forward slash. A group entered by traversing intermediate levels must
+be left by traversing those same levels. Groups must properly nest.
+
+There are three uses:
+
+@quotation
+@t{ @b{testcase group}}
+@end quotation
+
+Return the current group as a string delimited with forward slash
+(@samp{/}) characters.
+
+@quotation
+@t{ @b{testcase group begin} @i{name}}
+@end quotation
+@quotation
+@t{ @b{testcase group end} @i{name}}
+@end quotation
+
+These forms allow a group to be explicitly entered and left. The
+@i{name} parameter must be identical across a pair of these calls, and
+both the @code{begin} and @code{end} calls must be in the same file.
+
+@quotation
+@t{ @b{testcase group eval} @i{name} @{@i{code}@}}
+@end quotation
+
+This form is available to wrap the @code{begin} and @code{end} calls
+around the execution of the provided @i{code}. This form is preferred
+for convenience in top-level scripts, but the @code{begin} and
+@code{end} calls are preferred in helper procedures for performance.
+
@node Procedures For Remote Communication, connprocs, Core Internal Procedures, Built-in Procedures
@section Procedures For Remote Communication
@@ -5900,5 +5962,5 @@ This makes @code{runtest} exit. Abbreviation: @kbd{q}.
@c LocalWords: subdirectory prepend prepended testsuite filename Expect's svn
@c LocalWords: DejaGnu CVS RCS SCCS prepending subcommands Tcl Awk Readline
-@c LocalWords: POSIX KFAIL KPASS XFAIL XPASS hostname multitable gfortran
-@c LocalWords: rustc executables
+@c LocalWords: POSIX KFAIL KPASS XFAIL XPASS hostname multitable gfortran api
+@c LocalWords: boolean subcommand testcase eval rustc executables