[evolvis-commits] r13957: Apply syntax tests to the testsuite itself

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Feb 28 03:41:56 CET 2011


Author: mirabilos
Date: 2011-02-28 03:41:56 +0100 (Mon, 28 Feb 2011)
New Revision: 13957

Modified:
   trunk/gforge_base/evolvisforge-5.1/tests/code/syntax/SyntaxTests.php
Log:
Apply syntax tests to the testsuite itself

Modified: trunk/gforge_base/evolvisforge-5.1/tests/code/syntax/SyntaxTests.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/tests/code/syntax/SyntaxTests.php	2011-02-28 02:41:53 UTC (rev 13956)
+++ trunk/gforge_base/evolvisforge-5.1/tests/code/syntax/SyntaxTests.php	2011-02-28 02:41:56 UTC (rev 13957)
@@ -17,38 +17,38 @@
      */
     public function testPhpSyntax()
     {
-	    $output = `cd .. ; find gforge -name '*.php' -type f  -exec php -l {} \; | grep -v '^No syntax errors detected'`;
+	    $output = `cd .. ; find gforge tests -name '*.php' -type f  -exec php -l {} \; | grep -v '^No syntax errors detected'`;
 	    $this->assertEquals('', $output);
     }
 
     /**
-     * Validate all php code with isutf8.
+     * Validate all scripts with isutf8.
      */
     public function testUTF8Chars()
     {
 	    // Skip the wiki part which is not UTF-8 encoded.
-	    $output = `cd .. ; find gforge -name '*.php' -not -path 'gforge/plugins/wiki/www/*' -type f  -exec isutf8 {} \;`;
+	    $output = `cd .. ; find gforge tests -name '*.php' -not -path 'gforge/plugins/wiki/www/*' -type f  -exec isutf8 {} \;`;
 	    $this->assertEquals('', $output);
-	    $output = `cd .. ; find gforge -name '*.sql' -type f  -exec isutf8 {} \;`;
+	    $output = `cd .. ; find gforge tests -name '*.sql' -type f  -exec isutf8 {} \;`;
 	    $this->assertEquals('', $output);
-	    $output = `cd .. ; find gforge -name '*.sh' -type f  -exec isutf8 {} \;`;
+	    $output = `cd .. ; find gforge tests -name '*.sh' -type f  -exec isutf8 {} \;`;
 	    $this->assertEquals('', $output);
-	    $output = `cd .. ; find gforge -name '*.pl' -type f  -exec isutf8 {} \;`;
+	    $output = `cd .. ; find gforge tests -name '*.pl' -type f  -exec isutf8 {} \;`;
 	    $this->assertEquals('', $output);
     }
 
     /**
-     * Ensure all PHP files use Unix-style line endings
+     * Ensure all scripts use Unix-style line endings
      */
     public function testUnixLineEndings()
     {
-	    $output = `cd .. ; find gforge -name '*.php' -type f | xargs pcregrep -l '\r$'`;
+	    $output = `cd .. ; find gforge tests -name '*.php' -type f | xargs pcregrep -l '\r$'`;
 	    $this->assertEquals('', $output);
-	    $output = `cd .. ; find gforge -name '*.sql' -type f | xargs pcregrep -l '\r$'`;
+	    $output = `cd .. ; find gforge tests -name '*.sql' -type f | xargs pcregrep -l '\r$'`;
 	    $this->assertEquals('', $output);
-	    $output = `cd .. ; find gforge -name '*.sh' -type f | xargs pcregrep -l '\r$'`;
+	    $output = `cd .. ; find gforge tests -name '*.sh' -type f | xargs pcregrep -l '\r$'`;
 	    $this->assertEquals('', $output);
-	    $output = `cd .. ; find gforge -name '*.pl' -type f | xargs pcregrep -l '\r$'`;
+	    $output = `cd .. ; find gforge tests -name '*.pl' -type f | xargs pcregrep -l '\r$'`;
 	    $this->assertEquals('', $output);
     }
 }



More information about the evolvis-commits mailing list