Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Webtools Releng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
webtools
Releng
Webtools Releng
Commits
82ded219
Commit
82ded219
authored
17 years ago
by
david_williams
Browse files
Options
Downloads
Patches
Plain Diff
prep for download sights on build machine
parent
b8003999
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
downloadsites/webtools/commonPages/report.php
+0
-0
0 additions, 0 deletions
downloadsites/webtools/commonPages/report.php
downloadsites/webtools/patches/report2.php
+0
-127
0 additions, 127 deletions
downloadsites/webtools/patches/report2.php
with
0 additions
and
127 deletions
downloadsites/webtools/
patch
es/report.php
→
downloadsites/webtools/
commonPag
es/report.php
+
0
−
0
View file @
82ded219
File moved
This diff is collapsed.
Click to expand it.
downloadsites/webtools/patches/report2.php
deleted
100644 → 0
+
0
−
127
View file @
b8003999
<?php
function
parse2_testResults
(
$filename
)
{
$junitFailures
=
-
1
;
if
(
is_file
(
$filename
))
{
$handle
=
@
fopen
(
$filename
,
"r"
);
if
(
$handle
)
{
$junitFailures
=
0
;
$size
=
filesize
(
$filename
);
$content
=
fread
(
$handle
,
$size
);
fclose
(
$handle
);
$junitStart
=
strpos
(
$content
,
"Errors & Failures"
);
$junitEnd
=
strpos
(
$content
,
"</table>"
,
$junitStart
);
$junitInfo
=
substr
(
$content
,
$junitStart
,
$junitEnd
-
$junitStart
);
$start
=
strpos
(
$junitInfo
,
"<td><b><font color=
\"
#ff0000
\"
>"
);
while
(
$start
!==
false
)
{
$start
+=
29
;
$stop
=
strpos
(
$junitInfo
,
"</font></b></td>"
,
$start
);
if
(
$stop
!==
false
)
{
$result
=
substr
(
$junitInfo
,
$start
,
$stop
-
$start
);
if
(
is_numeric
(
$result
))
{
$junitFailures
+=
$result
;
}
else
if
(
strcmp
(
$result
,
"DNF"
)
==
0
)
{
$junitFailures
++
;
}
}
$start
=
strpos
(
$junitInfo
,
"<td><b><font color=
\"
#ff0000
\"
>"
,
$stop
);
}
$results
=
array
(
$junitFailures
);
return
$results
;
}
}
}
function
parse2_compileResults
(
$filename
)
{
$compileErrors
=
0
;
$compileAccessWarnings
=
0
;
$compileOtherWarnings
=
0
;
if
(
is_file
(
$filename
))
{
//echo "$filename<br />";
$handle
=
@
fopen
(
$filename
,
"r"
);
if
(
$handle
)
{
$size
=
filesize
(
$filename
);
//echo "size: $size<br />";
$content
=
fread
(
$handle
,
$size
);
fclose
(
$handle
);
//echo "$content";
$compileStart
=
strpos
(
$content
,
"<table id=tabledata"
);
$compileEnd
=
strpos
(
$content
,
"</table"
,
$compileStart
);
$compileInfo
=
substr
(
$content
,
$compileStart
,
$compileEnd
-
$compileStart
);
//echo "compileInfo: $compileInfo<br />";
$rowStart
=
strpos
(
$compileInfo
,
"<tr>"
);
$rowStart
=
strpos
(
$compileInfo
,
"<tr>"
);
$start
=
$rowStart
+
4
;
while
(
$rowStart
!==
false
)
{
$start
+=
4
;
$rowStop
=
strpos
(
$compileInfo
,
"</tr>"
,
$rowStart
);
//if ($rowStop !== false)
//{
$row
=
substr
(
$compileInfo
,
$rowStart
,
$rowStop
-
$rowStart
);
//echo "$row";
//while ($cellStart !== false)
//{
// this parsing logic got a bit more complicated in M5_33 basebuild, as the
// a whole different structure was used.
// we'll try to quick fix this, but need our own index task
$cellStart
=
strpos
(
$row
,
"#ERROR"
);
$cellStart
=
strpos
(
$row
,
">"
,
$cellStart
);
$cellStart
=
$cellStart
+
1
;
$cellStop
=
strpos
(
$row
,
"<"
,
$cellStart
);
if
(
$cellStop
!==
false
)
{
$cell
=
substr
(
$row
,
$cellStart
,
$cellStop
-
$cellStart
);
if
(
is_numeric
(
$cell
))
{
$compileErrors
+=
$cell
;
}
$cellStart
=
strpos
(
$row
,
"#ACCESSRULES_WARNINGS"
);
$cellStart
=
strpos
(
$row
,
">"
,
$cellStart
);
$cellStart
=
$cellStart
+
1
;
$cellStop
=
strpos
(
$row
,
"<"
,
$cellStart
);
$cell
=
substr
(
$row
,
$cellStart
,
$cellStop
-
$cellStart
);
if
(
is_numeric
(
$cell
))
{
$compileAccessWarnings
+=
$cell
;
}
$cellStart
=
strpos
(
$row
,
"#OTHER_WARNINGS"
);
$cellStart
=
strpos
(
$row
,
">"
,
$cellStart
);
$cellStart
=
$cellStart
+
1
;
$cellStop
=
strpos
(
$row
,
"<"
,
$cellStart
);
$cell
=
substr
(
$row
,
$cellStart
,
$cellStop
-
$cellStart
);
if
(
is_numeric
(
$cell
))
{
$compileOtherWarnings
+=
$cell
;
}
}
// look for next row.
//$cellStart = strpos($row, "<tr", $cellStop);
//}
//}
$rowStart
=
strpos
(
$compileInfo
,
"<tr>"
,
$rowStop
);
}
}
}
$results
=
array
(
$compileErrors
,
$compileAccessWarnings
,
$compileOtherWarnings
);
return
$results
;
}
?>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment