1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
5
>Global Config File</TITLE
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
12
HREF="book1.html"><LINK
14
TITLE="Customizing DejaGnu"
15
HREF="c848.html"><LINK
17
TITLE="Customizing DejaGnu"
18
HREF="c848.html"><LINK
20
TITLE="Board Config File"
21
HREF="x935.html"></HEAD
32
SUMMARY="Header navigation table"
41
>DejaGnu: The GNU Testing Framework</TH
51
><<< Previous</A
57
>Customizing DejaGnu</TD
65
>Next >>></A
79
>Global Config File</H1
81
>The master config file is where all the target specific
82
config variables for a whole site get set. The idea is
83
that for a centralized testing lab where people have to share a
84
target between multiple developers. There are settings for both
85
remote targets and remote hosts. Here's an example of a Master
86
Config File (also called the Global config file) for a
90
>. A canadian cross is when
91
you build and test a cross compiler on a machine other than the
92
one it's to be hosted on.</P
94
>Here we have the config settings for our California
95
office. Note that all config values are site dependant. Here we
96
have two sets of values that we use for testing m68k-aout cross
97
compilers. As both of these target boards has a different
98
debugging protocol, we test on both of them in sequence.</P
106
>Example 4. Global Config file</B
115
CLASS="PROGRAMLISTING"
116
> # Make sure we look in the right place for the board description files.
117
if ![info exists boards_dir] {
120
lappend boards_dir "/nfs/cygint/s1/cygnus/dejagnu/boards"
122
verbose "Global Config File: target_triplet is $target_triplet" 2
125
case "$target_triplet" in {
127
set target_list "unix"
130
set target_list "sparc64-sim"
133
set target_list "mips-sim wilma barney"
136
set target_list "mips-lsi-sim{,soft-float,el}"
139
set target_list { "sh-hms-sim" "bloozy" }
148
>In this case, we have support for several cross compilers,
149
that all run on this host. For testing on operating systems that
150
don't support Expect, DejaGnu can be run on the local build
151
machine, and it can connect to the remote host and run all the
152
tests for this cross compiler on that host. All the remote OS
153
requires is a working telnetd.</P
155
>As you can see, all one does is set the variable
159
> to the list of targets and options to
160
test. The simple settings, like for
164
> only require setting the name of
165
the single board config file. The <I
169
target is more complicated. Here it sets the list to three target
170
boards. One is the default mips target, and both
178
symbolic names for other mips boards. Symbolic names are covered
181
>Adding A New Board</A
182
> chapter. The more complicated
183
example is the one for <I
187
runs the tests with multiple iterations using all possible
188
combinations of the <TT
195
> (little endian) option. Needless to say,
196
this last feature is mostly compiler specific.</P
203
SUMMARY="Footer navigation table"
216
><<< Previous</A
234
>Next >>></A
242
>Customizing DejaGnu</TD
256
>Board Config File</TD
b'\\ No newline at end of file'