buildframework/helium/sf/java/sysdef/tests/antunit/test_filter_sysdef.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:
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     2
<!-- 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     3
============================================================================ 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     4
Name        : test_filter_sysdef.ant.xml 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     5
Part of     : Helium AntLib
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     6
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     7
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     8
All rights reserved.
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     9
This component and the accompanying materials are made available
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    10
under the terms of the License "Eclipse Public License v1.0"
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    11
which accompanies this distribution, and is available
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    12
at the URL "http://www.eclipse.org/legal/epl-v10.html".
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    13
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    14
Initial Contributors:
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    15
Nokia Corporation - initial contribution.
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    16
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    17
Contributors:
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    18
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    19
Description:
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    20
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    21
============================================================================
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    22
-->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    23
<project name="test-filter-sysdef" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    24
    <description>Helium antlib filter sysdef tests.</description>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    25
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    26
    <taskdef resource="com/nokia/helium/sysdef/ant/antlib.xml" uri="http://www.nokia.com/helium" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    27
    <property name="epocroot" location="../../demo/data" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    28
    <property name="epocroot.temp" location="${epocroot}/temp" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    29
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    30
    <!-- is called prior to the test -->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    31
    <target name="setUp">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    32
        <delete dir="${epocroot.temp}/" failonerror="false" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    33
        <mkdir dir="${epocroot.temp}" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    34
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    35
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    36
    <!-- is called after the test, even if that caused an error -->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    37
    <target name="tearDown">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    38
        <delete dir="${epocroot.temp}" failonerror="false" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    39
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    40
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    41
    <target name="test-noargs">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    42
        <au:expectfailure expectedMessage="'srcfile' attribute is not defined">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    43
            <hlm:filterSysdef />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    44
        </au:expectfailure>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    45
        <au:assertFileDoesntExist file="${epocroot.temp}/output.sysdef.xml" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    46
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    47
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    48
    <target name="test-destfile-missing">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    49
        <au:expectfailure expectedMessage="'destfile' attribute is not defined">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    50
            <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    51
        </au:expectfailure>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    52
        <au:assertFileDoesntExist file="${epocroot.temp}/output.sysdef.xml" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    53
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    54
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    55
    <target name="test-no-nested-filter">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    56
        <au:expectfailure expectedMessage="You must define at least one nested filterset element.">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    57
            <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    58
            destfile="${epocroot.temp}/filtered.xml" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    59
        </au:expectfailure>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    60
        <au:assertFileDoesntExist file="${epocroot.temp}/filtered.xml" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    61
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    62
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    63
    <target name="test-empty-nested-filterset">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    64
        <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    65
            destfile="${epocroot.temp}/filtered.xml">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    66
            <filterSet/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    67
        </hlm:filterSysdef>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    68
        <au:assertFileExists file="${epocroot.temp}/filtered.xml" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    69
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    70
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    71
    <target name="test-nested-filterset">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    72
        <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    73
            destfile="${epocroot.temp}/filtered.xml">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    74
            <filterSet>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    75
                <filter filter="test" type="has" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    76
                <filter filter="test_unittest" type="has" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    77
            </filterSet>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    78
        </hlm:filterSysdef>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    79
        <au:assertFileExists file="${epocroot.temp}/filtered.xml" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    80
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    81
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    82
    <target name="test-nested-filterset-missing-filter-attribute">
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    83
        <au:expectfailure expectedMessage="'filter' or/and 'idlist' attribute is not defined.">
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    84
        <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    85
            destfile="${epocroot.temp}/filtered.xml">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    86
            <filterSet>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    87
                <filter type="has" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    88
            </filterSet>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    89
        </hlm:filterSysdef>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    90
        </au:expectfailure>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    91
        <au:assertFileDoesntExist file="${epocroot.temp}/filtered.xml" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    92
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    93
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    94
    <target name="test-nested-filterset-refid">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    95
        <hlm:sysdefFilterSet id="filters.id">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    96
            <filter filter="test" type="has" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    97
        </hlm:sysdefFilterSet>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    98
        <hlm:sysdefFilterSet id="filters2.id">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    99
            <filter filter="test_unittest" type="has" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   100
        </hlm:sysdefFilterSet>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   101
        <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   102
            destfile="${epocroot.temp}/filtered.xml">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   103
            <filterSet refid="filters.id" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   104
            <hlm:sysdefFilterSet refid="filters2.id"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   105
        </hlm:filterSysdef>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   106
        <au:assertFileExists file="${epocroot.temp}/filtered.xml" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   107
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   108
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   109
    <target name="test-nested-filterset-verbatim">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   110
        <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" 
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   111
            destfile="${epocroot.temp}/filtered.xml">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   112
            <filterSet>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   113
                <filter filter="test" type="has" verbatim="component"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   114
            </filterSet>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   115
        </hlm:filterSysdef>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   116
        <au:assertFileExists file="${epocroot.temp}/filtered.xml" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   117
    </target>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   118
    
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   119
    <target name="test-nested-filterset-verbatim-nofilter">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   120
        <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" 
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   121
            destfile="${epocroot.temp}/filtered.xml">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   122
            <filterSet>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   123
                <filter verbatim="component"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   124
            </filterSet>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   125
        </hlm:filterSysdef>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   126
        <au:assertFileExists file="${epocroot.temp}/filtered.xml" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   127
    </target>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   128
    
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   129
    <target name="test-nested-filterset-with-config-missing-file-attribute">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   130
        <au:expectfailure expectedMessage="'file' attribute is not defined.">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   131
            <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" 
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   132
                    destfile="${epocroot.temp}/filtered.xml">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   133
                <filterSet>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   134
                    <config />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   135
                </filterSet>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   136
            </hlm:filterSysdef>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   137
        </au:expectfailure>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   138
    </target>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   139
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   140
    <target name="test-nested-filterset-with-config-missing-invalid-file">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   141
        <au:expectfailure expectedMessage="Could not find file:">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   142
            <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" 
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   143
                    destfile="${epocroot.temp}/filtered.xml">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   144
                <filterSet>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   145
                    <config file="invalid_config.hrh"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   146
                </filterSet>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   147
            </hlm:filterSysdef>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   148
        </au:expectfailure>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   149
    </target>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   150
	
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   151
    <target name="test-nested-filterset-with-config-missing-valid-file">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   152
        <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" 
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   153
                destfile="${epocroot.temp}/filtered.xml">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   154
            <filterSet>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   155
                <config file="../data/filter/config/config.hrh"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   156
            </filterSet>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   157
        </hlm:filterSysdef>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   158
        <au:assertFileExists file="${epocroot.temp}/filtered.xml" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   159
        <au:assertLogContains text="-config" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   160
        <au:assertLogContains text="-output" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   161
        <au:assertLogDoesntContain text="-I" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   162
    </target>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   163
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   164
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   165
	
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   166
    <target name="test-nested-filterset-with-config-missing-valid-file-and-includes">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   167
        <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" 
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   168
                destfile="${epocroot.temp}/filtered.xml">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   169
            <filterSet>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   170
                <config file="../data/filter/config/config.hrh"
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   171
                	includes="${epocroot.temp}/epoc32/include${path.separator}${epocroot.temp}/epoc32/config"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   172
            </filterSet>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   173
        </hlm:filterSysdef>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   174
        <au:assertFileExists file="${epocroot.temp}/filtered.xml" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   175
        <au:assertLogContains text="-config" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   176
        <au:assertLogContains text="-output" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   177
        <au:assertLogContains text="-I${epocroot.temp}${file.separator}epoc32${file.separator}include" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   178
        <au:assertLogContains text="-I${epocroot.temp}${file.separator}epoc32${file.separator}config" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   179
    </target>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   180
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   181
    <target name="test-nested-filterset-with-config-check-property-for-home-invalid">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   182
    	<property name="sysdef.tools.home" location="../../demo/data/invalid_dir" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   183
        <au:expectfailure expectedMessage="The sysdef.tools.home property refers to an invalid directory:">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   184
            <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" 
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   185
                destfile="${epocroot.temp}/filtered.xml">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   186
                <filterSet>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   187
                    <config file="../data/filter/config/config.hrh"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   188
                </filterSet>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   189
            </hlm:filterSysdef>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   190
        </au:expectfailure>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   191
        <au:assertFileDoesntExist file="${epocroot.temp}/filtered.xml" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   192
    </target>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   193
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   194
    <target name="test-nested-filterset-with-config-check-property-for-home">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   195
        <property name="sysdef.tools.home" location="../../demo/data/sf/os/buildtools/bldsystemtools/sysdeftools" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   196
        <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" 
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   197
            destfile="${epocroot.temp}/filtered.xml">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   198
            <filterSet>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   199
                <config file="../data/filter/config/config.hrh"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   200
            </filterSet>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   201
        </hlm:filterSysdef>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   202
        <au:assertFileExists file="${epocroot.temp}/filtered.xml" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   203
    </target>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   204
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   205
</project>