buildframework/helium/sf/java/sbs/tests/antunit/test_sbs_input.ant.xml
author wbernard
Fri, 13 Aug 2010 14:59:05 +0300
changeset 628 7c4a911dc066
parent 588 c7c26511138f
permissions -rw-r--r--
helium_11.0.0-e00f171ca185
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
    <dirname property="test.sbs.dir" file="${ant.file.test-sbs-input}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
    <property name="working.dir" value="${test.sbs.dir}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
    <patternset id="includeLayerPatternSet" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    32
        <include name="include_layer_.*"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    33
    </patternset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
    <patternset id="includeNoneExistantLayerPatternSet" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    36
        <include name="nonexistant_nclude_layer_.*"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
    </patternset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    39
    <patternset id="emptySet" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    40
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    41
    <patternset id="excludeLayerPatternSet" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    42
        <exclude name="exclude_layer_.*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    43
    </patternset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    44
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    45
    <patternset id="incExcludeLayerPatternSet" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    46
        <include name="include_exclude_.*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    47
        <exclude name="include_exclude_non-matcher.*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    48
    </patternset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    49
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    50
    <patternset id="includeSomeNoneExistantLayerPatternSet" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    51
        <include name="include_exclude_.*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    52
        <exclude name="include_exclude_non-matcher.*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    53
        <include name="nonexistant_nclude_layer_.*"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    54
    </patternset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    55
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    56
    <patternset id="includeUnitLayerPatternSet" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    57
        <include name="api_test_layer" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    58
    </patternset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    59
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    60
    <patternset id="includeDefLayerPatternSet" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    61
        <include name="use_layer_real_Def_layer" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    62
    </patternset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    63
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    64
    <patternset id="includeNoNameLayerPatternSet" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    65
        <include name="use_no_name_layer" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    66
    </patternset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    67
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    68
    <patternset id="doNotIncludeAnyExistingLayer" >
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    69
        <include name="non_existing_layer" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    70
    </patternset>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    71
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    72
    <dirname property="project.dir" file="${ant.file.test-sbs-input}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    73
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    74
    <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    75
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    76
    <import file="${project.dir}/sbs_default_config.ant.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    77
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    78
    <target name="test-7952">
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    79
        <echo message="-----------test-7952-----------" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    80
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    81
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    82
            workingDir="${working.dir}" execute="false"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    83
        <au:assertLogContains text="-e emake" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    84
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    85
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    86
    <target name="test-without-sysdef">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    87
        <property name="build.system" value="sbs" />
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    88
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    89
       <au:expectfailure expectedMessage="'System Definition' file is missing" >
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    90
            <hlm:sbstask outputLog="tmp" sbsinput="pf_7952" workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    91
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    92
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    93
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    94
    <target name="test-without-working-dir">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    95
        <property name="build.system" value="sbs" />
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    96
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    97
        <au:expectfailure expectedMessage="'workingDir' must be set" >
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    98
            <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" execute="false" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    99
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   100
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   101
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   102
    <target name="test-sbs">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   103
        <property name="build.system" value="sbs" />
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   104
        <hlm:getsbsinputs config="sf_build" outputProperty="sbs-inputs"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   105
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   106
            workingDir="${working.dir}" execute="false"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   107
        <au:expectfailure>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   108
            <au:assertLogContains text="-e emake" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   109
        </au:expectfailure>    
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   110
    </target>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   111
    
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   112
    <target name="test-tools-sbs">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   113
        <property name="build.system" value="sbs" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   114
        <hlm:getsbsinputs config="sf_build2" outputProperty="sbs-inputs"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   115
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   116
            workingDir="${working.dir}" execute="false"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   117
        <au:assertLogContains text="-c tools" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   118
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   119
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   120
    <target name="test-sbs-ec">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   121
        <property name="build.system" value="sbs-ec" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   122
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   123
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   124
            workingDir="${working.dir}" execute="false"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   125
        <au:assertLogContains text="-e emake" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   126
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   127
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   128
    <target name="test-all-layers">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   129
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   130
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   131
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   132
            workingDir="${working.dir}" execute="false"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   133
        <au:assertLogContains text="test.sysdef.xml" />
