Only show tests links to apps that might have tests
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 5 Jan 2011 08:52:15 +0000 (01:52 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 5 Jan 2011 08:54:25 +0000 (01:54 -0700)
horde/test.php

index 689fd4e..e4c6caa 100644 (file)
@@ -149,8 +149,13 @@ if ($app == 'horde') {
                 if ($name = $registry->get('name', $val)) {
                     echo ' [' . $name . ']';
                 }
-                echo ': ' . $registry->getVersion($val) .
-                    ' (<a href="' . $url->copy()->add('app', $val) . "\">run tests</a>)</li>\n";
+                echo ': ' . $registry->getVersion($val);
+
+                if (file_exists($registry->get('fileroot', $val) . '/lib/Test.php')) {
+                    echo ' (<a href="' . $url->copy()->add('app', $val) . '">run tests</a>)</li>';
+                }
+
+                echo "\n";
             }
         } catch (Exception $e) {
             $init_exception = $e;