~ubuntu-branches/ubuntu/saucy/dejagnu/saucy

« back to all changes in this revision

Viewing changes to doc/html/x916.html

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Jacobowitz
  • Date: 2004-02-09 15:07:58 UTC
  • Revision ID: james.westby@ubuntu.com-20040209150758-oaj7r5zrop60v8sb
Tags: upstream-1.4.4
ImportĀ upstreamĀ versionĀ 1.4.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
 
2
<HTML
 
3
><HEAD
 
4
><TITLE
 
5
>Global Config File</TITLE
 
6
><META
 
7
NAME="GENERATOR"
 
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
 
9
"><LINK
 
10
REL="HOME"
 
11
TITLE="DejaGnu"
 
12
HREF="book1.html"><LINK
 
13
REL="UP"
 
14
TITLE="Customizing DejaGnu"
 
15
HREF="c848.html"><LINK
 
16
REL="PREVIOUS"
 
17
TITLE="Customizing DejaGnu"
 
18
HREF="c848.html"><LINK
 
19
REL="NEXT"
 
20
TITLE="Board Config File"
 
21
HREF="x935.html"></HEAD
 
22
><BODY
 
23
CLASS="SECT1"
 
24
BGCOLOR="#FFFFFF"
 
25
TEXT="#000000"
 
26
LINK="#0000FF"
 
27
VLINK="#840084"
 
28
ALINK="#0000FF"
 
29
><DIV
 
30
CLASS="NAVHEADER"
 
31
><TABLE
 
32
SUMMARY="Header navigation table"
 
33
WIDTH="100%"
 
34
BORDER="0"
 
35
CELLPADDING="0"
 
36
CELLSPACING="0"
 
37
><TR
 
38
><TH
 
39
COLSPAN="3"
 
40
ALIGN="center"
 
41
>DejaGnu: The GNU Testing Framework</TH
 
42
></TR
 
43
><TR
 
44
><TD
 
45
WIDTH="10%"
 
46
ALIGN="left"
 
47
VALIGN="bottom"
 
48
><A
 
49
HREF="c848.html"
 
50
ACCESSKEY="P"
 
51
>&#60;&#60;&#60; Previous</A
 
52
></TD
 
53
><TD
 
54
WIDTH="80%"
 
55
ALIGN="center"
 
56
VALIGN="bottom"
 
57
>Customizing DejaGnu</TD
 
58
><TD
 
59
WIDTH="10%"
 
60
ALIGN="right"
 
61
VALIGN="bottom"
 
62
><A
 
63
HREF="x935.html"
 
64
ACCESSKEY="N"
 
65
>Next &#62;&#62;&#62;</A
 
66
></TD
 
67
></TR
 
68
></TABLE
 
69
><HR
 
70
ALIGN="LEFT"
 
71
WIDTH="100%"></DIV
 
72
><DIV
 
73
CLASS="SECT1"
 
74
><H1
 
75
CLASS="SECT1"
 
76
><A
 
77
NAME="GLOBAL"
 
78
></A
 
79
>Global Config File</H1
 
80
><P
 
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
 
87
      <I
 
88
CLASS="EMPHASIS"
 
89
>canadian cross</I
 
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
 
93
><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
 
99
><DIV
 
100
CLASS="EXAMPLE"
 
101
><A
 
102
NAME="AEN921"
 
103
></A
 
104
><P
 
105
><B
 
106
>Example 4. Global Config file</B
 
107
></P
 
108
><TABLE
 
109
BORDER="0"
 
110
BGCOLOR="#E0E0E0"
 
111
WIDTH="100%"
 
112
><TR
 
113
><TD
 
114
><PRE
 
115
CLASS="PROGRAMLISTING"
 
116
>&#13;      # Make sure we look in the right place for the board description files.
 
117
      if ![info exists boards_dir] {
 
118
          set boards_dir {}
 
119
      }
 
120
      lappend boards_dir "/nfs/cygint/s1/cygnus/dejagnu/boards"
 
121
 
 
122
      verbose "Global Config File: target_triplet is $target_triplet" 2
 
123
      global target_list
 
