Commit d952784d authored by Dries's avatar Dries

- Patch #254166 by boombatower and pwlonin: added --list feature to list all...

- Patch #254166 by boombatower and pwlonin: added --list feature to list all available test groups and fixed some indentation issues.
parent 493a9ac6
......@@ -28,6 +28,8 @@
--help Print this page.
--list Display all available test groups.
--clean Cleans up database tables or directories from previous, failed,
tests and then exits (no tests are run).
......@@ -61,6 +63,7 @@
exit;
}
$list = FALSE;
$clean = FALSE;
$all = FALSE;
$class_names = FALSE;
......@@ -68,6 +71,9 @@
while ($param = array_shift($_SERVER['argv'])) {
switch ($param) {
case '--list':
$list = TRUE;
break;
case '--url':
$url = array_shift($_SERVER['argv']);
$parsed = parse_url($url);
......@@ -133,6 +139,15 @@
$test_instances = $total_test->getTestInstances();
if ($list) {
// Display all availabe tests.
echo("Available test groups:\n----------------------\n");
foreach ($test_instances as $group_test) {
echo($group_test->getLabel() . "\n");
}
exit;
}
if ($all) {
$test_list = NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment