From 7e6f078af39afb9b797ee17b541d47968a76f771 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 13 Jan 2010 15:55:18 -0700 Subject: [PATCH] Improvements to test script output --- horde/templates/test/footer.inc | 3 +++ horde/templates/test/version.inc | 4 ++-- horde/test.php | 25 +++++++++++++++++-------- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/horde/templates/test/footer.inc b/horde/templates/test/footer.inc index 308b1d01b..6a1c963fa 100644 --- a/horde/templates/test/footer.inc +++ b/horde/templates/test/footer.inc @@ -1,2 +1,5 @@ + +Return to Main Horde Test Page + diff --git a/horde/templates/test/version.inc b/horde/templates/test/version.inc index 59d7461d2..9bfdde30b 100644 --- a/horde/templates/test/version.inc +++ b/horde/templates/test/version.inc @@ -1,4 +1,4 @@ -

Version

+

Version

diff --git a/horde/test.php b/horde/test.php index 5b05ff446..fe7d0978a 100644 --- a/horde/test.php +++ b/horde/test.php @@ -45,10 +45,11 @@ $app_version = $registry->getVersion($app); * tests. Create the testing object. */ if ($app != 'horde') { $registry->pushApp($app, array('check_perms' => false)); + print "C"; } $classname = ucfirst($app) . '_Test'; if (!class_exists($classname)) { - echo '

No tests found for ' . $app . ' [' . $app_name . '].

'; + echo '

No tests found for ' . ucfirst($app) . ' [' . $app_name . '].

'; exit; } $test_ob = new $classname(); @@ -93,10 +94,7 @@ case 'unregister': } /* Get the status output now. */ -$module_output = $test_ob->phpModuleCheck(); -$setting_output = $test_ob->phpSettingCheck(); $pear_output = $test_ob->pearModuleCheck(); -$config_output = $test_ob->requiredFileCheck(); require $test_templates . '/header.inc'; require $test_templates . '/version.inc'; @@ -119,11 +117,11 @@ if ($app == 'horde') { ?> requiredAppCheck()) { ?>

Other Horde Applications

getPhpVersionInformation(); require $test_templates . '/php_version.inc'; +if ($module_output = $test_ob->phpModuleCheck()) { ?> -

PHP Module Capabilities

+phpSettingCheck()) { +?>

Miscellaneous PHP Settings

+Required Horde Configuration Files +if ($config_output = $test_ob->requiredFileCheck()) { +?> +

Required Configuration Files

+

PHP Sessions

-- 2.11.0