Test suite for PPA |
\n";
$servers = $misc->getServers();
/* Loop on the servers given in the conf/config.inc.conf file */
foreach ($servers as $server) {
// Is this server in our list of configured servers?
if (!in_array($server['desc'], $test_servers))
continue;
$fd = opendir($test_src_dir);
$files = array();
while ($file = readdir($fd))
if (preg_match('@[0-9]+.*\.php$@', $file))
$files[] = $file;
closedir($fd);
sort($files);
/* include the tests creator scripts here
* in the order you want them executed.
* Each script append itself to the TestSuite.html file.
**/
foreach ($files as $testgroupfile) {
require("{$test_src_dir}/{$testgroupfile}");
echo "[{$server['desc']}] {$test_title} |
\n";
}
}
echo "
";
?>