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
aa450388
Commit
aa450388
authored
18 years ago
by
david_williams
Browse files
Options
Downloads
Patches
Plain Diff
[106963] location of build and tests workspaces not obvioius (or changeable)
parent
6765c9e4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
releng.wtpbuilder/distribution/wtp.site/staticDropFiles/consoleLogs.php
+55
-33
55 additions, 33 deletions
...der/distribution/wtp.site/staticDropFiles/consoleLogs.php
with
55 additions
and
33 deletions
releng.wtpbuilder/distribution/wtp.site/staticDropFiles/consoleLogs.php
+
55
−
33
View file @
aa450388
<html>
<html>
<head>
<head>
<?php
<?php
$parts
=
explode
(
"/"
,
getcwd
());
$parts
=
explode
(
"/"
,
getcwd
());
$parts2
=
explode
(
"-"
,
$parts
[
count
(
$parts
)
-
1
]);
$parts2
=
explode
(
"-"
,
$parts
[
count
(
$parts
)
-
1
]);
$buildName
=
$parts2
[
1
];
$buildName
=
$parts2
[
1
];
echo
"<title>Test Console Output for
$buildName
</title>"
;
echo
"<title>Test Console Output for
$buildName
</title>"
;
?>
?>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=iso-8859-1"
>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=iso-8859-1"
>
<link
rel=
"stylesheet"
href=
"http://dev.eclipse.org/default_style.css"
type=
"text/css"
>
<link
rel=
"stylesheet"
href=
"http://dev.eclipse.org/default_style.css"
type=
"text/css"
>
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
<p><b><font
face=
"Verdana"
size=
"+3"
>
Test Console Output
</font></b>
</p>
<p><b><font
face=
"Verdana"
size=
"+3"
>
Test Console Output
</font></b>
</p>
<table
border=
0
cellspacing=
5
cellpadding=
2
width=
"100%"
>
<table
border=
0
cellspacing=
5
cellpadding=
2
width=
"100%"
>
<tr>
<tr>
<td
align=
LEFT
valign=
TOP
colspan=
"3"
bgcolor=
"#0080C0"
><b><font
color=
"#FFFFFF"
face=
"Arial,Helvetica"
>
Console
<td
align=
LEFT
valign=
TOP
colspan=
"3"
bgcolor=
"#0080C0"
><b><font
color=
"#FFFFFF"
face=
"Arial,Helvetica"
>
Console
output from running JUnit plugin tests for
output from running JUnit plugin tests for
<?php
echo
"
$buildName
"
;
?>
<?php
echo
"
$buildName
"
;
?>
</font></b></td>
</font></b></td>
</tr>
</tr>
...
@@ -25,31 +25,53 @@
...
@@ -25,31 +25,53 @@
<table
border=
"0"
>
<table
border=
"0"
>
<?php
<?php
$hasNotes
=
false
;
$hasNotes
=
false
;
$aDirectory
=
dir
(
"testResults/consolelogs"
);
$aDirectory
=
dir
(
"testResults/consolelogs"
);
$index
=
0
;
$index
=
0
;
while
(
$anEntry
=
$aDirectory
->
read
())
{
while
(
$anEntry
=
$aDirectory
->
read
())
{
if
(
$anEntry
!=
"."
&&
$anEntry
!=
".."
)
{
if
(
$anEntry
!=
"."
&&
$anEntry
!=
".."
)
{
$entries
[
$index
]
=
$anEntry
;
$entries
[
$index
]
=
$anEntry
;
$index
++
;
$index
++
;
}
}
}
}
aDirectory
.
closedir
();
aDirectory
.
closedir
();
sort
(
$entries
);
sort
(
$entries
);
for
(
$i
=
0
;
$i
<
$index
;
$i
++
)
{
$anEntry
=
$entries
[
$i
];
$indentLevel
=
" "
;
$line
=
"<td>Component: <a href=
\"
testResults/consolelogs/
$anEntry
\"
>
$anEntry
</a></td>"
;
for
(
$i
=
0
;
$i
<
$index
;
$i
++
)
{
echo
"<tr>"
;
$anEntry
=
$entries
[
$i
];
echo
"
$line
"
;
$logsize
=
filesize
(
"testResults/consolelogs/
$anEntry
"
);
echo
"</tr>"
;
$hasNotes
=
true
;
}
$level
=
0
;
if
(
$logsize
>
20000
)
{
if
(
!
$hasNotes
)
{
$level
=
2
;
echo
"<br>There are no test logs for this build."
;
}
}
else
if
(
$logsize
>
2000
)
{
$level
=
1
;
}
if
(
$level
==
0
)
{
$line
=
"<td>
$indentLevel$indentLevel
<a href=
\"
testResults/consolelogs/
$anEntry
\"
>
$anEntry
</a> (
$logsize
bytes)</td>"
;
}
else
if
(
$level
==
1
)
{
$line
=
"<td><em>
$indentLevel
<a href=
\"
testResults/consolelogs/
$anEntry
\"
>
$anEntry
</a> (
$logsize
bytes)</em></td>"
;
}
else
if
(
$level
==
2
)
{
$line
=
"<td><strong><a href=
\"
testResults/consolelogs/
$anEntry
\"
>
$anEntry
</a> (
$logsize
bytes)</strong></td>"
;
}
echo
"<tr>"
;
echo
"
$line
"
;
echo
"</tr>"
;
$hasNotes
=
true
;
}
if
(
!
$hasNotes
)
{
echo
"<br>There are no test logs for this build."
;
}
?>
?>
</table>
</table>
...
...
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