author | Maciej Seroka <maciejs@symbian.org> |
Thu, 24 Sep 2009 09:52:05 +0100 | |
changeset 508 | f616bfab40fa |
parent 385 | 065183c4417b |
child 694 | 260b05585dc3 |
permissions | -rw-r--r-- |
366
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
1 |
# Copyright (c) 2009 Symbian Foundation Ltd |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
2 |
# This component and the accompanying materials are made available |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
3 |
# under the terms of the License "Eclipse Public License v1.0" |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
4 |
# which accompanies this distribution, and is available |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
5 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
6 |
# |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
7 |
# Initial Contributors: |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
8 |
# Symbian Foundation Ltd - initial contribution. |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
9 |
# |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
10 |
# Contributors: |
382
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
11 |
# Arnaud Lenoir |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
12 |
# Dario Sestito |
366
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
13 |
# Description: |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
14 |
# Generate build summary with BRAG status |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
15 |
|
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
16 |
use Getopt::Long; |
382
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
17 |
use strict; |
366
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
18 |
|
382
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
19 |
# Data used for the script |
366
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
20 |
my $buildid = ''; |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
21 |
my $basedir = ''; |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
22 |
my $help = 0; |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
23 |
GetOptions(( |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
24 |
'buildid=s' => \$buildid, |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
25 |
'basedir=s' => \$basedir, |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
26 |
'help!' => \$help |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
27 |
)); |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
28 |
|
382
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
29 |
#--------------------------------------------------------------------------------------- |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
30 |
# Files locations |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
31 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
32 |
# Command to build a package build |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
33 |
# F:\Dev\mercurial_local\bootstrap>perl build_package.pl --subproj=3k/mw/serviceapi |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
34 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
35 |
#brag_script.pl location |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
36 |
#F:\Dev\mercurial_local\pkgbuild\common\tools\summary |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
37 |
# my package log files directory is: F:\fbf_job\serviceapi_3k.T014\output\logs |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
38 |
# my platform log files directory is: F:\Dev\fbf_job\platform_MCL.PDK-101\output\logs |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
39 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
40 |
# F:\fbf_job\serviceapi_3k.T014\output\logs |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
41 |
# console_bootstrap_d+.txt empty file |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
42 |
# console_sfbuildall_d+.txt empty file |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
43 |
# serviceapi_3k.T014_ant_env.log |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
44 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
45 |
# F:\fbf_project\serviceapi\sf-config |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
46 |
# console_sfbuildall_32428.txt |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
47 |
# console_sfprep_32428.txt |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
48 |
# console_sfsummary_32428.txt |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
49 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
50 |
# F:\Dev\fbf_job\platform_MCL.PDK-101\output\logs |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
51 |
# platform_MCL.PDK-101_ant_env.log |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
52 |
# in _ant_env.log |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
53 |
# Do a search for env.ANT_CMD_LINE_ARGS to find out the type of build done as armv5, winscw, ... |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
54 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
55 |
#--------------------------------------------------------------------------------------- |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
56 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
57 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
58 |
# If no parameters entered or help selected, display help |
366
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
59 |
$help = 1 if (!$buildid or !$basedir); |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
60 |
|
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
61 |
if ($help) |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
62 |
{ |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
63 |
print "Generate build summary with BRAG status\n"; |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
64 |
print "Usage: perl brag_script.pl --buildid=ID --basedir=DIR\n"; |
382
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
65 |
print "Typical command line from script location: <perl brag_script.pl --buildid=serviceapi_3k.T014 --basedir=F:\\fbf_job>\n"; |
366
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
66 |
exit(0); |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
67 |
} |
382
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
68 |
# End section related to help |
366
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
69 |
|
382
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
70 |
# Determine build number |
366
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
71 |
$buildid =~ /^([^_]*)_([^.]*)\./; |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
72 |
my $project = $1; |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
73 |
my $codeline = $2; |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
74 |
|
382
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
75 |
# Define variable logdir |
366
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
76 |
my $logdir = "$basedir\\$buildid\\output\\logs"; |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
77 |
|
382
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
78 |
# General data information |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
79 |
print "\$builid = $buildid\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
80 |
print "\$basedir = $basedir\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
81 |
print "\$logdir = $logdir\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
82 |
print "\$project = $project\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
83 |
print "\$codeline = $codeline\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
84 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
85 |
open(BUILDSUMMARYHTML, ">$logdir\\build_summary.html"); # !!!!! First time we are accessing the file build_summary.html, therefore create it or replace it, AFTR THAT WE NEED TO APPEND IT ONLY!!!!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
86 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
87 |
print BUILDSUMMARYHTML "#********** build_summary.html **********#<br/><br/><br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
88 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
89 |
close(BUILDSUMMARYHTML); # Close file build_summary.html |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
90 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
91 |
# ***************************************************************************** |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
92 |
# Construction "GENERAL STATUS" page in build_summary.html |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
93 |
# ***************************************************************************** |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
94 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
95 |
# Fill html file with buildir data |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
96 |
open(BUILDSUMMARYHTML, ">>$logdir\\build_summary.html"); # Open build_summary.html in APPEND MODE! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
97 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
98 |
print BUILDSUMMARYHTML "<br/>#************************************************#<br/><br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
99 |
print BUILDSUMMARYHTML "<br/>#********** GENERAL STATUS starts here **********#<br/><br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
100 |
print BUILDSUMMARYHTML "buildid_val=$buildid<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
101 |
print BUILDSUMMARYHTML "basedir_val=$basedir<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
102 |
print BUILDSUMMARYHTML "logdir_val=$logdir<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
103 |
print BUILDSUMMARYHTML "project_val=$project<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
104 |
print BUILDSUMMARYHTML "codeline_val=$codeline<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
105 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
106 |
# Calculate the number of files in the directory |
366
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
107 |
opendir(DIR, $logdir); |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
108 |
my @dir_content = readdir(DIR); |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
109 |
close(DIR); |
382
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
110 |
my $nbfilesinlogdir = scalar(@dir_content); |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
111 |
print BUILDSUMMARYHTML "nbfilesinlogdir_val=$nbfilesinlogdir<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
112 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
113 |
# Define what we tried to build (target, winscw, armv5, TOOLS2, platform, package, ...) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
114 |
# Information in the file buildid_ant_env.log that can be found in the log directory |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
115 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
116 |
# F:\Dev\fbf_job\platform_MCL.PDK-101\output\logs |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
117 |
# platform_MCL.PDK-101_ant_env.log |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
118 |
# in _ant_env.log |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
119 |
# Do a search for env.ANT_CMD_LINE_ARGS to find out the type of build done as armv5, winscw, ... |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
120 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
121 |
# Declare any variable that will need to be used globaly otherwise can't be used only between the curly brackets! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
122 |
my $antenvlog = ""; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
123 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
124 |
#print "$logdir\\$buildid\_ant\_env\.log\n"; # Test to find out that _ and . need backslash up front to work |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
125 |
my $antenvlogfile = "$logdir\\$buildid\_ant\_env\.log"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
126 |
print "$antenvlogfile\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
127 |
open (ANTENVLOG, "<$antenvlogfile"); |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
128 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
129 |
local $/=undef; # Technic used to get a file in one unique string accessible via a variable |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
130 |
$antenvlog = <ANTENVLOG>; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
131 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
132 |
close(ANTENVLOG); # Close file $buildid_ant_env.log |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
133 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
134 |
# List of data to extract from the file $buildid_ant_env.log |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
135 |
#Fri Aug 14 17:04:54 BST 2009 on the second line of the file |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
136 |
#base_release.getenv_options=-I tools |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
137 |
#bom.log=\\\\v800008\\Builds01\\SF_builds\\platform\\builds\\MCL\\platform_MCL.PDK-101/logs/platform_MCL.PDK-101_bom.xml |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
138 |
#build.family=platform or package ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
139 |
#build.id=platform_MCL.PDK-101 ->1st thing done in this script!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
140 |
#build.name=platform or serviceapi ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
141 |
#build.number=PDK-101 ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
142 |
#build.version=MCL.PDK-101 ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
143 |
#core.build.version=MCL ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
144 |
#diamonds.host=v800002.ad-sfpd.intra ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
145 |
#env.ANT_CMD_LINE_ARGS=-Dhelium.dir "C\:\\Symbian\\Tools\\PDT_1.0\\helium" sf-build -Dbuild.drive m\: -Dsf.spec.job.codeline MCL -Dsf.spec.job.number PDK-101 -Dsf.project.location f\:\\\\Dev\\maintools\\build\\config\\foundation -Dsf.spec.job.rootdir f\:\\\\Dev\\fbf_job -Dsf.spec.sbs.config winscw_udeb.whatlog -Dsf.spec.test.sendpkg.enable false |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
146 |
#env.COMPUTERNAME=UK-ARNAUDL ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
147 |
#env.USERNAME=arnaudl ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
148 |
#publish.dir=\\\\v800008\\Builds01\\SF_builds\\platform\\builds\\MCL\\platform_MCL.PDK-101 ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
149 |
#sf.spec.sbs.config=winscw ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
150 |
#sbs.config=armv5 ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
151 |
#sf.spec.baseline.enable=true ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
152 |
#sf.spec.baseline.getenv_options=-I tools |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
153 |
#sf.spec.bccheck.baseline.s60.version=5.1 ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
154 |
#sf.spec.bccheck.enable=false ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
155 |
#sf.spec.build.target=all ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
156 |
#sf.spec.build.testcode.enable=false ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
157 |
#sf.spec.job.codeline=MCL ->Information already available under another name |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
158 |
#sf.spec.job.number=PDK-101 ->Information already available under another name |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
159 |
#sf.spec.sourcesync.enable=true ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
160 |
#sf.spec.test.epocroot=D\:\\ATS3\\winscw_smoketest |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
161 |
#sf.spec.test.host.name=v800005 ->DONE!! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
162 |
#sf.spec.toolsbaseline.getenv_options=-i emu |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
163 |
#user.country=GB ->Any use???? |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
164 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
165 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
166 |
# Data extraction |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
167 |
# Type of Line to read is: "env.COMPUTERNAME=UK-ARNAUDL" with a end of line \\n character |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
168 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
169 |
# env.COMPUTERNAME=UK-ARNAUDL |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
170 |
if ($antenvlog =~ /env\.COMPUTERNAME=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
171 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
172 |
print "Computer name is: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
173 |
print BUILDSUMMARYHTML "computername_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
174 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
175 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
176 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
177 |
print "Computer name is unknown\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
178 |
print BUILDSUMMARYHTML "computername_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
179 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
180 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
181 |
#env.USERNAME=arnaudl |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
182 |
if ($antenvlog =~ /env\.USERNAME=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
183 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
184 |
print "User name is: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
185 |
print BUILDSUMMARYHTML "username_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
186 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
187 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
188 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
189 |
print "user name is unknown\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
190 |
print BUILDSUMMARYHTML "username_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
191 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
192 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
193 |
#build.family=platform or package |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
194 |
if ($antenvlog =~ /build\.family=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
195 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
196 |
print "Build family is: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
197 |
print BUILDSUMMARYHTML "buildfamily_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
198 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
199 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
200 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
201 |
print "Build family is unknow\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
202 |
print BUILDSUMMARYHTML "buildfamily_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
203 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
204 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
205 |
#build.name=platform or serviceapi |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
206 |
if ($antenvlog =~ /build\.name=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
207 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
208 |
print "Build name is: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
209 |
print BUILDSUMMARYHTML "buildname_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
210 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
211 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
212 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
213 |
print "Build name is unknow\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
214 |
print BUILDSUMMARYHTML "buildname_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
215 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
216 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
217 |
#diamonds.host=v800002.ad-sfpd.intra - Define the server used |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
218 |
if ($antenvlog =~ /diamonds\.host=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
219 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
220 |
print "Build server used is: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
221 |
print BUILDSUMMARYHTML "buildserver_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
222 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
223 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
224 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
225 |
print "Build server used is unknown\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
226 |
print BUILDSUMMARYHTML "buildserver_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
227 |
} |
366
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
228 |
|
382
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
229 |
#build.version=MCL.PDK-101 |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
230 |
if ($antenvlog =~ /build\.version=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
231 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
232 |
print "Build version is: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
233 |
print BUILDSUMMARYHTML "buildversion_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
234 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
235 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
236 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
237 |
print "Build version is unknown\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
238 |
print BUILDSUMMARYHTML "buildversion_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
239 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
240 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
241 |
#build.number=PDK-101 |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
242 |
if ($antenvlog =~ /build\.number=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
243 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
244 |
print "Build number is: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
245 |
print BUILDSUMMARYHTML "buildnumber_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
246 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
247 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
248 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
249 |
print "Build number is unknown\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
250 |
print BUILDSUMMARYHTML "buildnumber_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
251 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
252 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
253 |
#core.build.version=MCL |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
254 |
if ($antenvlog =~ /core\.build\.version=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
255 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
256 |
print "Core build version is: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
257 |
print BUILDSUMMARYHTML "corebuildversion_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
258 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
259 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
260 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
261 |
print "Core build version is unknown\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
262 |
print BUILDSUMMARYHTML "corebuildversion_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
263 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
264 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
265 |
#publish.dir=\\\\v800008\\Builds01\\SF_builds\\platform\\builds\\MCL\\platform_MCL.PDK-101 |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
266 |
if ($antenvlog =~ /publish\.dir=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
267 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
268 |
print "Publish directory is: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
269 |
print BUILDSUMMARYHTML "publishdir_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
270 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
271 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
272 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
273 |
print "Publish directory is unknown\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
274 |
print BUILDSUMMARYHTML "publishdir_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
275 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
276 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
277 |
#sf.spec.baseline.enable=true |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
278 |
if ($antenvlog =~ /sf\.spec\.baseline\.enable=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
279 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
280 |
print "Baseline retrieval enabled?:: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
281 |
print BUILDSUMMARYHTML "baselineretrievalen_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
282 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
283 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
284 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
285 |
print "Baseline retrieval status is unknown\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
286 |
print BUILDSUMMARYHTML "baselineretrievalen_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
287 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
288 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
289 |
#sf.spec.sourcesync.enable=true |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
290 |
if ($antenvlog =~ /sf\.spec\.sourcesync\.enable=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
291 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
292 |
print "Source code sync enabled?: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
293 |
print BUILDSUMMARYHTML "sourcecodesyncen_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
294 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
295 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
296 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
297 |
print "Source code sync status is unknown\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
298 |
print BUILDSUMMARYHTML "sourcecodesyncen_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
299 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
300 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
301 |
#sf.spec.build.testcode.enable=false |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
302 |
# Smoke tests????? SALT tests???? |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
303 |
if ($antenvlog =~ /sf\.spec\.build\.testcode\.enable=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
304 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
305 |
print "Tests execution enabled?: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
306 |
print BUILDSUMMARYHTML "testexecutionen_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
307 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
308 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
309 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
310 |
print "Tests execution status is unknown\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
311 |
print BUILDSUMMARYHTML "testexecutionen_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
312 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
313 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
314 |
#sf.spec.test.host.name=v800005 |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
315 |
if ($antenvlog =~ /sf\.spec\.test\.host\.name=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
316 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
317 |
print "Tests host server is: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
318 |
print BUILDSUMMARYHTML "testhostserver_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
319 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
320 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
321 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
322 |
print "Tests host server is unknown\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
323 |
print BUILDSUMMARYHTML "testhostserver_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
324 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
325 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
326 |
#sf.spec.bccheck.enable=false |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
327 |
if ($antenvlog =~ /sf\.spec\.bccheck\.enable=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
328 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
329 |
print "BCC check enabled?: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
330 |
print BUILDSUMMARYHTML "bccchecken_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
331 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
332 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
333 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
334 |
print "BCC check status is unknown\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
335 |
print BUILDSUMMARYHTML "bccchecken_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
336 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
337 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
338 |
#sf.spec.bccheck.baseline.s60.version=5.1 |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
339 |
if ($antenvlog =~ /sf\.spec\.bccheck\.baseline\.s60\.version=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
340 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
341 |
print "BCC check S60 baseline version used is: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
342 |
print BUILDSUMMARYHTML "bccchecks60baselinever_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
343 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
344 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
345 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
346 |
print "BCC check S60 baseline version used is unknown\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
347 |
print BUILDSUMMARYHTML "bccchecks60baselinever_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
348 |
} |
366
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
349 |
|
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
350 |
|
382
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
351 |
#sbs.config=armv5 possible values are armv5 (default) and winscw |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
352 |
if ($antenvlog =~ /sbs\.config=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
353 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
354 |
print "SBS config is: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
355 |
print BUILDSUMMARYHTML "sbsconfig_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
356 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
357 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
358 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
359 |
print "SBS config is unknown\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
360 |
print BUILDSUMMARYHTML "sbsconfig_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
361 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
362 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
363 |
#sf.spec.sbs.config=winscw |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
364 |
if ($antenvlog =~ /sf\.spec\.sbs\.config=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
365 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
366 |
print "Specific SBS config is: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
367 |
print BUILDSUMMARYHTML "specsbsconfig_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
368 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
369 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
370 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
371 |
print "Specific SBS config is unknown\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
372 |
print BUILDSUMMARYHTML "specsbsconfig_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
373 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
374 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
375 |
#sf.spec.build.target=all |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
376 |
if ($antenvlog =~ /sf\.spec\.build\.target=([^=]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
377 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
378 |
print "specific build target is: $1\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
379 |
print BUILDSUMMARYHTML "specificbuildtarget_val=$1<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
380 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
381 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
382 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
383 |
print "specific build target is: unknown\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
384 |
print BUILDSUMMARYHTML "specificbuildtarget_val=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
385 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
386 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
387 |
# Extract data to define the type build done |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
388 |
# Find out what is expected to be done and what has been actually done. |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
389 |
# name="WINS" abldTarget="wins" description="MSVC Compiler" |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
390 |
# name="WINS_REL" abldTarget="wins urel" description="MSVC Compiler" |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
391 |
# name="WINS_DEB" abldTarget="wins udeb" description="MSVC Compiler" |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
392 |
# name="WINSCW" abldTarget="winscw" description="CodeWarrior Compiler" |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
393 |
# name="WINSCW_REL" abldTarget="winscw urel" description="CodeWarrior Compiler" |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
394 |
# name="WINSCW_DEB" abldTarget="winscw udeb" description="CodeWarrior Compiler" |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
395 |
# name="TOOLS" abldTarget="tools" description="MSVC Compiler for Tools" |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
396 |
# name="TOOLS_REL" abldTarget="tools rel" description="MSVC Compiler for Tools Release mode only" |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
397 |
# name="TOOLS2" abldTarget="tools2" description="MinGW GCC Compiler for Tools" |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
398 |
# name="TOOLS2_REL" abldTarget="tools2 rel" description="MinGW GCC Compiler for Tools Release mode only" |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
399 |
# name="ARMV5" abldTarget="armv5" description="RVCT Compiler" |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
400 |
# name="ARMV5_REL" abldTarget="armv5 urel" description="RVCT Compiler" |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
401 |
# name="ARMV5_DEB" abldTarget="armv5 udeb" description="RVCT Compiler" |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
402 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
403 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
404 |
#------------- |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
405 |
# End data extraction from the file $buildid_ant_env.log |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
406 |
#------------- |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
407 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
408 |
print BUILDSUMMARYHTML "<br/>#********** GENERAL STATUS ends here **********#<br/><br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
409 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
410 |
close(BUILDSUMMARYHTML); # Close file build_summary.html |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
411 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
412 |
# ***************************************************************************** |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
413 |
# Construction "SUMMARISE" page in build_summary.html |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
414 |
# ***************************************************************************** |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
415 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
416 |
# Build info - Describe the completion of the diffrent steps in the build process |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
417 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
418 |
# Fill html file with buildir data |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
419 |
open(BUILDSUMMARYHTML, ">>$logdir\\build_summary.html"); # Open build_summary.html in APPEND MODE! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
420 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
421 |
# Indicates beginning of the SUMMARISE section in the file |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
422 |
print BUILDSUMMARYHTML "<br/>#*******************************************#<br/><br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
423 |
print BUILDSUMMARYHTML "<br/>#********** SUMMARISE starts here **********#<br/><br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
424 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
425 |
#{ # Used for local $/=undef |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
426 |
#local $/=undef; # indicates that the file will be put in one variable as one string |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
427 |
# |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
428 |
## Find the string "BUILD SUCCESSFUL" in the file console_bootstrap_\d+\.txt |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
429 |
## 1st open file |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
430 |
#open (CONSOLEBOOTSTRAP, "<$logdir\\console_bootstrap_\d+\.txt"); |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
431 |
# |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
432 |
#my $searchconsolebootstrap= <CONSOLEBOOTSTRAP>; # Copy the full file in one string because of /$=undef |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
433 |
# |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
434 |
#if ($searchconsolebootstrap =~ /BUILD SUCCESSFUL/){ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
435 |
# print "Found string BUILD SUCCESSFUL\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
436 |
# print BUILDSUMMARYHTML "BuildSuccessful_val=Yes<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
437 |
# } |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
438 |
# else { |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
439 |
# print "Can't Find string BUILD SUCCESSFUL\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
440 |
# print BUILDSUMMARYHTML "BuildSuccessful_val=No<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
441 |
# } |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
442 |
# |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
443 |
#close (CONSOLEBOOTSTRAP); # Close file console_bootstrap_\d+\.txt |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
444 |
## End - Find the string "BUILD SUCCESSFUL" in the file console_bootstrap_\d+\.txt |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
445 |
# |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
446 |
## Check all the intermediate steps of the build process |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
447 |
## 1st open file console_sfbuildall_\d+\.txt |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
448 |
#open (CONSOLESFBUILDALL, "<$logdir\\console_sfbuildall_\d+\.txt"); |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
449 |
# |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
450 |
#my $searchconsolesfbuildall= <CONSOLESFBUILDALL>; # Copy the full file in one string because of /$=undef |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
451 |
# |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
452 |
#if ($searchconsolesfbuildall =~ /x/){ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
453 |
# print "Found string x\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
454 |
# print BUILDSUMMARYHTML "x=Yes<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
455 |
# } |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
456 |
# else { |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
457 |
# print "Can't Find string x\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
458 |
# print BUILDSUMMARYHTML "x=No<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
459 |
# } |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
460 |
# |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
461 |
#close (CONSOLESFBUILDALL); # Close file console_sfbuildall_\d+\.txt |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
462 |
#} # End use for local $/=undef |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
463 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
464 |
# Declare any variable that will need to be used globaly otherwise can't be used only between the curly brackets! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
465 |
my $targettimeslog = ""; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
466 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
467 |
{ # Used for local $/=undef |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
468 |
local $/=undef; # indicates that the file will be put in one variable as one string |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
469 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
470 |
# The file targetTimesLog.csv contains all the information relative to the build process including time needed for each steps (generated by helium script) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
471 |
# This file is available whatever the build we want to do (platform or package) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
472 |
my $targettimeslogfile = "$logdir\\targetTimesLog\.csv"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
473 |
print "$targettimeslogfile\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
474 |
open (TARGETTIMESLOG, "<$targettimeslogfile"); |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
475 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
476 |
local $/=undef; # Technic used to get a file in one unique string accessible via a variable |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
477 |
$targettimeslog = <TARGETTIMESLOG>; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
478 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
479 |
close (TARGETTIMESLOG); # Close file targetTimesLog.csv |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
480 |
} # End use for local $/=undef |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
481 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
482 |
# Extract useful data from the file targettimeslog.csv |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
483 |
# step, time in second to do the operation |
366
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
484 |
|
382
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
485 |
# For sure |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
486 |
#"^preparation-getenv:$" - the baseline retrieval starts |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
487 |
#preparation-getenv,1417 |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
488 |
if ($targettimeslog =~ /(preparation-getenv[^,]*),(\d+[^,]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
489 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
490 |
print "Baseline retrieval started: OK \$1= $1, \$2= $2\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
491 |
print BUILDSUMMARYHTML "baselineretrievalstarted_val=yes<br/>baselineretrievalstarted_duration=$2<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
492 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
493 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
494 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
495 |
print "Baseline retrieval started: NOK \$1= $1, \$2= $2\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
496 |
print BUILDSUMMARYHTML "baselineretrievalstarted_val=no<br/>baselineretrievalstarted_duration=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
497 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
498 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
499 |
#"^\s+[exec] .+: done fetching environment$" - the baseline retrieval ends |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
500 |
#???? |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
501 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
502 |
#"^sf-prebuild-0:$" - the source code sync starts |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
503 |
#sf-prebuild-0,363 |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
504 |
if ($targettimeslog =~ /(sf-prebuild[^,]*),(\d+[^,]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
505 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
506 |
print "Source code sync started: OK \$1= $1, \$2= $2\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
507 |
print BUILDSUMMARYHTML "sourcecodestarted_val=yes<br/>sourcecodestarted_duration=$2<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
508 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
509 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
510 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
511 |
print "Source code sync started: NOK \$1= $1, \$2= $2\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
512 |
print BUILDSUMMARYHTML "sourcecodestarted_val=no<br/>sourcecodestarted_duration=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
513 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
514 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
515 |
#"^sf-unpack-rnd:$" - source code sync ends |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
516 |
#sf-unpack-rnd,20 |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
517 |
if ($targettimeslog =~ /(sf-unpack[^,]*),(\d+[^,]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
518 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
519 |
print "Source code sync ended: OK \$1= $1, \$2= $2\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
520 |
print BUILDSUMMARYHTML "sourcecodeended_val=yes<br/>sourcecodeended_duration=$2<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
521 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
522 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
523 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
524 |
print "Source code sync ended: NOK \$1= $1, \$2= $2\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
525 |
print BUILDSUMMARYHTML "sourcecodeended_val=no<br/>sourcecodeended_duration=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
526 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
527 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
528 |
#"^sf-compile:$" - compilation starts |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
529 |
#sf-compile,3 |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
530 |
if ($targettimeslog =~ /(sf-compile[^,]*),(\d+[^,]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
531 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
532 |
print "Compilation startd: OK \$1= $1, \$2= $2\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
533 |
print BUILDSUMMARYHTML "commpilationstarted_val=yes<br/>commpilationstarted_duration=$2<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
534 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
535 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
536 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
537 |
print "Compilation startd: NOK \$1= $1, \$2= $2\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
538 |
print BUILDSUMMARYHTML "commpilationstarted_val=no<br/>commpilationstarted_duration=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
539 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
540 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
541 |
#"^sf-postbuild:$" - compilation ends |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
542 |
#sf-postbuild,0 |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
543 |
if ($targettimeslog =~ /(sf-postbuild[^,]*),(\d+[^,]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
544 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
545 |
print "Compilation ended: OK \$1= $1, \$2= $2\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
546 |
print BUILDSUMMARYHTML "compilationended_val=yes<br/>compilationended_duration=$2<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
547 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
548 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
549 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
550 |
print "Compilation ended: NOK \$1= $1, \$2= $2\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
551 |
print BUILDSUMMARYHTML "compilationended_val=no<br/>compilationended_duration=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
552 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
553 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
554 |
#"^sf-run-analysis:$" - analysis starts |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
555 |
#sf-run-analysis-raptor,1 |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
556 |
if ($targettimeslog =~ /(sf-run-analysis-raptor[^,]*),(\d+[^,]*)\n/) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
557 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
558 |
print "Analysis started: OK \$1= $1, \$2= $2\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
559 |
print BUILDSUMMARYHTML "analysisstarted_val=yes<br/>analysisstarted_duration=$2<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
560 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
561 |
else |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
562 |
{ |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
563 |
print "Analysis started: NOK \$1= $1, \$2= $2\n"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
564 |
print BUILDSUMMARYHTML "analysisstarted_val=no<br/>analysisstarted_duration=?<br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
565 |
} |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
566 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
567 |
# Maybe???????? |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
568 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
569 |
#"^sf-zip-logs:$" - analysis ends |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
570 |
#sf-zip-content,8 |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
571 |
#????? |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
572 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
573 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
574 |
#"^publish:$" - publication starts |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
575 |
#???? |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
576 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
577 |
#"\[copy\] Copying \d+ files to \\\\v800008\\Builds01\\SF_builds\\" - publication ends |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
578 |
#???? |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
579 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
580 |
#BRAG |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
581 |
#sf-summary,5 |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
582 |
#????? |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
583 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
584 |
# End - Check all the intermediate steps of the build process |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
585 |
|
385
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
586 |
# Copy Raptor summarise by DarioS |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
587 |
{ |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
588 |
local $/=undef; # indicates that the file will be put in one variable as one string |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
589 |
open(RAPTORSUMINDEX, "<$logdir\\html\\index.html"); |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
590 |
|
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
591 |
my $filecontent = <RAPTORSUMINDEX>; |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
592 |
|
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
593 |
|
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
594 |
# Like index.html will be called from the build_summary.html file, this means that is not calling the sub html file from the same directory \html. |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
595 |
# When copy index.html in the file build_summary.html, we need to include the path to \html directory |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
596 |
# We have: |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
597 |
# file:///F:/fbf_job/serviceapi_3k.T014/output/logs/raptor_unreciped.html |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
598 |
# We need: |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
599 |
# file:///F:/fbf_job/serviceapi_3k.T014/output/logs/html/raptor_unreciped.html |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
600 |
# This means we need to go from: |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
601 |
# <tr><td><a href='raptor_unreciped.html'>raptor_unreciped</a></td><td>0</td><td>0</td><td>190</td><td>0</td></tr> |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
602 |
# To: |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
603 |
# <tr><td><a href='html\raptor_unreciped.html'>raptor_unreciped</a></td><td>0</td><td>0</td><td>190</td><td>0</td></tr> |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
604 |
$filecontent =~ s/href=\'/href=\'html\\/ig; |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
605 |
|
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
606 |
print BUILDSUMMARYHTML "<br/>$filecontent<br/>"; # copy the content of the index.html file into the build_summary.html file. |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
607 |
|
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
608 |
close (RAPTORSUMINDEX); |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
609 |
} |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
610 |
|
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
611 |
# Copy html files for raptor summarise to bishare |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
612 |
# options used for xcopy |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
613 |
# /E -> Copies directories and subdirectories, including empty ones. |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
614 |
# /F -> Displays full source and destination file names while copying. |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
615 |
# /I -> If destination does not exist and copying more than one file, assumes that destination must be a directory. |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
616 |
my $copy_html = "xcopy $logdir\\html \\\\bishare\\sf_builds\\$project\\builds\\$codeline\\$buildid\\html \/E \/F \/I"; |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
617 |
print "Exec: $copy_html\n"; |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
618 |
system($copy_html); |
065183c4417b
Arnaudl adding work done by Darios on raptor summarise.
Arnaud Lenoir
parents:
382
diff
changeset
|
619 |
|
382
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
620 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
621 |
# Indicates end of the SUMMARISE section in the file |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
622 |
print BUILDSUMMARYHTML "<br/>#********** SUMMARISE ends here **********#<br/><br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
623 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
624 |
close(BUILDSUMMARYHTML); # Close build_summary.html |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
625 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
626 |
# End - Build info - Describe the completion of the diffrent steps in the build process |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
627 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
628 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
629 |
# ***************************************************************************** |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
630 |
# Construction "DATA BREAKDOWN" page in build_summary.html |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
631 |
# ***************************************************************************** |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
632 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
633 |
# Hyperlink to log files |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
634 |
open(BUILDSUMMARYHTML, ">>$logdir\\build_summary.html"); # Open build_summary.html in APPEND MODE! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
635 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
636 |
# Indicates beginning of DATA BREAKDOWN section in the file |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
637 |
print BUILDSUMMARYHTML "<br/>#************************************************#<br/><br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
638 |
print BUILDSUMMARYHTML "<br/>#********** DATA BREAKDOWN starts here **********#<br/><br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
639 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
640 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
641 |
# Get tree for the directory where the log files are (bishare probably the best place???) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
642 |
# Should be already exported there, but maybe in a zip file) |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
643 |
# Extract each file with directory, then create a hyperlink to that file to make sure that user can click on the link and open the file! |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
644 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
645 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
646 |
#ex: platform_MCL.PDK-101_summary.log.xml |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
647 |
#######print FILE "buildid_summary.log.xml=<a class ="hoverlink" href ="file://///$logdir/$buildid_summary.log.xml">$buildid_summary.log.xml<br>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
648 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
649 |
# example of html hyperlink |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
650 |
#<a class ="hoverlink" href ="file://///builds01/devbuilds/MasterSF/logs/MSF00159_Symbian_OS_vtb92sf/MSF00159_Symbian_OS_vtb92sf.summary.html#AdvisoryNotesByComponent_Scan for S60 distribution policy files">Scan for S60 distribution policy files (1162) <br></a></td> |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
651 |
#<a class ="hoverlink" href ="file://///builds01/devbuilds/MasterSF/MSF00159_Symbian_OS_vtb92sf/logs/GT.summary.html#errorsByComponent_SBS: Error">SBS: Error (4) <br></a></td> |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
652 |
#<a class ="hoverlink" href ="file://///builds01/devbuilds/MasterSF/MSF00159_Symbian_OS_vtb92sf/logs/MSF00159_Symbian_OS_vtb92sf_cbr.summary.html#AdvisoryNotesByOverall_Total">Total (1) <br></a></td> |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
653 |
#<a class ="hoverlink" href="file://///builds01/devbuilds/MasterSF/logs/MSF00159_Symbian_OS_vtb92sf/AutoSmokeTest/EMULATOR/WINSCW/Test Summary Report.htm">WINSCW ( EMULATOR ) </a></td><td> |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
654 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
655 |
# All log files hyperlink have been created, close build_summary.html |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
656 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
657 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
658 |
# Indicates end of DATA BREAKDOWN section in the file |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
659 |
print BUILDSUMMARYHTML "<br/>#********** DATA BREAKDOWN ends here **********#<br/><br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
660 |
print BUILDSUMMARYHTML "<br/>#********** summary_build.html ends here ******#<br/><br/>"; |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
661 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
662 |
close(BUILDSUMMARYHTML); # Close file build_summary.html |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
663 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
664 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
665 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
666 |
# ***************************************************************************** |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
667 |
# Final step, copy build_summary.html to \\bishare drive |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
668 |
# ***************************************************************************** |
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
669 |
|
63fdf0583f67
Brag script 1st draft by Arnaudl and DarioS
arnaudl@UK-ARNAUDL
parents:
366
diff
changeset
|
670 |
# Copy html file to bishare |
366
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
671 |
my $copy_cmd = "copy $logdir\\build_summary.html \\\\bishare\\sf_builds\\$project\\builds\\$codeline\\$buildid"; |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
672 |
print "Exec: $copy_cmd\n"; |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
673 |
system($copy_cmd); |
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
674 |
|
cde2244c8ea6
First drop of script to generate build summary
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
675 |