buildframework/helium/tools/common/test/test_getvariablevalue.ant.xml
changeset 179 d8ac696cc51f
parent 1 be27ed110b50
equal deleted inserted replaced
1:be27ed110b50 179:d8ac696cc51f
    19 Description:
    19 Description:
    20 
    20 
    21 ============================================================================
    21 ============================================================================
    22 -->
    22 -->
    23 <project name="test_getvariablevalue" xmlns:au="org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
    23 <project name="test_getvariablevalue" xmlns:au="org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
       
    24     <description>
       
    25         Get Variable Value Testing target
       
    26     </description>
    24     <property environment="env"/>
    27     <property environment="env"/>
    25     
    28     
    26     <property name="helium.dir" location="../../.." />
    29     <property name="helium.dir" location="../../.." />
    27     <import file="../../../helium.ant.xml"/>
    30     <import file="../../../helium.ant.xml"/>
    28         
    31         
    29     
    32     
    30     <target name="test-getvariablevalue">
    33     <target name="test-getvariablevalue">
    31         <hlm:argSet id="test.variableSet">
    34         <hlm:sbsinput id="test.variableSet">
    32             <variable name="v1" value="the_value"/>
    35             <sbsOptions>
    33         </hlm:argSet>
    36                 <arg name="v1" value="test"/>
       
    37             </sbsOptions>
       
    38         </hlm:sbsinput>
       
    39         
    34         <hlm:getVariableValue name="v1" property="v1.value">
    40         <hlm:getVariableValue name="v1" property="v1.value">
    35             <hlm:argSet refid="test.variableSet"/>
    41             <hlm:sbsinput refid="test.variableSet" />
    36         </hlm:getVariableValue>
    42         </hlm:getVariableValue>
    37         <au:assertTrue>
    43         <au:assertTrue>
    38             <equals arg1="${v1.value}" arg2="the_value"/>
    44             <equals arg1="${v1.value}" arg2="test"/>
    39         </au:assertTrue>
    45         </au:assertTrue>
    40     </target>    
    46     </target>    
    41 </project>
    47 </project>
    42