From: Michael M Slusarz Date: Wed, 5 Jan 2011 08:52:15 +0000 (-0700) Subject: Only show tests links to apps that might have tests X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=67d2bee619ee6c6d26a5dbd76a887f0c9a66bbd9;p=horde.git Only show tests links to apps that might have tests --- diff --git a/horde/test.php b/horde/test.php index 689fd4e4d..e4c6caa87 100644 --- a/horde/test.php +++ b/horde/test.php @@ -149,8 +149,13 @@ if ($app == 'horde') { if ($name = $registry->get('name', $val)) { echo ' [' . $name . ']'; } - echo ': ' . $registry->getVersion($val) . - ' (run tests)\n"; + echo ': ' . $registry->getVersion($val); + + if (file_exists($registry->get('fileroot', $val) . '/lib/Test.php')) { + echo ' (run tests)'; + } + + echo "\n"; } } catch (Exception $e) { $init_exception = $e;