diff --git a/classes/sysinfomodule.php b/classes/sysinfomodule.php index 238d441..20a0164 100644 --- a/classes/sysinfomodule.php +++ b/classes/sysinfomodule.php @@ -86,6 +86,14 @@ class sysinfoModule{ 'name' => 'System status', 'description' => 'Executes tests to verify the functioning of various parts of the system (e.g. connection to the database or to the eZFind indexing server)' ), + 'systemcheck' => array( + //'functions' => array( 'system_info' ), - we check in the module itself + 'script' => 'genericview.php', + 'default_navigation_part' => 'ezsysinfonavigationpart', + //'params' => array( 'output_format' ), + 'name' => 'System check', + 'description' => 'Executes tests to verify that the envitonment can properly support eZ Publish (i.e. the tests normally run by the setup wizard)' ), + 'cachestats' => array( //'functions' => array( 'system_info' ), - we check in the module itself 'script' => 'genericview.php', @@ -232,14 +240,14 @@ class sysinfoModule{ 'script' => 'genericview.php', 'default_navigation_part' => 'ezsysinfonavigationpart', 'name' => 'Security checks', - 'description' => 'Executes tests to verify the proper configuration of the system for security-related aspects' ), + 'description' => 'Executes tests to verify the proper configuration of the system for security-related aspects (taken from phpsecinfo)' ), 'databaseqa' => array( //'functions' => array( 'system_info' ), - we check in the module itself 'script' => 'genericview.php', 'default_navigation_part' => 'ezsysinfonavigationpart', 'name' => 'Database problems', - 'description' => 'Checks for common database misconfigurations', + 'description' => 'Checks for common database misconfigurations (character set and storage engine of all tables)', 'disabled' => true ), 'inifilesqa' => array( @@ -262,7 +270,7 @@ class sysinfoModule{ 'unordered_params' => array( 'view' => 'viewmode' ), 'default_navigation_part' => 'ezsysinfonavigationpart', 'name' => 'Php files problems', - 'description' => 'Checks for all php files found the presence of opening and closing php tags' ), + 'description' => 'Checks for all php files found the presence of opening and closing php tags, syntax validity' ), 'tplfilesqa' => array( //'functions' => array( 'system_info' ), - we check in the module itself diff --git a/design/standard/templates/sysinfo/systemcheck.tpl b/design/standard/templates/sysinfo/systemcheck.tpl new file mode 100644 index 0000000..a6d7a20 --- /dev/null +++ b/design/standard/templates/sysinfo/systemcheck.tpl @@ -0,0 +1,36 @@ +
+{* DESIGN: Header START *}
+ +

{$title|wash()}

+ +{* DESIGN: Mainline *}
+ +{* DESIGN: Header END *}
+ +{* DESIGN: Content START *}
+ +
+ +{if ne($css, "")} + +{/if} + +{if $warnings} + + + + +{foreach $warnings as $warning => $details sequence array( 'bglight', 'bgdark') as $style} + + +{/foreach} +
Problems detected
{include uri=concat('design:setup/tests/', $warning, '_error.tpl') test_result=$details result_number=''}
+{else} + No problems detected +{/if} + +
+ +{* DESIGN: Content END *}
+ +
\ No newline at end of file diff --git a/doc/changelogs/CHANGELOG-0.5-to-0.6 b/doc/changelogs/CHANGELOG-0.5-to-0.6 index c036675..8771141 100644 --- a/doc/changelogs/CHANGELOG-0.5-to-0.6 +++ b/doc/changelogs/CHANGELOG-0.5-to-0.6 @@ -3,6 +3,7 @@ Changes from 0.5 to 0.6 - released 2012/yy/zz New: - a new page with statistics about the mysql client (only available with the mysqlnd extension) - a new page checking syntax errors in template files +- a new page running all tests from setup wizard (usecase: check requirements after moving to a new server) Improved: - in log file list, show all log files found, not just eZ standard ones diff --git a/doc/todo b/doc/todo index 70dbcff..d6607a3 100644 --- a/doc/todo +++ b/doc/todo @@ -90,7 +90,6 @@ qa views: - use ajax calls to test php and tpl validity to avoid very long page load time - allow to specify location of php executable via ini - add a cache for parsed ini files -- view that runs setup wizard tests - extensions that have mysql .sql files but not db_schema.dba - duplicate values for designlist, relatedsa, etc... - if the ezcodingstyle extension is installed, parse php files for code style compliance diff --git a/modules/sysinfo/systemcheck.php b/modules/sysinfo/systemcheck.php new file mode 100644 index 0000000..d1c0454 --- /dev/null +++ b/modules/sysinfo/systemcheck.php @@ -0,0 +1,12 @@ +setVariable( 'warnings', $warnings ); + +?> \ No newline at end of file