[limb-svn] r6888 - 3.x/trunk/limb
svn at limb-project.com
svn at limb-project.com
Wed Apr 2 00:33:17 MSD 2008
Author: pachanga
Date: 2008-04-02 00:33:17 +0400 (Wed, 02 Apr 2008)
New Revision: 6888
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6888
Modified:
3.x/trunk/limb/runtests.php
Log:
-- runtests.php now accepts full path to tests
Modified: 3.x/trunk/limb/runtests.php
===================================================================
--- 3.x/trunk/limb/runtests.php 2008-04-01 20:32:33 UTC (rev 6887)
+++ 3.x/trunk/limb/runtests.php 2008-04-01 20:33:17 UTC (rev 6888)
@@ -6,20 +6,20 @@
require_once(dirname(__FILE__) . '/tests_runner/src/lmbTestTreeFilePathNode.class.php');
require_once(dirname(__FILE__) . '/tests_runner/src/lmbTestTreeGlobNode.class.php');
-$packages = null;
+$tests = array();
if(sizeof($argv) > 1)
- $packages = array_splice($argv, 1);
+ $tests = array_splice($argv, 1);
-if($packages)
+if($tests)
{
$paths = array();
$res = true;
- foreach($packages as $pkg)
+ foreach($tests as $test)
{
$runner = new lmbTestRunner();
- $path = dirname(__FILE__) . '/' . $pkg . '/tests/cases/';
- if(is_dir($path))
+ $path = dirname(__FILE__) . '/' . $test;
+ if(file_exists($path) || is_dir($path))
$res &= $runner->run(new lmbTestTreeFilePathNode($path));
}
}
More information about the limb-svn
mailing list