Changeset 1913

Show
Ignore:
Timestamp:
26/09/03 10:11:46 (5 years ago)
Author:
mnw21
Message:

Moved main testmodel to Flymine XML, and wrote test for zargo -> flymine XML

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/flymine/build.xml

    r1890 r1913  
    180180    <pathelement location="${build.model}/testmodel"/> 
    181181    <pathelement location="${build.model}/acedbtest"/> 
     182    <pathelement location="${build.model}/xmitest"/> 
    182183  </path> 
    183184 
     
    313314 
    314315  <!-- Testmodel --> 
    315   <target name="build-testmodel" depends="compile-main" > 
    316     <ant antfile="build-model.xml" target="build-model-from-zargo"> 
     316  <target name="build-testmodel" depends="compile-main, copy-model-testmodel" > 
     317    <ant antfile="build-model.xml" target="build-model-from-xml"> 
    317318      <property name="model.name" value="testmodel"/> 
    318       <property name="model.src" value="${model}/uml"/> 
     319      <property name="model.src" value="${model}/flymine"/> 
    319320      <reference torefid="class.path" refid="test.class.path"/> 
    320321    </ant> 
     
    357358  <target name="copy-model-acedbtest" depends="build-acedbtest"> 
    358359    <copy todir="${build.model}/acedbtest" file="${model}/acedb/acedbtest.wrm"/> 
     360  </target> 
     361 
     362  <!-- copy original flymine model file to model directory for testmodel --> 
     363  <target name="copy-model-testmodel"> 
     364    <copy todir="${build.model}/testmodel" file="${model}/flymine/testmodel_model.xml"/> 
     365  </target> 
     366 
     367  <!-- copy original .xmi file to model directory for XmiParserFunctionalTest --> 
     368  <target name="copy-model-xmitest"> 
     369    <copy todir="${build.model}/xmitest" file="${model}/uml/xmitest.xmi"/> 
     370    <copy todir="${build.model}/xmitest" file="${model}/uml/xmitest.xml"/> 
    359371  </target> 
    360372 
     
    468480 
    469481  <!-- run the tests --> 
    470   <target name="test-main" depends="compile-test, build-db-testmodel, copy-model-acedbtest
     482  <target name="test-main" depends="compile-test, build-db-testmodel, copy-model-acedbtest, copy-model-xmitest
    471483          description="perform JUnit tests on main source code" > 
    472484 
  • trunk/intermine/build.xml

    r1890 r1913  
    180180    <pathelement location="${build.model}/testmodel"/> 
    181181    <pathelement location="${build.model}/acedbtest"/> 
     182    <pathelement location="${build.model}/xmitest"/> 
    182183  </path> 
    183184 
     
    313314 
    314315  <!-- Testmodel --> 
    315   <target name="build-testmodel" depends="compile-main" > 
    316     <ant antfile="build-model.xml" target="build-model-from-zargo"> 
     316  <target name="build-testmodel" depends="compile-main, copy-model-testmodel" > 
     317    <ant antfile="build-model.xml" target="build-model-from-xml"> 
    317318      <property name="model.name" value="testmodel"/> 
    318       <property name="model.src" value="${model}/uml"/> 
     319      <property name="model.src" value="${model}/flymine"/> 
    319320      <reference torefid="class.path" refid="test.class.path"/> 
    320321    </ant> 
     
    357358  <target name="copy-model-acedbtest" depends="build-acedbtest"> 
    358359    <copy todir="${build.model}/acedbtest" file="${model}/acedb/acedbtest.wrm"/> 
     360  </target> 
     361 
     362  <!-- copy original flymine model file to model directory for testmodel --> 
     363  <target name="copy-model-testmodel"> 
     364    <copy todir="${build.model}/testmodel" file="${model}/flymine/testmodel_model.xml"/> 
     365  </target> 
     366 
     367  <!-- copy original .xmi file to model directory for XmiParserFunctionalTest --> 
     368  <target name="copy-model-xmitest"> 
     369    <copy todir="${build.model}/xmitest" file="${model}/uml/xmitest.xmi"/> 
     370    <copy todir="${build.model}/xmitest" file="${model}/uml/xmitest.xml"/> 
    359371  </target> 
    360372 
     
    468480 
    469481  <!-- run the tests --> 
    470   <target name="test-main" depends="compile-test, build-db-testmodel, copy-model-acedbtest
     482  <target name="test-main" depends="compile-test, build-db-testmodel, copy-model-acedbtest, copy-model-xmitest
    471483          description="perform JUnit tests on main source code" > 
    472484