124
 
 
125
      case "$target_triplet" in {
 
126
          { "native" } {
 
127
              set target_list "unix"
 
128
          }
 
129
          { "sparc64-*elf" } {
 
130
              set target_list "sparc64-sim"
 
131
          }
 
132
          { "mips-*elf" } {
 
133
              set target_list "mips-sim wilma barney"
 
134
          }
 
135
          { "mips-lsi-elf" } {
 
136
              set target_list "mips-lsi-sim{,soft-float,el}"
 
137
          }
 
138
          { "sh-*hms" } {
 
139
              set target_list { "sh-hms-sim" "bloozy" }
 
140
          }
 
141
      }
 
142
      </PRE
 
143
></TD
 
144
></TR
 
145
></TABLE
 
146
></DIV
 
147
><P
 
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
 
154
><P
 
155
>As you can see, all one does is set the variable
 
156
    <SPAN
 
157
CLASS="SYMBOL"
 
158
>target_list</SPAN
 
159
> to the list of targets and options to
 
160
    test. The simple settings, like for
 
161
    <I
 
162
CLASS="EMPHASIS"
 
163
>sparc64-elf</I
 
164
> only require setting the name of
 
165
    the single board config file. The <I
 
166
CLASS="EMPHASIS"
 
167
>mips-elf</I
 
168
>
 
169
    target is more complicated. Here it sets the list to three target
 
170
    boards. One is the default mips target, and both
 
171
    <I
 
172
CLASS="EMPHASIS"
 
173
>wilma</I
 
174
> <I
 
175
CLASS="EMPHASIS"
 
176
>barney</I
 
177
> are
 
178
    symbolic names for other mips boards. Symbolic names are covered
 
179
    in the <A
 
180
HREF="x1214.html"
 
181
>Adding A New Board</A
 
182
> chapter. The more complicated
 
183
    example is the one for <I
 
184
CLASS="EMPHASIS"
 
185
>mips-lsi-elf</I
 
186
>. This one
 
187
    runs the tests with multiple iterations using all possible
 
188
    combinations of the <TT
 
189
CLASS="OPTION"
 
190
>--soft-float</TT
 
191
> and the
 
192
    <TT
 
193
CLASS="OPTION"
 
194
>--el</TT
 
195
> (little endian) option. Needless to say,
 
196
    this last feature is mostly compiler specific.</P
 
197
></DIV
 
198
><DIV
 
199
CLASS="NAVFOOTER"
 
200
><HR
 
201
ALIGN="LEFT"
 
202
WIDTH="100%"><TABLE
 
203
SUMMARY="Footer navigation table"
 
204
WIDTH="100%"
 
205
BORDER="0"
 
206
CELLPADDING="0"
 
207
CELLSPACING="0"
 
208
><TR
 
209
><TD
 
210
WIDTH="33%"
 
211
ALIGN="left"
 
212
VALIGN="top"
 
213
><A
 
214
HREF="c848.html"
 
215
ACCESSKEY="P"
 
216
>&#60;&#60;&#60; Previous</A
 
217
></TD
 
218
><TD
 
219
WIDTH="34%"
 
220
ALIGN="center"
 
221
VALIGN="top"
 
222
><A
 
223
HREF="book1.html"
 
224
ACCESSKEY="H"
 
225
>Home</A
 
226
></TD
 
227
><TD
 
228
WIDTH="33%"
 
229
ALIGN="right"
 
230
VALIGN="top"
 
231
><A
 
232
HREF="x935.html"
 
233
ACCESSKEY="N"
 
234
>Next &#62;&#62;&#62;</A
 
235
></TD
 
236
></TR
 
237
><TR
 
238
><TD
 
239
WIDTH="33%"
 
240
ALIGN="left"
 
241
VALIGN="top"
 
242
>Customizing DejaGnu</TD
 
243
><TD
 
244
WIDTH="34%"
 
245
ALIGN="center"
 
246
VALIGN="top"
 
247
><A
 
248
HREF="c848.html"
 
249
ACCESSKEY="U"
 
250
>Up</A
 
251
></TD
 
252
><TD
 
253
WIDTH="33%"
 
254
ALIGN="right"
 
255
VALIGN="top"
 
256
>Board Config File</TD
 
257
></TR
 
258
></TABLE
 
259
></DIV
 
260
></BODY
 
261
></HTML
 
262
>
 
 
b'\\ No newline at end of file'