* gdbint.texinfo (Testsuite): Add a new section to document the
authorDoug Evans <dje@google.com>
Fri, 5 Feb 2010 18:30:44 +0000 (18:30 +0000)
committerDoug Evans <dje@google.com>
Fri, 5 Feb 2010 18:30:44 +0000 (18:30 +0000)
various DejaGnu variables that may be overridden.

gdb/doc/ChangeLog
gdb/doc/gdbint.texinfo

index b90906aa0023d0908ef532554c70a5ab5460b66f..20c8b392eda5d1770b569d522d96cfd1e51a9a13 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-05  Doug Evans  <dje@google.com>
+
+       * gdbint.texinfo (Testsuite): Add a new section to document the
+       various DejaGnu variables that may be overridden.
+
 2010-02-04  Tom Tromey  <tromey@redhat.com>
 
        PR cli/8830:
index 347c86029001a87e11226677c346af5ec8b11f9d..44e652a2dc586b043129e5692fafc4cca6d4550e 100644 (file)
@@ -7599,6 +7599,14 @@ will give a result of ``UNRESOLVED'', like this:
 UNRESOLVED: gdb.base/example.exp: This test script does not work on a remote host.
 @end smallexample
 
+@section Testsuite Parameters
+
+Several variables exist to modify the behavior of the testsuite.
+
+@itemize @bullet
+
+@item @code{TRANSCRIPT}
+
 Sometimes it is convenient to get a transcript of the commands which
 the testsuite sends to @value{GDBN}.  For example, if @value{GDBN}
 crashes during testing, a transcript can be used to more easily
@@ -7620,6 +7628,44 @@ make check RUNTESTFLAGS=TRANSCRIPT=y
 Note that the transcript is not always complete.  In particular, tests
 of completion can yield partial command lines.
 
+@item @code{GDB}
+
+Sometimes one wishes to test a different @value{GDBN} than the one in the build
+directory.  For example, one may wish to run the testsuite on
+@file{/usr/bin/gdb}.
+
+@smallexample
+make check RUNTESTFLAGS=GDB=/usr/bin/gdb
+@end smallexample
+
+@item @code{GDBSERVER}
+
+When testing a different @value{GDBN}, it is often useful to also test a
+different gdbserver.
+
+@smallexample
+make check RUNTESTFLAGS="GDB=/usr/bin/gdb GDBSERVER=/usr/bin/gdbserver"
+@end smallexample
+
+@end itemize
+
+There are two ways to run the testsuite and pass additional parameters
+to DejaGnu.  The first is with @kbd{make check} and specifying the
+makefile variable @samp{RUNTESTFLAGS}.
+
+@smallexample
+make check RUNTESTFLAGS=TRANSCRIPT=y
+@end smallexample
+
+The second is to cd to the @file{testsuite} directory and invoke the DejaGnu
+@command{runtest} command directly.
+
+@smallexample
+cd testsuite
+make site.exp
+runtest TRANSCRIPT=y
+@end smallexample
+
 @section Testsuite Organization
 
 @cindex test suite organization
This page took 0.034425 seconds and 4 git commands to generate.