[jboss-cvs] JBossCache ...

Pavel Tsekov ptsekov at jboss.org
Sat Dec 16 08:13:03 EST 2006


  User: ptsekov 
  Date: 06/12/16 08:13:03

  Modified:    JBossCache  Tag: Branch_JBossCache_1_4_0 build.xml
  Log:
  Add support for testing whether serialized objects remain compatible with older versions of JBossCache (JBQA-536).
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.119.2.18 +36 -1     JBossCache/build.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/build.xml,v
  retrieving revision 1.119.2.17
  retrieving revision 1.119.2.18
  diff -u -b -r1.119.2.17 -r1.119.2.18
  --- build.xml	13 Dec 2006 16:05:43 -0000	1.119.2.17
  +++ build.xml	16 Dec 2006 13:13:03 -0000	1.119.2.18
  @@ -1,6 +1,6 @@
   <?xml version="1.0" encoding="UTF-8"?>
   
  -<!-- $Id: build.xml,v 1.119.2.17 2006/12/13 16:05:43 msurtani Exp $ -->
  +<!-- $Id: build.xml,v 1.119.2.18 2006/12/16 13:13:03 ptsekov Exp $ -->
   
   <project default="compile" name="JBossCache">
   
  @@ -21,6 +21,7 @@
      <property name="perf.tests.dir" value="${tests.dir}/perf"/>
      <property name="jrunit.tests.dir" value="${tests.dir}/perf"/>
      <property name="interop.tests.dir" value="${tests.dir}/interop"/>
  +   <property name="compat.tests.dir" value="${tests.dir}/compat"/>
      <property name="etc.dir" value="${root.dir}/etc"/>
      <property name="dependencies" value="dependencies.xml"/>
      <property name="resources.dir" value="${root.dir}/src/resources"/>
  @@ -44,12 +45,20 @@
      <property name="junit.timeout" value="300000"/>
      <property name="junit.timeout.stresstest" value="6000000"/>
      <property name="junit.timeout.performance" value="60000"/>
  +   <property name="junit.timeout.compat" value="300000"/>
      <property name="junit.batchtest.todir" value="${build.reports}"/>
      <property name="junit.jvm.options" value="-Ddummy"/>
      <property name="ant.dir" value="${root.dir}/ant-dist"/>
      <property name="manifest.file" value="${dist.lib}/default.mf"/>
      <!-- Test if JDK5 is available -->
      <available classname="java.lang.Enum" property="HAVE_JDK_1.5"/>
  +   <!-- -->
  +   <condition property="ENABLE_COMPAT_TESTS">
  +      <or>
  +         <equals arg1="${ant.java.version}" arg2="1.5"/>
  +         <equals arg1="${ant.java.version}" arg2="1.4"/>
  +      </or>
  +   </condition>
      <property name="src.dir.50" value="${root.dir}/src-50"/>
      <property name="tests.dir.50" value="${root.dir}/tests-50"/>
      <property name="compile.dir.50" value="${output.dir}/classes-50"/>
  @@ -188,6 +197,7 @@
            <src path="${stress.tests.dir}"/>
            <src path="${perf.tests.dir}"/>
            <src path="${jrunit.tests.dir}"/>
  +         <src path="${compat.tests.dir}"/>
            <classpath path="${compile.dir}"/>
            <classpath refid="library.classpath"/>
            <exclude name="**/obsolete/**"/>
  @@ -862,6 +872,31 @@
         </sequential>
      </macrodef>
   
  +   <target name="compat-tests" depends="jar, unittests-init"
  +           if="ENABLE_COMPAT_TESTS">
  +      <condition property="libdir.list" value="lib-50,lib, dist/lib-50">
  +         <equals arg1="${ant.java.version}" arg2="1.5"/>
  +      </condition>
  +      <condition property="libdir.list" value="lib, dist/lib">
  +         <equals arg1="${ant.java.version}" arg2="1.4"/>
  +      </condition>
  +
  +      <junit printsummary="yes" timeout="${junit.timeout.compat}" fork="yes"
  +             maxmemory="256m">
  +         <classpath>
  +            <pathelement path="${compiletest.dir}"/>
  +         </classpath>
  +         <sysproperty key="libdir.list" value="${libdir.list}"/>
  +         <formatter type="xml" usefile="true"/>
  +         <batchtest todir="${build.reports}">
  +            <fileset dir="${compat.tests.dir}">
  +               <exclude name="**/tools/**/*"/>
  +               <patternset refid="junit.excludes"/>
  +            </fileset>
  +         </batchtest>
  +      </junit>
  +   </target>
  +
      <target name="unittests"
              depends="functionaltests, perftests, stresstests"
              description="Run all non-AOP unit tests (functional, perf, stress)"/>
  
  
  



More information about the jboss-cvs-commits mailing list