incubator-zeta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [zeta-commits] svn commit: r1212911 - /incubator/zetacomponents/scripts/tests_filenames.sh
Date Sat, 10 Dec 2011 22:41:28 GMT
Author: jpic
Date: Sat Dec 10 22:41:28 2011
New Revision: 1212911

URL: http://svn.apache.org/viewvc?rev=1212911&view=rev
Log:
- tests_filenames.sh: bugfix for _tests.php suffix, skip _test_case.php

Modified:
    incubator/zetacomponents/scripts/tests_filenames.sh

Modified: incubator/zetacomponents/scripts/tests_filenames.sh
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/scripts/tests_filenames.sh?rev=1212911&r1=1212910&r2=1212911&view=diff
==============================================================================
--- incubator/zetacomponents/scripts/tests_filenames.sh (original)
+++ incubator/zetacomponents/scripts/tests_filenames.sh Sat Dec 10 22:41:28 2011
@@ -36,8 +36,11 @@ for c in trunk/*; do
     for f in $(find $c/tests -name '*php' -not -iwholename '*.svn*' -not -iwholename '*_test.php');
do
         grep -q 'extends ezcTestCase' $f
         if [ $? -eq 0 ]; then
-            if [[ $f == '_tests.php' ]]; then
-                $my_mv $f ${f%tests.php}_test.php
+            if [[ $f == *_tests.php ]]; then
+                $my_mv $f ${f%_tests.php}_test.php
+            elif [[ $f == *test_case.php ]]; then
+                echo NOT TOUCHING $f
+                continue
             else
                 $my_mv $f ${f%.php}_test.php
             fi



Mime
View raw message