From fbe706dccdd35bfdfd163b7107ea90f801830321 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 24 Oct 2014 10:02:41 +0200 Subject: controller: autoconfiscate #2 Move 'results_stats' and 'commit_results' binaries into libexec and adjust appropriately. Also html template is now in $pkgdatadir. * .gitignore: Add tags/ChangeLog generated files. * README: Just some random notes. Needs to be rewritten anyway. * controller/.gitignore: Add newly 'make'd files. * controller/Makefile.am: Generate libexec/bin files. * controller/commit_results: Move to controller/libexec as dtf-result-stats.in. * controller/configure.ac: Also substitute resulttemplatedir. * controller/etc/dtf.conf.d/config.sh.template: The DTF_DATABASE was misleading - use rather DTF_DATABASE_DEFAULT. * controller/libexec/dtf-commit-results.in: Moved from controller/commit_results. * controller/result_stats: Moved to controller/libexec/dtf-result-stats.in. * controller/libexec/dtf-result-stats.in: Moved from controller/result_stats. * controller/result_templates/html.tmpl: Moved to controller/share/dtf-controller/results-stats-templates/html.tmpl. --- .../results-stats-templates/html.tmpl | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 controller/share/dtf-controller/results-stats-templates/html.tmpl (limited to 'controller/share/dtf-controller/results-stats-templates/html.tmpl') diff --git a/controller/share/dtf-controller/results-stats-templates/html.tmpl b/controller/share/dtf-controller/results-stats-templates/html.tmpl new file mode 100644 index 0000000..8a09ad7 --- /dev/null +++ b/controller/share/dtf-controller/results-stats-templates/html.tmpl @@ -0,0 +1,42 @@ + + + + + +Results + + + +
+ + + + +: for $task_ids.keys() -> $task_id { + +: } + + +: for $results -> $result { + : if ($result.exit_status) { + + : } else { + + : } + + : for $task_ids.keys() -> $task_id { + : if (not defined($result.tasks[$task_id].exit_status)) { + + : } elsif ($result.tasks[$task_id].exit_status == 0) { + + : } else { + + : } + : } + +:} + +
Run time<: $task_id :>
<: $result.dirname :>NOT AVAILABLEOKFAIL
+
+ + -- cgit