buildframework/helium/external/helium-antlib/signaling/tests/test_signal/test_signaling.ant.xml
changeset 179 d8ac696cc51f
parent 1 be27ed110b50
child 180 e02a83d4c571
child 592 3215c239276a
equal deleted inserted replaced
1:be27ed110b50 179:d8ac696cc51f
     1 <?xml version="1.0"?>
       
     2 <!-- 
       
     3 ============================================================================ 
       
     4 Name        : test_signaling.ant.xml 
       
     5 Part of     : Helium AntLib
       
     6 
       
     7 Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     8 All rights reserved.
       
     9 This component and the accompanying materials are made available
       
    10 under the terms of the License "Eclipse Public License v1.0"
       
    11 which accompanies this distribution, and is available
       
    12 at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    13 
       
    14 Initial Contributors:
       
    15 Nokia Corporation - initial contribution.
       
    16 
       
    17 Contributors:
       
    18 
       
    19 Description:
       
    20 
       
    21 ============================================================================
       
    22 -->
       
    23 <project name="test-signaling" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
       
    24     <description>
       
    25         Test all the helium signals
       
    26     </description>
       
    27 
       
    28     <dirname property="project.dir.signaling" file="${ant.file.test-signaling}" />
       
    29 
       
    30     <taskdef resource="com/nokia/helium/core/ant/antlib.xml" uri="http://www.nokia.com/helium" />
       
    31     <import file="test_signaling_config.ant.xml" />
       
    32 
       
    33     <property name="build.summary.file" location="${project.dir.signaling}/data/ido_tedo_mcl_devlon52_ec_MCL.52.105_summary.log.xml" />
       
    34 
       
    35     <target name="target-valid-config1">
       
    36         <echo message="valid configuration1" />
       
    37     </target>
       
    38 
       
    39     <target name="target-valid-config2">
       
    40         <echo message="valid configuration2" />
       
    41     </target>
       
    42 
       
    43     <target name="target-valid-config3">
       
    44         <echo message="valid configuration3" />
       
    45     </target>
       
    46 
       
    47     <target name="target-valid-config4">
       
    48         <echo message="valid configuration4" />
       
    49     </target>
       
    50 
       
    51     <target name="target-valid-config5">
       
    52         <echo message="valid configuration5" />
       
    53     </target>
       
    54 
       
    55     <target name="target-invalid-config1">
       
    56         <echo message="invalid configuration1" />
       
    57     </target>
       
    58 
       
    59     <target name="target-invalid-config2">
       
    60         <echo message="invalid configuration2" />
       
    61     </target>
       
    62 
       
    63     <target name="target-invalid-config3">
       
    64         <echo message="invalid configuration3" />
       
    65     </target>
       
    66 
       
    67     <target name="target-invalid-config4">
       
    68         <echo message="invalid configuration4" />
       
    69     </target>
       
    70 
       
    71     <target name="target-invalid-config5">
       
    72         <echo message="invalid configuration5" />
       
    73     </target>
       
    74 
       
    75     <target name="target-invalid-config6">
       
    76         <echo message="invalid configuration6" />
       
    77     </target>
       
    78 
       
    79     <target name="target-invalid-config7">
       
    80         <echo message="invalid configuration7" />
       
    81     </target>
       
    82 
       
    83     <target name="target-invalid-config8">
       
    84         <echo message="invalid configuration8" />
       
    85     </target>
       
    86 
       
    87     <target name="target-invalid-config9">
       
    88         <echo message="invalid configuration9" />
       
    89     </target>
       
    90 
       
    91     <target name="test-case1">
       
    92         <echo message="testing config without signal input" />
       
    93         <antcall target="target-valid-config1" inheritRefs="true"/>
       
    94     </target>
       
    95 
       
    96     <target name="test-case2">
       
    97         <echo message="testing config without signal input" />
       
    98         <antcall target="target-valid-config2" inheritRefs="true" />
       
    99     </target>
       
   100 
       
   101     <target name="test-case3">
       
   102         <echo message="testing config without signal input" />
       
   103         <antcall target="target-valid-config3" inheritRefs="true" />
       
   104     </target>
       
   105 
       
   106     <target name="test-case4">
       
   107         <echo message="testing config without signal input" />
       
   108         <antcall target="target-valid-config4" inheritRefs="true" />
       
   109     </target>
       
   110 
       
   111     <target name="test-case5">
       
   112         <echo message="testing config without signal input" />
       
   113         <antcall target="target-valid-config5" inheritRefs="true" />
       
   114     </target>
       
   115 
       
   116     <target name="test-case6">
       
   117         <echo message="testing config without signal input" />
       
   118         <au:expectfailure>
       
   119             <antcall target="target-invalid-config1" inheritRefs="true" />
       
   120         </au:expectfailure>
       
   121     </target>
       
   122 
       
   123     <target name="test-case7">
       
   124         <echo message="testing when the named target is not exists, so signal" />
       
   125         <antcall target="target-invalid-config2" inheritRefs="true" />
       
   126     </target>
       
   127 
       
   128     <target name="test-case8">
       
   129         <!-- This test case is not valid anymore, now the attribute validation is done 
       
   130     	     at Ant parsing level -->
       
   131         <!--echo message="testing config without signal input" />
       
   132         <au:expectfailure>
       
   133             <antcall target="target-invalid-config3" inheritRefs="true" />
       
   134         </au:expectfailure-->
       
   135     </target>
       
   136 
       
   137     <target name="test-case9">
       
   138         <echo message="testing config without signal input" />
       
   139         <au:expectfailure>
       
   140             <antcall target="target-invalid-config4" inheritRefs="true" />
       
   141         </au:expectfailure>
       
   142     </target>
       
   143 
       
   144     <target name="test-case10">
       
   145         <echo message="testing config without signal input" />
       
   146         <au:expectfailure>
       
   147             <antcall target="target-invalid-config5" inheritRefs="true" />
       
   148         </au:expectfailure>
       
   149     </target>
       
   150 
       
   151     <target name="test-case11">
       
   152         <echo message="testing config without signal input" />
       
   153         <au:expectfailure>
       
   154             <antcall target="target-invalid-config6" inheritRefs="true" />
       
   155         </au:expectfailure>
       
   156     </target>
       
   157 
       
   158     <target name="test-case12">
       
   159         <echo message="testing config without signal input" />
       
   160         <au:expectfailure>
       
   161             <antcall target="target-invalid-config7" inheritRefs="true" />
       
   162         </au:expectfailure>
       
   163     </target>
       
   164 
       
   165     <target name="test-case13">
       
   166         <echo message="testing config without signal input" />
       
   167         <au:expectfailure>
       
   168             <antcall target="target-invalid-config8" inheritRefs="true" />
       
   169         </au:expectfailure>
       
   170     </target>
       
   171 
       
   172     <target name="test-case14">
       
   173         <echo message="testing config without signal input" />
       
   174         <au:expectfailure>
       
   175             <antcall target="target-invalid-config9" inheritRefs="true" />
       
   176         </au:expectfailure>
       
   177     </target>
       
   178 
       
   179     <!-- functionality testing -->
       
   180     <target name="fail-now-false-condition">
       
   181         <echo message="fail-now-false-condition target: configured to fail now - false condition" />
       
   182     </target>
       
   183 
       
   184     <target name="fail-now-true-condition">
       
   185         <echo message="fail-now-true-condition target: configured to fail now - true condition" />
       
   186     </target>
       
   187 
       
   188     <target name="fail-no-condition">
       
   189         <echo message="fail-now-false-condition target: configured to fail now - true condition" />
       
   190     </target>
       
   191 
       
   192     <target name="fail-defer-false-condition">
       
   193         <echo message="fail-defer-false-condition target: configured to fail later - false condition" />
       
   194     </target>
       
   195 
       
   196     <target name="fail-defer-true-condition">
       
   197         <echo message="${number.of.errors}" />
       
   198         <echo message="fail-defer-true-condition target: configured to fail later - true condition" />
       
   199     </target>
       
   200 
       
   201     <target name="fail-never-false-condition">
       
   202         <echo message="fail-never-false-condition target: configured to fail never - false condition" />
       
   203     </target>
       
   204 
       
   205     <target name="fail-never-true-condition">
       
   206         <echo message="fail-never-true-condition target: configured to fail never - true condition" />
       
   207     </target>
       
   208 
       
   209     <target name="test-fail-now-false-condition">
       
   210         <antcall target="fail-now-false-condition" inheritRefs="true" />
       
   211     </target>
       
   212 
       
   213     <target name="compile-signal-test">
       
   214         <au:expectfailure>
       
   215             <echo message="compile-signal failure test" />
       
   216         </au:expectfailure>
       
   217     </target>
       
   218 
       
   219     <target name="test-compile-signal-test">
       
   220         <au:expectfailure>
       
   221             <antcall target="compile-signal-test" inheritRefs="true" />
       
   222         </au:expectfailure>
       
   223     </target>
       
   224 
       
   225     <target name="test-fail-now-true-condition">
       
   226         <au:expectfailure>
       
   227             <antcall target="fail-now-true-condition" inheritRefs="true" />
       
   228         </au:expectfailure>
       
   229     </target>
       
   230 
       
   231     <target name="test-fail-no-condition" >
       
   232         <antcall target="fail-no-condition" inheritRefs="true" />
       
   233     </target>
       
   234 
       
   235     <target name="test-fail-defer-false-condition">
       
   236         <antcall target="fail-defer-false-condition" inheritRefs="true" />
       
   237     </target>
       
   238 
       
   239     <target name="test-fail-defer-true-condition">
       
   240         <antcall target="fail-defer-true-condition" inheritRefs="true"/>
       
   241         <au:assertTrue>
       
   242             <hlm:hasDeferredFailure name="inputFailDefer"/>
       
   243         </au:assertTrue>
       
   244         <hlm:clearDeferredFailures/>
       
   245     </target>
       
   246 
       
   247     <target name="test-fail-never-false-condition">
       
   248         <antcall target="fail-never-false-condition" inheritRefs="true" />
       
   249     </target>
       
   250 
       
   251     <target name="test-fail-never-true-condition">
       
   252         <antcall target="fail-never-true-condition" inheritRefs="true" />
       
   253     </target>
       
   254 
       
   255 
       
   256     <target name="test-all" depends="test-fail-all, test-case-all,test-compile-signal-test" />
       
   257     <target name="test-fail-all" depends="test-fail-now-false-condition, test-fail-now-true-condition,
       
   258                 test-fail-no-condition,test-fail-defer-false-condition, test-fail-defer-true-condition,
       
   259                 test-fail-never-false-condition, fail-never-false-condition, fail-never-true-condition" />
       
   260     <target name="test-case-all" depends="test-case1, test-case2, test-case3, test-case4, test-case5, test-case6,
       
   261                 test-case7,test-case8,test-case9,test-case10,test-case11,test-case12,test-case13,test-case14" />
       
   262 </project>