harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r513625 - in /harmony/enhanced/drlvm/trunk: build/make/targets/reg.test.run.xml src/test/regression/README.txt
Date Fri, 02 Mar 2007 06:19:56 GMT
Author: varlax
Date: Thu Mar  1 22:19:55 2007
New Revision: 513625

URL: http://svn.apache.org/viewvc?view=rev&rev=513625
Log:
Applied HARMONY-3268 [drlvm][testing] Regression test execution improvement

Modified:
    harmony/enhanced/drlvm/trunk/build/make/targets/reg.test.run.xml
    harmony/enhanced/drlvm/trunk/src/test/regression/README.txt

Modified: harmony/enhanced/drlvm/trunk/build/make/targets/reg.test.run.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/build/make/targets/reg.test.run.xml?view=diff&rev=513625&r1=513624&r2=513625
==============================================================================
--- harmony/enhanced/drlvm/trunk/build/make/targets/reg.test.run.xml (original)
+++ harmony/enhanced/drlvm/trunk/build/make/targets/reg.test.run.xml Thu Mar  1 22:19:55 2007
@@ -34,16 +34,34 @@
 =====================================
         </echo>
 
-        <!-- Check for exclude list presence -->
-        <condition property="exclude.list" 
-                   value="${reg.test.src}/excludes/exclude.${hy.platform}">
-            <available file="${reg.test.src}/excludes/exclude.${hy.platform}"/>
+        <property name="exclude.list.file" 
+                  location="${reg.test.src}/excludes/exclude.${hy.platform}"/>
+
+        <!-- Check up exclude list to use -->
+        <condition property="exclude.list" value="${exclude.list.file}">
+            <and>
+                <!-- don't look into xlist if we're 
+                     checking particular regression -->
+                <not>
+                    <isset property="test.case"/>
+                </not>
+                <!-- use this xlist, if it is available for 
+                     this platform configuration -->
+                <available file="${exclude.list.file}"/>
+            </and>
         </condition>
 
+        <!-- Choose regression tests to execute.
+             Use 
+                    -Dtest.case=H1234
+             or 
+                    -Dtest.case="H1234,H4321"
+             to specify particular tests to execute -->
+        <property name="test.case" value="H*"/>
+
         <for param="reg.test.2launch.src.dir">
             <!-- Go through directories containing regression tests -->
-            <dirset dir="${reg.test.src}">
-                <include name="H*"/>
+            <dirset dir="${reg.test.src}" includes="${test.case}">
                 <excludesfile name="${exclude.list}" if="exclude.list"/>
             </dirset>
             <sequential>

Modified: harmony/enhanced/drlvm/trunk/src/test/regression/README.txt
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/README.txt?view=diff&rev=513625&r1=513624&r2=513625
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/README.txt (original)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/README.txt Thu Mar  1 22:19:55 2007
@@ -110,6 +110,24 @@
 
     > build reg.test
 
-in build directory of DRLVM workspace.
+in build directory of DRLVM workspace. This will execute all non-excluded
+regression tests for your platform configuration.
 
+Also by providing the value for 'test.case' property you can choose 
+which particular regression tests to execute. 
+For example, to run only H1234 regression test type the following 
+on your command line:
+
+    > build -Dtest.case=H1234 reg.test
+
+To check for several regressions use coma or space separated list as a value for
+the property. So the following command:
+
+    > build -Dtest.case="H1234,H4321" reg.test
+
+will execute two regression tests - H1234 and H4321.
+ 
+ Note:  If some of the tests selected by test.case property are in
+ -----  exclude list, they will be executed anyway. So you can use this property
+        to go around exclude lists.
 



Mime
View raw message