Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
tor-browser-bundle-testsuite
Commits
2f549625
Unverified
Commit
2f549625
authored
Sep 01, 2014
by
boklm
Browse files
Update tests list page
parent
c07cb973
Changes
3
Hide whitespace changes
Inline
Side-by-side
TBBTestSuite/Reports.pm
View file @
2f549625
...
@@ -158,9 +158,6 @@ sub make_reports_index {
...
@@ -158,9 +158,6 @@ sub make_reports_index {
};
};
$template
->
process
('
reports_index.html
',
$vars
,
'
index.html
')
$template
->
process
('
reports_index.html
',
$vars
,
'
index.html
')
||
exit_error
"
Template Error:
\n
"
.
$template
->
error
;
||
exit_error
"
Template Error:
\n
"
.
$template
->
error
;
$template
->
process
('
tests_index.html
',
{
%$vars
,
tests
=>
\
@
TBBTestSuite::Tests::
tests
},
'
tests.html
')
||
exit_error
"
Template Error:
\n
"
.
$template
->
error
;
foreach
my
$type
(
$changed_report
?
@changed_type
:
keys
%reports_by_type
)
{
foreach
my
$type
(
$changed_report
?
@changed_type
:
keys
%reports_by_type
)
{
my
@s
=
sort
{
$summaries
{
$b
}
->
{
time
}
<=>
$summaries
{
$a
}
->
{
time
}
}
my
@s
=
sort
{
$summaries
{
$b
}
->
{
time
}
<=>
$summaries
{
$a
}
->
{
time
}
}
@
{
$reports_by_type
{
$type
}};
@
{
$reports_by_type
{
$type
}};
...
@@ -170,6 +167,10 @@ sub make_reports_index {
...
@@ -170,6 +167,10 @@ sub make_reports_index {
$template
->
process
("
reports_index_
$type
.html
",
$template
->
process
("
reports_index_
$type
.html
",
{
%$vars
,
reports_list
=>
\
@s
,
title
=>
$title
},
"
index-
$type
.html
")
{
%$vars
,
reports_list
=>
\
@s
,
title
=>
$title
},
"
index-
$type
.html
")
||
exit_error
"
Template Error:
\n
"
.
$template
->
error
;
||
exit_error
"
Template Error:
\n
"
.
$template
->
error
;
my
(
$t
)
=
values
%
{
$reports
{
$s
[
0
]}
->
{
tbbfiles
}};
$template
->
process
('
tests_index.html
',
{
%$vars
,
testsuite_type
=>
$type
,
tests
=>
$t
->
{
tests
}
},
"
tests-
$type
.html
")
||
exit_error
"
Template Error:
\n
"
.
$template
->
error
;
}
}
foreach
my
$type
(
$changed_report
?
@changed_type
:
keys
%reports_by_tag
)
{
foreach
my
$type
(
$changed_report
?
@changed_type
:
keys
%reports_by_tag
)
{
foreach
my
$tag
(
$changed_report
?
@changed_tags
foreach
my
$tag
(
$changed_report
?
@changed_tags
...
...
tmpl/reports_index.html
View file @
2f549625
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
[% FOREACH type IN reports_by_type.keys.sort %]
[% FOREACH type IN reports_by_type.keys.sort %]
<h2>
[% testsuite_types.$type.description %]
</h2>
<h2>
[% testsuite_types.$type.description %]
</h2>
<ul>
<ul>
<li><a
href=
"tests-[% type %].html"
>
Tests list
</a></li>
<li><a
href=
"index-[% type %].html"
>
Last 20 reports
</a></li>
<li><a
href=
"index-[% type %].html"
>
Last 20 reports
</a></li>
[% IF reports_by_month.$type %]
[% IF reports_by_month.$type %]
...
...
tmpl/tests_index.html
View file @
2f549625
[% USE date -%]
[% USE date -%]
<html>
<html>
<head>
<head>
<title>
Available Tests
</title>
<title>
Tests list: [% testsuite_types.$testsuite_type.description %]
</title>
</head>
</head>
<body>
<body>
<h1>
Available Tests
</h1>
<h1>
Tests list: [% testsuite_types.$testsuite_type.description %]
</h1>
[% FOREACH test IN tests %]
[% FOREACH test IN tests %]
<h2>
[% test.name %] ([% test.type %])
</h2>
<h2>
[% test.name %] ([% test.type %])
</h2>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment