Unverified Commit 2f549625 authored by boklm's avatar boklm
Browse files

Update tests list page

parent c07cb973
......@@ -158,9 +158,6 @@ sub make_reports_index {
};
$template->process('reports_index.html', $vars, 'index.html')
|| 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) {
my @s = sort { $summaries{$b}->{time} <=> $summaries{$a}->{time} }
@{$reports_by_type{$type}};
......@@ -170,6 +167,10 @@ sub make_reports_index {
$template->process("reports_index_$type.html",
{ %$vars, reports_list => \@s, title => $title }, "index-$type.html")
|| 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 $tag ($changed_report ? @changed_tags
......
......@@ -27,6 +27,7 @@
[% FOREACH type IN reports_by_type.keys.sort %]
<h2>[% testsuite_types.$type.description %]</h2>
<ul>
<li><a href="tests-[% type %].html">Tests list</a></li>
<li><a href="index-[% type %].html">Last 20 reports</a></li>
[% IF reports_by_month.$type %]
......
[% USE date -%]
<html>
<head>
<title>Available Tests</title>
<title>Tests list: [% testsuite_types.$testsuite_type.description %]</title>
</head>
<body>
<h1>Available Tests</h1>
<h1>Tests list: [% testsuite_types.$testsuite_type.description %]</h1>
[% FOREACH test IN tests %]
<h2>[% test.name %] ([% test.type %])</h2>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment