[limb-svn] r6851 - 3.x/trunk/limb
svn at limb-project.com
svn at limb-project.com
Sun Mar 23 19:36:55 MSK 2008
Author: pachanga
Date: 2008-03-23 19:36:54 +0300 (Sun, 23 Mar 2008)
New Revision: 6851
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6851
Added:
3.x/trunk/limb/runtests.php
Log:
-- adding convinience Limb3 packages tests running script
Added: 3.x/trunk/limb/runtests.php
===================================================================
--- 3.x/trunk/limb/runtests.php (rev 0)
+++ 3.x/trunk/limb/runtests.php 2008-03-23 16:36:54 UTC (rev 6851)
@@ -0,0 +1,29 @@
+<?php
+set_include_path(dirname(__FILE__) . '/../' . PATH_SEPARATOR . get_include_path());
+
+require_once(dirname(__FILE__) . '/tests_runner/common.inc.php');
+require_once(dirname(__FILE__) . '/tests_runner/src/lmbTestRunner.class.php');
+require_once(dirname(__FILE__) . '/tests_runner/src/lmbTestTreeGlobNode.class.php');
+
+$packages = null;
+if(sizeof($argv) > 1)
+ $packages = array_splice($argv, 1);
+
+
+if($packages)
+{
+ $paths = array();
+ $res = true;
+ foreach($packages as $pkg)
+ {
+ $runner = new lmbTestRunner();
+ $res &= $runner->run(new lmbTestTreeDirNode(dirname(__FILE__) . '/' . $pkg . '/tests/cases/'));
+ }
+}
+else
+{
+ $runner = new lmbTestRunner();
+ $res = $runner->run(new lmbTestTreeGlobNode(dirname(__FILE__) . '/*/tests/cases/'));
+}
+
+exit($res ? 0 : 1);
More information about the limb-svn
mailing list