587
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-include-layers">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   137
        <property name="build.system" value="sbs" />
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" 
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   140
            layerPatternSetRef="includeLayerPatternSet" workingDir="${working.dir}" 
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   141
            execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   142
        <au:assertLogContains text="sbs" />
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   143
        <au:assertLogContains text="-l include_layer_set" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   144
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   145
            <au:assertLogContains text="-l exclude_layer_set" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   146
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   147
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   148
            <au:assertLogContains text="-l include_exclude_matcher" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   149
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   150
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   151
            <au:assertLogContains text="-l include_exclude_non-matcher" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   152
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   153
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   154
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   155
    <target name="test-exclude-layers">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   156
        <property name="build.system" value="sbs-ec" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   157
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   158
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   159
            layerPatternSetRef="excludeLayerPatternSet" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   160
            workingDir="${working.dir}" execute="false"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   161
        <au:expectfailure>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   162
            <au:assertLogContains text="-l exclude_layer_set" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   163
        </au:expectfailure>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   164
        <au:assertLogContains text="-l include_layer_set" />
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:assertLogContains text="-l include_exclude_non-matcher" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   167
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   168
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   169
    <target name="test-nonexistant-layers">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   170
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   171
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   172
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   173
            layerPatternSetRef="includeNoneExistantLayerPatternSet" workingDir="${working.dir}"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   174
            execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   175
        <au:assertLogContains text="No matching layer" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   176
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   177
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   178
    <target name="test-nonexistant-with-some-layers">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   179
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   180
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   181
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   182
            layerPatternSetRef="includeSomeNoneExistantLayerPatternSet" workingDir="${working.dir}"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   183
            execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   184
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   185
            <au:assertLogContains text="-l exclude_layer_set" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   186
        </au:expectfailure>
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
        <au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   189
            <au:assertLogContains text="-l include_exclude_non-matcher" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   190
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   191
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   192
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   193
    <target name="test-include-unitID-layers">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   194
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   195
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   196
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   197
            layerPatternSetRef="includeUnitLayerPatternSet" workingDir="${working.dir}"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   198
            execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   199
        <au:assertLogContains text="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   200
        <au:assertLogContains text="-l api_test_layer" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   201
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   202
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   203
    <target name="test-include-exclude-layers">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   204
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   205
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   206
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   207
            layerPatternSetRef="incExcludeLayerPatternSet"
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   208
            workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   209
        <au:assertLogContains text="-l include_exclude_matcher" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   210
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   211
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   212
    <target name="test-empty-pattern-set">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   213
        <property name="build.system" value="sbs-ec" />
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   214
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   215
	    <au:expectfailure expectedMessage="sbstask doesn't support" > 
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   216
            <hlm:sbstask outputLog="tmp" config="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   217
                layerPatternSetRef="emptySet" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   218
                workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   219
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   220
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   221
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   222
    <target name="test-engine-inheritence1">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   223
        <property name="build.system" value="sbs-ec" />
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   224
        <hlm:getsbsinputs config="inherit1" outputProperty="sbs-inputs"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   225
	    <au:expectfailure expectedMessage="engine should not be null" > 
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   226
            <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   227
                workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   228
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   229
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   230
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   231
    <target name="test-engine-inheritence2">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   232
        <property name="build.system" value="sbs-ec" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   233
        <hlm:getsbsinputs config="inherit2" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   234
        <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
   235
        <au:assertLogContains text="-e emake" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   236
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   237
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   238
    <target name="test-engine-inheritence3">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   239
        <property name="build.system" value="sbs-ec" />
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   240
        <hlm:getsbsinputs config="inherit3" outputProperty="sbs-inputs"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   241
        <au:expectfailure expectedMessage="Config's engine type ec-helium not matching" >
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   242
            <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   243
                workingDir="${working.dir}" execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   244
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   245
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   246
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   247
    <target name="test-engine-inheritence4">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   248
        <property name="build.system" value="sbs-ec" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   249
        <hlm:getsbsinputs config="inherit4" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   250
        <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
   251
        <au:assertLogContains text="-e emake" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   252
        <au:assertLogContains text="logfile" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   253
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   254
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   255
    <target name="test-getinputs">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   256
        <property name="build.system" value="sbs-ec" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   257
        <hlm:getsbsinputs config="inherit3" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   258
        <echo message="sbs-inputs: ${sbs-inputs}" />
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   259
        <hlm:getVariableValue name="-f" property="sbs.log.file">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   260
            <hlm:sbsinput refid="${sbs-inputs}" />
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   261
        </hlm:getVariableValue>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   262
        <echo message="${sbs-inputs}" />
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   263
        <au:assertLogContains text="inherit3_sbs_input" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   264
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   265
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   266
    <target name="test-include-def-layer">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   267
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   268
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   269
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   270
            layerPatternSetRef="includeDefLayerPatternSet" workingDir="${working.dir}"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   271
            execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   272
        <au:assertLogContains text="sbs" />
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   273
        <au:assertLogContains text="-l use_layer_real_Def_layer" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   274
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   275
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   276
    <target name="test-include-error-layer">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   277
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   278
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   279
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   280
            layerPatternSetRef="includeNoNameLayerPatternSet" workingDir="${working.dir}"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   281
            execute="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   282
        <au:assertLogContains text="-l use_no_name_layer" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   283
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   284
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   285
    <target name="test-include-no-layer">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   286
        <property name="build.system" value="sbs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   287
        <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   288
        <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   289
            layerPatternSetRef="doNotIncludeAnyExistingLayer" workingDir="${working.dir}"
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   290
            execute="false"/>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   291
        <au:assertLogContains text="--logfile" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   292
        <au:assertLogContains text="Warning: No matching layers to build from system definition file, skipped" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   293
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   294
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   295
</project>