buildframework/helium/sf/java/sbs/tests/antunit/test_sbs_input.ant.xml
author wbernard
Tue, 27 Apr 2010 08:33:08 +0300
changeset 587 85df38eb4012
child 588 c7c26511138f
permissions -rw-r--r--
helium_9.0-a7879c935424
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     1
<?xml version="1.0"?>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     2
<!-- 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     3
============================================================================ 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     4
Name        : test_sbs_input.ant.xml 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     5
Part of     : Helium AntLib
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     6
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     7
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     8
All rights reserved.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     9
This component and the accompanying materials are made available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    10
under the terms of the License "Eclipse Public License v1.0"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    11
which accompanies this distribution, and is available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    12
at the URL "http://www.eclipse.org/legal/epl-v10.html".
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    13
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    14
Initial Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    15
Nokia Corporation - initial contribution.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    16
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    17
Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    18
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    19
Description:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    20
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    21
============================================================================
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    22
-->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    23
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    24
<project name="test-sbs-input" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
    <description>Helium Antlib sbs unittests.</description>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    26
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    27
    <taskdef resource="com/nokia/helium/core/ant/antlib.xml" uri="http://www.nokia.com/helium"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    28
    <taskdef resource="com/nokia/helium/sbs/ant/antlib.xml" uri="http://www.nokia.com/helium"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    29
    <taskdef name="getVariableValue" classname="com.nokia.helium.core.ant.taskdefs.GetValueFromVariableSet"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
    <dirname property="test.sbs.dir" file="${ant.file.test-sbs-input}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
    <property name="working.dir" value="${test.sbs.dir}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    32
    <patternset id="includeLayerPatternSet" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    33
        <include name="include_layer_.*"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
    </patternset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    36
    <patternset id="includeNoneExistantLayerPatternSet" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
        <include name="nonexistant_nclude_layer_.*"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
    </patternset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    39
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    40
    <patternset id="emptySet" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    41
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    42
    <patternset id="excludeLayerPatternSet" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    43
        <exclude name="exclude_layer_.*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    44
    </patternset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    45
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    46
    <patternset id="incExcludeLayerPatternSet" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    47
        <include name="include_exclude_.*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    48
        <exclude name="include_exclude_non-matcher.*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    49
    </patternset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    50
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    51
    <patternset id="includeSomeNoneExistantLayerPatternSet" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    52
        <include name="include_exclude_.*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    53
        <exclude name="include_exclude_non-matcher.*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    54
        <include name="nonexistant_nclude_layer_.*"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    55
    </patternset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    56
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    57
    <patternset id="includeUnitLayerPatternSet" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    58
        <include name="api_test_layer" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    59
    </patternset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    60
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    61
    <patternset id="includeDefLayerPatternSet" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    62
        <include name="use_layer_real_Def_layer" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    63
    </patternset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    64
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    65
    <patternset id="includeNoNameLayerPatternSet" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    66
        <include name="use_no_name_layer" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    67
    </patternset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    68
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    69
    <dirname property="project.dir" file="${ant.file.test-sbs-input}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    70
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    71
    <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    72
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    73
    <import file="${project.dir}/sbs_default_config.ant.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    74
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    75
    <target name="test-7952">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    76
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    77
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    78
            workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    79
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    80
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    81
    <target name="test-without-sysdef">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    82
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    83
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    84
            <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    85
            <hlm:sbstask outputLog="tmp" sbsinput="pf_7952" workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    86
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    87
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    88
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    89
    <target name="test-without-working-dir">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    90
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    91
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    92
            <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    93
            <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" execute="false" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    94
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    95
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    96
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    97
    <target name="test-sbs">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    98
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    99
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   100
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   101
            workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   102
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   103
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   104
    <target name="test-sbs-ec">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   105
        <property name="build.system" value="sbs-ec" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   106
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   107
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   108
            workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   109
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   110
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   111
    <target name="test-all-layers">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   112
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   113
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   114
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   115
            workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   116
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   117
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   118
    <target name="test-include-layers">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   119
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   120
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   121
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   122
            layerPatternSetRef="includeLayerPatternSet" workingDir="${working.dir}"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   123
            execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   124
        <au:assertLogContains text="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   125
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   126
            <au:assertLogContains text="-l exclude_layer_set" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   127
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   128
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   129
            <au:assertLogContains text="-l include_exclude_matcher" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   130
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   131
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   132
            <au:assertLogContains text="-l include_exclude_non-matcher" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   133
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   134
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   135
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   136
    <target name="test-exclude-layers">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   137
        <property name="build.system" value="sbs-ec" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   138
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   139
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   140
            layerPatternSetRef="excludeLayerPatternSet" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   141
            workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   142
        <au:assertLogContains text="-l include_layer_set" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   143
        <au:assertLogContains text="-l include_exclude_matcher" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   144
        <au:assertLogContains text="-l include_exclude_non-matcher" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   145
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   146
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   147
    <target name="test-nonexistant-layers">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   148
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   149
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   150
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   151
            layerPatternSetRef="includeNoneExistantLayerPatternSet" workingDir="${working.dir}"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   152
            execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   153
        <au:assertLogContains text="No matching layer" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   154
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   155
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   156
    <target name="test-nonexistant-with-some-layers">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   157
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   158
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   159
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   160
            layerPatternSetRef="includeSomeNoneExistantLayerPatternSet" workingDir="${working.dir}"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   161
            execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   162
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   163
            <au:assertLogContains text="-l exclude_layer_set" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   164
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   165
        <au:assertLogContains text="-l include_exclude_matcher" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   166
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   167
            <au:assertLogContains text="-l include_exclude_non-matcher" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   168
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   169
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   170
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   171
    <target name="test-include-unitID-layers">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   172
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   173
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   174
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   175
            layerPatternSetRef="includeUnitLayerPatternSet" workingDir="${working.dir}"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   176
            execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   177
        <au:assertLogContains text="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   178
        <au:assertLogContains text="-l api_test_layer" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   179
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   180
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   181
    <target name="test-include-exclude-layers">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   182
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   183
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   184
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   185
            layerPatternSetRef="incExcludeLayerPatternSet" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   186
            workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   187
        <au:assertLogContains text="-l include_exclude_matcher" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   188
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   189
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   190
    <target name="test-empty-pattern-set">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   191
        <property name="build.system" value="sbs-ec" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   192
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   193
            <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   194
            <hlm:sbstask outputLog="tmp" config="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   195
                layerPatternSetRef="emptySet" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   196
                workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   197
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   198
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   199
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   200
    <target name="test-engine-inheritence1">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   201
        <property name="build.system" value="sbs-ec" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   202
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   203
            <hlm:getsbsinputs config="inherit1" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   204
            <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   205
                workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   206
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   207
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   208
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   209
    <target name="test-engine-inheritence2">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   210
        <property name="build.system" value="sbs-ec" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   211
        <hlm:getsbsinputs config="inherit2" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   212
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   213
        <au:assertLogContains text="-e emake" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   214
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   215
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   216
    <target name="test-engine-inheritence3">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   217
        <property name="build.system" value="sbs-ec" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   218
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   219
            <hlm:getsbsinputs config="inherit3" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   220
            <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   221
                workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   222
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   223
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   224
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   225
    <target name="test-engine-inheritence4">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   226
        <property name="build.system" value="sbs-ec" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   227
        <hlm:getsbsinputs config="inherit4" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   228
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   229
        <au:assertLogContains text="-e emake" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   230
        <au:assertLogContains text="logfile" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   231
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   232
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   233
    <target name="test-getinputs">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   234
        <property name="build.system" value="sbs-ec" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   235
        <hlm:getsbsinputs config="inherit3" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   236
        <echo message="sbs-inputs: ${sbs-inputs}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   237
        <getVariableValue name="-f" property="sbs.log.file">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   238
            <hlm:sbsinput refid="${sbs-inputs}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   239
        </getVariableValue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   240
        <echo message="${sbs-inputs}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   241
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   242
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   243
    <target name="test-include-def-layer">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   244
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   245
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   246
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   247
            layerPatternSetRef="includeDefLayerPatternSet" workingDir="${working.dir}"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   248
            execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   249
        <au:assertLogContains text="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   250
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   251
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   252
    <target name="test-include-error-layer">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   253
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   254
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   255
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   256
            layerPatternSetRef="includeNoNameLayerPatternSet" workingDir="${working.dir}"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   257
            execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   258
        <au:assertLogContains text="-l use_no_name_layer" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   259
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   260
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   261
    <target name="test-ctc">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   262
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   263
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   264
        <hlm:ctctask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   265
            layerPatternSetRef="includeNoNameLayerPatternSet" workingDir="${working.dir}"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   266
            execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   267
        <au:assertLogContains text="-i m sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   268
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   269
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   270
</project>