diff options
author | Bernhard Reutner-Fischer <aldot@gcc.gnu.org> | 2013-06-17 19:22:10 +1000 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2013-06-17 19:22:10 +1000 |
commit | 5481f29161477520c691d525653323b82fa47ad7 (patch) | |
tree | a2b8516f22fc55175e4f2d512835a5f186189801 /doc/dejagnu.texi | |
parent | b97cf09cd7b79d87b4ecfa064657140e25a8958e (diff) | |
download | dejagnu-5481f29161477520c691d525653323b82fa47ad7.zip dejagnu-5481f29161477520c691d525653323b82fa47ad7.tar.gz dejagnu-5481f29161477520c691d525653323b82fa47ad7.tar.bz2 |
* runtest.exp (libdirs): New global variable.
(load_lib): Append libdirs to search_and_load_files directories.
* doc/ref.xml (load_lib): Document global variable libdirs.
* doc/dejagnu.texi: Regenerate.
* testsuite/runtest.all/load_lib.exp: New testcase.
* Makefile.am (TESTSUITE_FILES): Add new testcase.
* Makefile.in: Regenerate.
Signed-off-by: Ben Elliston <bje@gnu.org>
Diffstat (limited to 'doc/dejagnu.texi')
-rw-r--r-- | doc/dejagnu.texi | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/doc/dejagnu.texi b/doc/dejagnu.texi index f53291d..9e6c606 100644 --- a/doc/dejagnu.texi +++ b/doc/dejagnu.texi @@ -4257,7 +4257,8 @@ to print string without a trailing newline. Use the optional @node load_lib procedure, , verbose procedure, Core Internal Procedures @subsubsection Load_lib Procedure -Loads a DejaGnu library file by searching a fixed path built +Loads a DejaGnu library file by searching the default fixed paths +built into DejaGnu. If DejaGnu has been installed, it looks in a path starting with the installed library directory. If you are running DejaGnu directly from a source directory, without first running @@ -4279,6 +4280,20 @@ The name of the DejaGnu library file to load. @end table +The global variable @code{libdirs}, handled +as a list, is appended to the default fixed paths built +into DejaGnu. + +@strong{Additional search directories for load_lib} + +@example +# append a non-standard search path + global libdirs + lappend libdirs $srcdir/../../gcc/testsuite/lib + # now loading $srcdir/../../gcc/testsuite/lib/foo.exp works + load_lib foo.exp +@end example + @node Procedures For Remote Communication, connprocs, Core Internal Procedures, Builtin Procedures @subsection Procedures For Remote Communication |