[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
4. Setting runtest
defaults
The site configuration file, ‘site.exp’, captures
configuration-dependent values and propagates them to the DejaGnu test
environment using Tcl variables. This ties the DejaGnu test scripts
into the configure
and make
programs.
DejaGnu supports more than one ‘site.exp’ file. The multiple
instances of ‘site.exp’ are loaded in a fixed order built into
DejaGnu (the more local last). The first file loaded is the optional
~/.dejagnurc
, then the local files, and finally the global file.
-
There is am optional “master” ‘site.exp’, capturing configuration values
that apply to DejaGnu across the board, in each configuration-specific
subdirectory of the DejaGnu library directory.
runtest
loads these values first. See section Configuring and Installing DejaGnu. The master ‘site.exp’ contains the default values for all targets and hosts supported by DejaGnu. This master file is identified by setting the environment variableDEJAGNU
to the name of the file. This is also refered to as the “global” config file. -
Any directory containing a configured test suite also has a
‘site.exp’, capturing configuration values specific to the tool
under test. Since
runtest
loads these values last, the individual test configuration can either rely on and use, or override, any of the global values from the “master” ‘site.exp’.You can usually generate or update the testsuite ‘site.exp’ by typing ‘make site.exp’ in the test suite directory, after the test suite is configured.
-
You can also have a file in your home directory called
.dejagnurc
. This gets loaded first before the other config files. Usually this is used for personal stuff, like settingall_flag
so all the output gets printed, or verbosity levels.
You can further override the default values in a user-editable section
of any ‘site.exp’, or by setting variables on the runtest
command line.
4.0.1 Config Variables | Variables used in the configuration file. | |
4.0.2 Master Config File | The master configuration file. | |
4.0.3 Local Config File | The local configuration file. | |
4.0.4 Personal Config File | The personal configuration file. |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |