Author: rjung
Date: Thu Feb 16 22:26:08 2017
New Revision: 1783316

URL: http://svn.apache.org/viewvc?rev=1783316&view=rev
Log:
Only try to run unit tests names Test*.java
for tcnative. Especially the new class
AbstractJniTest is not suitable for direct test
execution.

Modified:
    tomcat/native/trunk/build.xml

Modified: tomcat/native/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/tomcat/native/trunk/build.xml?rev=1783316&r1=1783315&r2=1783316&view=diff
==============================================================================
--- tomcat/native/trunk/build.xml (original)
+++ tomcat/native/trunk/build.xml Thu Feb 16 22:26:08 2017
@@ -58,6 +58,9 @@
     <!-- The base directory for component sources -->
     <property name="source.home"             value="java"/>
 
+    <!-- Tests To Run -->
+    <property name="test.name" value="**/Test*.java"/>
+
     <!-- Build classpath -->
     <path id="classpath">
         <pathelement location="${build.dest}/java"/>
@@ -318,7 +321,11 @@ limitations under the License.--&gt;">
             <classpath refid="test.classpath" />
 
             <batchtest todir="${basedir}/logs">
-                <fileset dir="test" />
+                <!-- Include all by default -->
+                <fileset dir="test" includes="${test.name}">
+                  <!-- Exclude helper classes -->
+                  <exclude name="**/Tester*.java" />
+                </fileset>
             </batchtest>
         </junit>
     </target>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to