buildframework/helium/sf/java/diamonds/tests/scenarii/invalid-templates-1/build.xml
changeset 628 7c4a911dc066
parent 588 c7c26511138f
child 645 b8d81fa19e7d
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
    21 ============================================================================
    21 ============================================================================
    22 -->
    22 -->
    23 <project name="test-diamonds-invalid-template-1" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
    23 <project name="test-diamonds-invalid-template-1" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
    24     <description>Helium Antlib diamonds unittests.</description>
    24     <description>Helium Antlib diamonds unittests.</description>
    25     <property environment="env" />
    25     <property environment="env" />
    26     
    26     <taskdef resource="com/nokia/helium/core/ant/antlib.xml" uri="http://www.nokia.com/helium"/>
       
    27     <property name="diamonds.enabled" value="true" />
    27     <property name="diamonds.unitest.dir" location="${ant.file.test-diamonds-invalid-template}/../../../" />
    28     <property name="diamonds.unitest.dir" location="${ant.file.test-diamonds-invalid-template}/../../../" />
    28     <import file="../../../../../../nokia/companyproperties.ant.xml" optional="true"/>
    29     <import file="../../../../../../nokia/companyproperties.ant.xml" optional="true"/>
    29     <import file="../../../../../../../extensions/nokia/external/helium-nokia-antlib/companyproperties.ant.xml" optional="true"/>
       
    30     <property name="diamonds.output.dir" location="${temp.dir}/output" />
    30     <property name="diamonds.output.dir" location="${temp.dir}/output" />
    31     <property name="diamonds.template.dir" location="${diamonds.unitest.dir}/data/templates" />
    31     <property name="diamonds.template.dir" location="${diamonds.unitest.dir}/data/templates" />
    32     <property name="build.family" value="test_new_hlm"/>
    32     <property name="build.family" value="test_new_hlm"/>
    33     <property name="id" value="123"/>
    33     <property name="id" value="123"/>
    34     <property name="name" value="${build.family}_${id}"/>
    34     <property name="name" value="${build.family}_${id}"/>
    35     <property name="build.system" value="ec-helium"/>
    35     <property name="build.system" value="ec-helium"/>
    36     <property name="diamonds.listener.configuration.file" location="${diamonds.unitest.dir}/scenarii/invalid-templates-1/diamonds_config.xml.ftl" />
       
    37     <property name="symsee.version" value="9.1.0" />
    36     <property name="symsee.version" value="9.1.0" />
    38 
    37     <import file="../../config/diamonds_config_default.ant.xml" />
    39     <target name="version">
       
    40         <echo message="version" />
       
    41     </target>
       
    42 
    38 
    43     <target name="unittest" depends="unittest-diamonds" />
    39     <target name="unittest" depends="unittest-diamonds" />
    44     
    40     
    45     <target name="unittest-diamonds" >
    41     <target name="unittest-diamonds" >
    46             <delete dir="${diamonds.output.dir}" failonerror="false"/>
    42         <delete dir="${diamonds.output.dir}" failonerror="false"/>
    47             <mkdir dir="${diamonds.output.dir}"/>
    43         <mkdir dir="${diamonds.output.dir}"/>
    48             <antcall target="test-all" />
    44         <antcall target="test-all" />
       
    45     </target>
       
    46     
       
    47     <dirname property="project.dir" file="${ant.file.test-diamonds}" />
       
    48     <target name="version">
       
    49         <echo message="version target for diamonds to verify sending data to diamonds" />
    49     </target>
    50     </target>
    50 
    51 
    51     <target name="diamonds" />
    52     <target name="diamonds" />
    52     <target name="test-all" depends="diamonds" />
    53 
       
    54     <target name="compile-target">
       
    55         <echo message="verify the build stage with input source xml file" />
       
    56     </target>
       
    57 
       
    58     <target name="codescanner">
       
    59         <echo message="target verification with input source xml file" />
       
    60     </target>
       
    61 
       
    62     <target name="create-bom-log">
       
    63         <echo message="target without input file and just to send the data" />
       
    64     </target>
       
    65 
       
    66     <target name="invalid-target-input-file">
       
    67         <echo message="target with invalid input source xml file" />
       
    68     </target>
       
    69 
       
    70     <target name="invalid-stage-input-file">
       
    71         <echo message="stage with invalid input source xml file" />
       
    72     </target>
       
    73 
       
    74     <target name="invalid-template-file">
       
    75         <echo message="target with invalid template-file" />
       
    76     </target>
       
    77 
       
    78     <target name="invalid-ant-properties-input">
       
    79         <echo message="target with invalid ant properties input" />
       
    80     </target>
       
    81 
       
    82     <target name="non-existing-ant-properties">
       
    83         <echo message="target with non-existing-ant-properties" />
       
    84     </target>
       
    85 
       
    86     <target name="invalid-diamonds-server-properties">
       
    87         <echo message="target with invalid-diamonds-server-properties" />
       
    88     </target>
       
    89 
       
    90     <target name="defer-type">
       
    91         <echo message="version target for diamonds to verify sending data to diamonds" />
       
    92     </target>
       
    93 
       
    94     <target name="test-defer-type">
       
    95         <antcall target="defer-type" />
       
    96     </target>
       
    97 
       
    98     <target name="test-create-bom-log">
       
    99         <antcall target="create-bom-log" />
       
   100     </target>
       
   101 
       
   102     <target name="test-codescanner">
       
   103         <antcall target="codescanner" />
       
   104     </target>
       
   105 
       
   106     <target name="test-invalid-target-input-file">
       
   107         <antcall target="invalid-target-input-file" />
       
   108     </target>
       
   109 
       
   110     <target name="test-invalid-stage-input-file">
       
   111         <antcall target="invalid-target-input-file" />
       
   112         <echo message="stage with invalid input source xml file" />
       
   113     </target>
       
   114 
       
   115     <target name="test-invalid-template-file">
       
   116         <antcall target="invalid-template-file" />
       
   117     </target>
       
   118 
       
   119     <target name="test-invalid-ant-properties-input">
       
   120         <antcall target="invalid-ant-properties-input" />
       
   121     </target>
       
   122 
       
   123     <target name="test-non-existing-ant-properties">
       
   124         <antcall target="non-existing-ant-properties" />
       
   125     </target>
       
   126 
       
   127     <target name="test-invalid-diamonds-server-properties">
       
   128         <antcall target="invalid-diamonds-server-properties" />
       
   129         <echo message="target with invalid-diamonds-server-properties" />
       
   130     </target>
       
   131 
       
   132     <target name="test-compile-target">
       
   133         <antcall target="compile-target" />
       
   134     </target>
       
   135 
       
   136     <target name="test-version">
       
   137         <antcall target="version" />
       
   138     </target>
       
   139 
       
   140     <target name="test-buildid-set">
       
   141         <echo>${diamonds.build.id}</echo>
       
   142         <au:assertTrue>
       
   143             <isset property="diamonds.build.id"/>
       
   144         </au:assertTrue>
       
   145     </target>
       
   146 
       
   147     <target name="test-buildid-notset">
       
   148         <au:assertFalse>
       
   149             <isset property="diamonds.build.id"/>
       
   150         </au:assertFalse>
       
   151     </target>
       
   152 
       
   153     <target name="test-echo-operation">
       
   154         <echo message="echo operation: test" />
       
   155     </target>
       
   156 
       
   157     <target name="test-echo-operation1">
       
   158         <echo message="echo operation1: test" />
       
   159     </target>
       
   160 
       
   161     <target name="test-echo-operation2">
       
   162         <echo message="echo operation2: test" />
       
   163     </target>
       
   164 
       
   165     <target name="test-echo-operation3">
       
   166         <echo message="echo operation3: test" />
       
   167     </target>
       
   168 
       
   169     <target name="test-echo-operation4">
       
   170         <echo message="echo operation4: test" />
       
   171     </target>
       
   172 
       
   173     <target name="test-echo-operation5">
       
   174         <echo message="echo operation5: test" />
       
   175     </target>
       
   176 
       
   177     <target name="test-depend-target" depends="test-echo-operation">
       
   178         <au:assertFileExists file="${diamonds.output.dir}/diamonds_stage.xml" />
       
   179     </target>
       
   180 
       
   181     <target name="test-ant-call">
       
   182         <echo message="test-ant-call" />
       
   183         <delete file="${diamonds.output.dir}/diamonds_stage.xml" failonerror="false" />
       
   184         <antcall target="test-echo-operation1" />
       
   185         <au:assertFileExists file="${diamonds.output.dir}/diamonds_stage.xml" />
       
   186     </target>
       
   187 
       
   188     <target name="test-ant-call-multiple">
       
   189         <echo message="test-ant-call" />
       
   190         <delete file="${diamonds.output.dir}/diamonds_stage.xml" failonerror="false" />
       
   191         <antcall target="test-echo-operation2" />
       
   192         <au:assertFileExists file="${diamonds.output.dir}/diamonds_stage.xml" />
       
   193         <antcall target="test-echo-operation3" />
       
   194         <au:assertFileExists file="${diamonds.output.dir}/diamonds_stage.xml" />
       
   195     </target>
       
   196 
       
   197     <target name="test-ant-call-multiple-parallel">
       
   198         <echo message="test-ant-call" />
       
   199         <delete file="${diamonds.output.dir}/diamonds_stage.xml" failonerror="false" />
       
   200         <parallel>
       
   201             <antcall target="test-echo-operation4" />
       
   202             <antcall target="test-echo-operation5" />
       
   203         </parallel>
       
   204         <au:assertFileExists file="${diamonds.output.dir}/diamonds_stage.xml" />
       
   205     </target>
       
   206 
       
   207     <target name="sequence-config-test-target-1">
       
   208         <au:assertFileExists file="${diamonds.output.dir}/diamonds_stage.xml" />
       
   209     </target>
       
   210 
       
   211     <target name="sequence-config-test-target-2">
       
   212         <au:assertFileExists file="${diamonds.output.dir}/diamonds_stage.xml" />
       
   213     </target>
       
   214 
       
   215     <target name="test-all" depends="test-buildid-notset, diamonds, test-buildid-set, test-defer-type, test-version,test-create-bom-log" />
    53 </project>
   216 </project>