diff options
author | Doug Evans <dje@google.com> | 2010-02-05 21:51:38 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2010-02-05 21:51:38 +0000 |
commit | 1be008824d66029ec5d7c1f1a32b25305dc50afa (patch) | |
tree | e2bd085d7c2a9c42b113e8bbb1aa11cd93f90e58 /gdb/doc/gdbint.texinfo | |
parent | 82856980164673e7d71180ff67f14d96190b2b3c (diff) | |
download | gdb-1be008824d66029ec5d7c1f1a32b25305dc50afa.zip gdb-1be008824d66029ec5d7c1f1a32b25305dc50afa.tar.gz gdb-1be008824d66029ec5d7c1f1a32b25305dc50afa.tar.bz2 |
testsuite/
* lib/gdb.exp (INTERNAL_GDBFLAGS): Don't override value provided by
user.
doc/
* gdbint.texinfo (Testsuite): Document INTERNAL_GDBFLAGS.
Diffstat (limited to 'gdb/doc/gdbint.texinfo')
-rw-r--r-- | gdb/doc/gdbint.texinfo | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo index 44e652a..c90af05 100644 --- a/gdb/doc/gdbint.texinfo +++ b/gdb/doc/gdbint.texinfo @@ -7647,6 +7647,33 @@ different gdbserver. make check RUNTESTFLAGS="GDB=/usr/bin/gdb GDBSERVER=/usr/bin/gdbserver" @end smallexample +@item @code{INTERNAL_GDBFLAGS} + +When running the testsuite normally one doesn't want whatever is in +@file{~/.gdbinit} to interfere with the tests, therefore the test harness +passes @option{-nx} to @value{GDBN}. One also doesn't want any windowed +version of @value{GDBN}, e.g., @command{gdbtui}, to run. +This is achieved via @code{INTERNAL_GDBFLAGS}. + +@smallexample +set INTERNAL_GDBFLAGS "-nw -nx" +@end smallexample + +This is all well and good, except when testing an installed @value{GDBN} +that has been configured with @option{--with-system-gdbinit}. Here one +does not want @file{~/.gdbinit} loaded but one may want the system +@file{.gdbinit} file loaded. This can be achieved by pointing @code{$HOME} +at a directory without a @file{.gdbinit} and by overriding +@code{INTERNAL_GDBFLAGS} and removing @option{-nx}. + +@smallexample +cd testsuite +HOME=`pwd` runtest \ + GDB=/usr/bin/gdb \ + GDBSERVER=/usr/bin/gdbserver \ + INTERNAL_GDBFLAGS=-nw +@end smallexample + @end itemize There are two ways to run the testsuite and pass additional parameters |