625
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
1 |
There is a new log filter to generate HTML output. For example,
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
2 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
3 |
sbs --filters=html -f logdir
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
4 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
5 |
will produce an output file "logdir/index.html" and other supporting files
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
6 |
in the directory "logdir". This can be used alongside the Bz2 filter to
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
7 |
generate both a human readable summary and a compressed log for further
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
8 |
detailed machine analysis if required: for example,
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
9 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
10 |
sbs --filters=html,bz2log -f name
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
11 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
12 |
will produce a folder "name" and a file "name.bz2".
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
13 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
14 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
15 |
If a build is done in several parts, for example,
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
16 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
17 |
sbs -s sys1.xml --filters=html,bz2log -f build/part1
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
18 |
sbs -s sys2.xml --filters=html,bz2log -f build/part2
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
19 |
sbs -s sys3.xml --filters=html,bz2log -f build/part3
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
20 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
21 |
Then there is a new script "SBS_HOME/bin/sbs_index.py" which can produce a
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
22 |
single index linking to all the individual parts: for example,
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
23 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
24 |
sbs_index.py build/part1 build/part2 build/part3 build/index.html
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
25 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
26 |
the first parameters are the directories to search for summaries and the
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
27 |
last parameter is the name of the overall index file. Directories are
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
28 |
searched recursively, so the above example is the same as,
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
29 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
30 |
sbs_index.py build build/index.html
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
31 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
32 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
33 |
Text in the Raptor logs is classified as Error, Warning or Remark using the
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
34 |
list of regular expressions in the file SBS_HOME/lib/config/logfile_regex.csv
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
35 |
but this can be overriden by placing a file of the same name in the kit in
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
36 |
its EPOCROOT/epoc32/sbs_config folder.
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
37 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
38 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
39 |
The filter also checks that all the files which were listed in "what" output
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
40 |
actually exist at the end of the build. Any files which don't exist are
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
41 |
recorded as "Missing files". |