Revision: 530
http://pel.svn.sourceforge.net/pel/?rev=530&view=rev
Author: lsolesen
Date: 2010-02-24 10:14:14 +0000 (Wed, 24 Feb 2010)
Log Message:
-----------
Makes a test whether the config.local.php is present.
Modified Paths:
--------------
trunk/test/run-tests.php
Modified: trunk/test/run-tests.php
===================================================================
--- trunk/test/run-tests.php 2010-02-24 09:57:51 UTC (rev 529)
+++ trunk/test/run-tests.php 2010-02-24 10:14:14 UTC (rev 530)
@@ -26,6 +26,11 @@
error_reporting(E_ALL);
+if (!file_exists(dirname(__FILE__))) {
+ echo "Create config.local.php";
+ exit(1);
+}
+
require_once 'config.local.php';
if (!defined('SIMPLE_TEST')) {
@@ -54,7 +59,7 @@
require_once(SIMPLE_TEST . 'unit_tester.php');
require_once(SIMPLE_TEST . 'reporter.php');
-if ($argc > 1) {
+if (!empty($argc) AND $argc > 1) {
/* If command line arguments are given, then only test those. */
array_shift($argv);
$tests = $argv;
@@ -84,5 +89,3 @@
$group->addTestFile($test);
$group->run(new TextReporter());
-
-?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
PEL-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pel-commits