mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 18:31:32 +00:00
Added license headers to php files.
Made minor changes to css and autohide js for better look Added build history page
This commit is contained in:
parent
9f08babaf2
commit
9c8382b323
@ -1,4 +1,17 @@
|
||||
# This file is loaded by all unit test scripts to settup correct worknig paths
|
||||
#/*
|
||||
# Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
# Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2
|
||||
# or at your option any later version.
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY.
|
||||
#
|
||||
# See the COPYING file for more details.
|
||||
#*/
|
||||
|
||||
|
||||
SVNDIR="/path/to/wesnoth/trunk"
|
||||
WEBDIR="/path/to/tests/htdocs"
|
||||
|
@ -1,4 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
if ($argc != 2)
|
||||
{
|
||||
echo "Wrong number of parameters given";
|
||||
|
@ -1,4 +1,17 @@
|
||||
#!/bin/bash
|
||||
#/*
|
||||
# Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
# Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2
|
||||
# or at your option any later version.
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY.
|
||||
#
|
||||
# See the COPYING file for more details.
|
||||
#*/
|
||||
|
||||
FULL_PATH=`dirname $(readlink -f $0)`
|
||||
source $FULL_PATH/path_settup.sh
|
||||
|
||||
|
31
utils/tests/htdocs/build_history.php
Normal file
31
utils/tests/htdocs/build_history.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
$root_dir = './';
|
||||
|
||||
require_once($root_dir . '../include/settup.php');
|
||||
|
||||
$header = new Header('build_history');
|
||||
|
||||
$footer = new Footer('build_history');
|
||||
|
||||
$header->show();
|
||||
|
||||
$user_params = new ParameterValidator($_GET);
|
||||
|
||||
$smarty->assign(Build::GetVisibleBuilds($user_params));
|
||||
|
||||
$smarty->display('build_history.tpl');
|
||||
|
||||
$footer->show();
|
||||
?>
|
@ -1,4 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
$root_dir = './';
|
||||
|
||||
require_once($root_dir . '../include/settup.php');
|
||||
|
@ -79,20 +79,25 @@ Autohide.prototype.make_hide_text = function()
|
||||
split_text = new Array();
|
||||
for(var index in this.text)
|
||||
{
|
||||
split_text.push(document.createTextNode(this.text[index]));
|
||||
split_text.push(document.createElement('BR'));
|
||||
if (this.text[index].length)
|
||||
{
|
||||
split_text.push(document.createTextNode(this.text[index]));
|
||||
split_text.push(document.createElement('BR'));
|
||||
}
|
||||
}
|
||||
if (split_text.length)
|
||||
split_text.pop();
|
||||
// Create short text element
|
||||
var new_elem = document.createElement('DIV');
|
||||
new_elem.id='autohide_' + this.id;
|
||||
new_elem.className="autohide";
|
||||
|
||||
// create full text element
|
||||
var elem_over = new_elem.cloneNode(true);
|
||||
var elem_over = new_elem.cloneNode(false);
|
||||
elem_over.id='autohide_over_' + this.id;
|
||||
elem_over.onmouseout=autohide_mouseout;
|
||||
elem_over.style.visibility = 'hidden';
|
||||
for(var i = 0; i < split_text.length; ++i)
|
||||
for(var i in split_text)
|
||||
{
|
||||
elem_over.appendChild(split_text[i]);
|
||||
}
|
||||
|
@ -30,13 +30,21 @@ td.time {
|
||||
color: #FF0000;
|
||||
}
|
||||
|
||||
div.autohide {
|
||||
border: 1px solid #225599;
|
||||
padding-left: 0.3em;
|
||||
padding-right: 0.3em;
|
||||
}
|
||||
|
||||
div.autohide_over {
|
||||
position: absolute;
|
||||
background:#FFFBF0 none repeat scroll 0 0;
|
||||
border: 1px solid #AAAAAA;
|
||||
border: 1px solid #225599;
|
||||
padding: 0.5em;
|
||||
max-width: 60em;
|
||||
padding-left: 1.5em;
|
||||
padding-right: 1.5em;
|
||||
/* max-width: 60em;*/
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.test_error {
|
||||
|
@ -1,4 +1,30 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
|
||||
class Build {
|
||||
private $db;
|
||||
@ -23,7 +49,7 @@ class Build {
|
||||
$this->binary_name = false;
|
||||
$this->previous_id = -1;
|
||||
$this->result = null;
|
||||
$this->errors = array();
|
||||
$this->errors = null;
|
||||
if ($revision >= 0)
|
||||
$this->fetch("WHERE svn_version=?", array($revision));
|
||||
}
|
||||
@ -39,11 +65,43 @@ class Build {
|
||||
}
|
||||
}
|
||||
|
||||
private static function multiFetch($where, $params = array())
|
||||
{
|
||||
global $db;
|
||||
$res = array();
|
||||
$id_list = array();
|
||||
$result = $db->Execute('SELECT * FROM builds ' . $where ,$params);
|
||||
if ($result === false)
|
||||
return $res;
|
||||
while (!$result->EOF())
|
||||
{
|
||||
$build = new Build();
|
||||
$build->init($result->fields);
|
||||
$id_list[] = $build->getId();
|
||||
$res[] = $build;
|
||||
$result->moveNext();
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function fetchLast()
|
||||
{
|
||||
$this->fetch('ORDER BY id DESC');
|
||||
}
|
||||
|
||||
private static function fetchVisibleBuilds($page, $builds_per_page)
|
||||
{
|
||||
return self::multiFetch('ORDER BY id DESC LIMIT ?,?',
|
||||
array(($page-1)*$builds_per_page, $builds_per_page));
|
||||
}
|
||||
|
||||
private static function getNumberOfVisiblePages($builds_per_page)
|
||||
{
|
||||
global $db;
|
||||
$result = $db->Execute('SELECT COUNT(*) as number FROM builds');
|
||||
return ceil($result->fields['number']/$builds_per_page);
|
||||
}
|
||||
|
||||
public function init($values)
|
||||
{
|
||||
foreach($values as $key => $value)
|
||||
@ -52,7 +110,7 @@ class Build {
|
||||
}
|
||||
$this->time = $this->db->UnixTimeStamp($this->time);
|
||||
$this->result = null;
|
||||
$this->errors = array();
|
||||
$this->errors = null;
|
||||
}
|
||||
|
||||
public function reset()
|
||||
@ -113,7 +171,8 @@ class Build {
|
||||
{
|
||||
return false;
|
||||
}
|
||||
$compiler_log = preg_replace('/^(.*\/)?([^\/]+:[0-9]+:.*)$/m','$2',$compiler_log);
|
||||
// build/debug/editor2/
|
||||
$convert_log = FilenameConverter::stripBuildDirs($convert_log);
|
||||
if (preg_match_all('/^.*(error:|warning:|note:|undefined reference|ld returned \d exit status).*$/mi',$compiler_log, $m,PREG_SET_ORDER))
|
||||
{
|
||||
|
||||
@ -177,12 +236,11 @@ class Build {
|
||||
}
|
||||
}
|
||||
|
||||
private function checkChilds()
|
||||
private function checkResult()
|
||||
{
|
||||
if (is_null($this->result))
|
||||
{
|
||||
$this->result = new TestResult($this->getLastWorkingId());
|
||||
$this->errors = TestError::getErrorsForBuild($this->getLastWorkingId());
|
||||
}
|
||||
}
|
||||
|
||||
@ -196,9 +254,29 @@ class Build {
|
||||
return $ret;
|
||||
}
|
||||
|
||||
public function getStatistics()
|
||||
public static function getVisibleBuilds(ParameterValidator $user_params)
|
||||
{
|
||||
$this->checkChilds();
|
||||
$page = $user_params->getInt('page', 1);
|
||||
$builds_per_page = 10; // TODO: get from config
|
||||
if ($page < 0)
|
||||
$page = 1;
|
||||
$ret = array();
|
||||
$ret['builds'] = array();
|
||||
$builds = self::fetchVisibleBuilds($page, $builds_per_page);
|
||||
foreach($builds as $build)
|
||||
{
|
||||
$ret['builds'][] = $build->getBuildStats();
|
||||
}
|
||||
|
||||
$ret['page'] = $page;
|
||||
$ret['number_of_pages'] = self::getNumberOfVisiblePages($builds_per_page);
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
private function getBuildStats()
|
||||
{
|
||||
$this->checkResult();
|
||||
|
||||
$build_result = '';
|
||||
if ($this->status == self::S_GOOD)
|
||||
@ -210,15 +288,25 @@ class Build {
|
||||
}
|
||||
$build_result = str_replace("\n"," \\n",$build_result);
|
||||
|
||||
return array('build' => array('result' => $build_result,
|
||||
'time' => $this->time,
|
||||
'style' => ($this->status == self::S_GOOD?"passed":"failed"),
|
||||
'result_style' => $this->result->getResult(),
|
||||
'error_msg' => $this->error_msg,
|
||||
'svn_rev' => $this->svn_version,
|
||||
'result_passed' => $this->result->getAssertionsPassed(),
|
||||
'result_failed' => $this->result->getAssertionsFailed(),
|
||||
'errors' => $this->getErrorStatistics()));
|
||||
|
||||
return array('result' => $build_result,
|
||||
'time' => $this->time,
|
||||
'style' => ($this->status == self::S_GOOD?"passed":"failed"),
|
||||
'id' => $this->id,
|
||||
'result_style' => $this->result->getResult(),
|
||||
'error_msg' => $this->error_msg,
|
||||
'svn_rev' => $this->svn_version,
|
||||
'result_passed' => $this->result->getAssertionsPassed(),
|
||||
'result_failed' => $this->result->getAssertionsFailed());
|
||||
}
|
||||
|
||||
public function getStatistics()
|
||||
{
|
||||
if (is_null($this->errors))
|
||||
$this->errors = TestError::getErrorsForBuild($this->getLastWorkingId());
|
||||
|
||||
return array('builds' => array($this->getBuildStats()),
|
||||
'errors' => $this->getErrorStatistics());
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@ -1,4 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
|
||||
class Config {
|
||||
private $name;
|
||||
|
@ -1,4 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
|
||||
class DBForeignKey {
|
||||
private $name;
|
||||
|
22
utils/tests/include/FilenameConverter.php
Normal file
22
utils/tests/include/FilenameConverter.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
|
||||
class FilenameConverter {
|
||||
public static function stripBuildDirs(string $text)
|
||||
{
|
||||
return preg_replace('/^(build\/[^\/]*\/)?(.*[^\/]+:[0-9]+:.*)$/m','$2',$text);
|
||||
}
|
||||
}
|
||||
?>
|
@ -1,4 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
|
||||
class Footer
|
||||
{
|
||||
|
@ -1,4 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
|
||||
class Header
|
||||
{
|
||||
@ -13,6 +26,7 @@ class Header
|
||||
|
||||
public function show()
|
||||
{
|
||||
$this->smarty->assign('extra_title', "| The report site for automated unit tests");
|
||||
$this->smarty->display('header.tpl');
|
||||
}
|
||||
}
|
||||
|
37
utils/tests/include/ParameterValidator.php
Normal file
37
utils/tests/include/ParameterValidator.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
// posible class to set default values
|
||||
//class ParameterLimit {
|
||||
//}
|
||||
|
||||
class ParameterValidator {
|
||||
private $user_params;
|
||||
function __construct(array $user_params)
|
||||
{
|
||||
$this->user_params = $user_params;
|
||||
}
|
||||
|
||||
function getInt($name, $default)
|
||||
{
|
||||
if (isset($user_params[$name])
|
||||
&& is_numeric($user_params[$name]))
|
||||
{
|
||||
return (int)$user_params[$name];
|
||||
} else {
|
||||
return $default;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
@ -1,4 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
|
||||
class SVNUpdater {
|
||||
private $revision;
|
||||
|
@ -1,4 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
class TestError {
|
||||
@ -23,7 +36,7 @@ class TestError {
|
||||
if (!is_null($name))
|
||||
{
|
||||
$this->error_type = $name;
|
||||
$this->file = (string)$data->attributes()->file;
|
||||
$this->file = FilenameConverter::stripBuildDirs((string)$data->attributes()->file);
|
||||
$this->line = (string)$data->attributes()->line;
|
||||
$this->error_msg = (string)$data[0];
|
||||
$result = $this->db->Execute('SELECT t.id as id, before_id, last_id FROM test_errors t, builds b
|
||||
|
@ -1,4 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
class TestResult {
|
||||
private $db;
|
||||
private $id;
|
||||
|
@ -1,4 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
|
||||
class TestRunner {
|
||||
function __construct()
|
||||
|
@ -1,4 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
|
||||
global $smarty_dir;
|
||||
require($smarty_dir . 'libs/Smarty.class.php');
|
||||
|
@ -1,4 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2008 by Pauli Nieminen <paniemin@cc.hut.fi>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2
|
||||
or at your option any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
|
||||
function smarty_modifier_autohide($text, $min_length_to_hide, $split_from_space, $take_end = false)
|
||||
{
|
||||
|
2
utils/tests/smarty_workdir/templates/build_history.tpl
Normal file
2
utils/tests/smarty_workdir/templates/build_history.tpl
Normal file
@ -0,0 +1,2 @@
|
||||
<h3>Build history</h3>
|
||||
{include file='build_list.tpl'}
|
17
utils/tests/smarty_workdir/templates/build_list.tpl
Normal file
17
utils/tests/smarty_workdir/templates/build_list.tpl
Normal file
@ -0,0 +1,17 @@
|
||||
<table class="build" border="1">
|
||||
<tr>
|
||||
<th>Time</th>
|
||||
<th>Revision</th>
|
||||
<th>Error message</th>
|
||||
<th>Passed/Total</th>
|
||||
</tr>
|
||||
{foreach from=$builds item=build}
|
||||
<tr>
|
||||
<td class="time">{$build.time|date_format:"%H:%M %b %e, %Y"}</td>
|
||||
<td class="revision {$build.style}">r{$build.svn_rev}</td>
|
||||
<td class="message {$build.style}">{$build.result|autohide:20:true}</td>
|
||||
<td class="testresult {$build.result_style}">{$build.result_passed}/{$build.result_passed+$build.result_failed}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
<div id="footer">
|
||||
<div id="note">
|
||||
<p><a href="http://wesnoth.wesnoth.org/wiki/Site_Map">Site map</a></p>
|
||||
<p><a href="http://wesnoth.wesnoth.org/wiki/Wesnoth:Copyrights">Copyright</a> © 2003-2008 The Battle for Wesnoth</p>
|
||||
<p><a href="http://www.wesnoth.org/wiki/Site_Map">Site map</a></p>
|
||||
<p><a href="http://www.wesnoth.org/wiki/Wesnoth:Copyrights">Copyright</a> © 2003-2008 The Battle for Wesnoth</p>
|
||||
<p>Supported by <a href="http://www.jexiste.fr/">Jexiste</a>.</p>
|
||||
|
||||
</div>
|
||||
@ -16,6 +16,13 @@
|
||||
|
||||
</div> <!-- global -->
|
||||
|
||||
<script type="text/javascript">
|
||||
_uacct = "UA-1872754-3";
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
urchinTracker();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
@ -9,13 +9,15 @@
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/xhtml; charset=utf-8" />
|
||||
<link rel="shortcut icon" type="image/png" href="http://wesnoth.wesnoth.org/mw/skins/glamdrol/ico.png" />
|
||||
<style type="text/css">@import url('http://wesnoth.wesnoth.org/mw/skins/glamdrol/main.css');</style>
|
||||
<style type="text/css">@import url('http://wesnoth.wesnoth.org/mw/skins/glamdrol/home.css');</style>
|
||||
<link rel="shortcut icon" type="image/png" href="http://www.wesnoth.org/mw/skins/glamdrol/ico.png" />
|
||||
<style type="text/css">@import url('http://www.wesnoth.org/mw/skins/glamdrol/main.css');</style>
|
||||
<style type="text/css">@import url('http://www.wesnoth.org/mw/skins/glamdrol/home.css');</style>
|
||||
|
||||
<style type="text/css">@import url('styles/unit_test.css');</style>
|
||||
<script src="js/autohide.js" type="text/javascript"></script>
|
||||
|
||||
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
|
||||
</script>
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" title="news" href="http://feed43.com/wesnoth.xml" />
|
||||
<title>Battle for Wesnoth {$extra_title}</title>
|
||||
@ -27,28 +29,28 @@
|
||||
|
||||
<div id="header">
|
||||
<div id="logo">
|
||||
<a href="home"><img alt="Wesnoth logo" src="http://wesnoth.wesnoth.org/mw/skins/glamdrol/wesnoth-logo.jpg" /></a>
|
||||
<a href="home"><img alt="Wesnoth logo" src="http://www.wesnoth.org/mw/skins/glamdrol/wesnoth-logo.jpg" /></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="nav">
|
||||
<ul>
|
||||
<li><a href="http://wesnoth.wesnoth.org/">Home</a></li>
|
||||
<li><a href="http://wesnoth.wesnoth.org/wiki/Play">Play</a></li>
|
||||
<li><a href="http://wesnoth.wesnoth.org/wiki/Create">Create</a></li>
|
||||
<li><a href="http://wesnoth.wesnoth.org/forum/">Forums</a></li>
|
||||
<li><a href="http://www.wesnoth.org/">Home</a></li>
|
||||
<li><a href="http://www.wesnoth.org/wiki/Play">Play</a></li>
|
||||
<li><a href="http://www.wesnoth.org/wiki/Create">Create</a></li>
|
||||
<li><a href="http://www.wesnoth.org/forum/">Forums</a></li>
|
||||
|
||||
<li><a href="http://wesnoth.wesnoth.org/wiki/Support">Support</a></li>
|
||||
<li><a href="http://wesnoth.wesnoth.org/wiki/Project">Project</a></li>
|
||||
<li><a href="http://wesnoth.wesnoth.org/wiki/Credits">Credits</a></li>
|
||||
<li><a href="http://www.wesnoth.org/wiki/Support">Support</a></li>
|
||||
<li><a href="http://www.wesnoth.org/wiki/Project">Project</a></li>
|
||||
<li><a href="http://www.wesnoth.org/wiki/Credits">Credits</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="menu" class="menu">
|
||||
<table class="menu">
|
||||
<tr><td><a href="index.php">Status</a></td></tr>
|
||||
<tr><td><a href="index.php">Build history</a></td></tr>
|
||||
<tr><td><a href="build_history.php">Build history</a></td></tr>
|
||||
<tr><td><a href="index.php">Test Graphs</a></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
@ -1,28 +1,19 @@
|
||||
<h3>The status from the latest build</h3>
|
||||
<table class="build" border="1">
|
||||
<tr>
|
||||
<th>Time</th>
|
||||
<th>Revision</th>
|
||||
<th>Error message</th>
|
||||
<th>Passed/Total</th>
|
||||
</tr><tr>
|
||||
<td class="time">{$build.time|date_format:"%H:%M %b %e, %Y"}</td>
|
||||
<td class="revision {$build.style}">r{$build.svn_rev}</td>
|
||||
<td class="message {$build.style}">{$build.result|autohide:20:true}</td>
|
||||
<td class="testresult {$build.result_style}">{$build.result_passed}/{$build.result_passed+$build.result_failed}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{include file='build_list.tpl'}
|
||||
<br/>
|
||||
{if count($errors) eq 0}
|
||||
<h3>All unit test passed! Congratulations!</h3>
|
||||
{else}
|
||||
<h3>Current list of errors in unit tests</h3>
|
||||
<table class="test_error" border="1">
|
||||
<tr>
|
||||
<th>Type</th>
|
||||
<th>Broken in version</th>
|
||||
<th>First broken</th>
|
||||
<th>File</th>
|
||||
<th>Line</th>
|
||||
<th>Message</th>
|
||||
</tr>
|
||||
{foreach from=$build.errors item=err}
|
||||
{foreach from=$errors item=err}
|
||||
<tr>
|
||||
<td class="{$err.error_type}">{$err.error_type}</td>
|
||||
<td class="{$err.error_type}">r{$err.start_version} - r{$err.end_version}</td>
|
||||
@ -31,4 +22,5 @@
|
||||
<td class="{$err.error_type}">{$err.error_msg|autohide:40:true}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</table>
|
||||
|
Loading…
x
Reference in New Issue
Block a user