buildframework/helium/sf/java/sysdef/tests/antunit/test_create_root_sysdef.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" encoding="UTF-8"?>
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_mapping_file_creation.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
<project name="test-create-root-sysdef" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    24
    <description>Helium antlib merge sysdef tests.</description>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    26
    <taskdef resource="com/nokia/helium/sysdef/ant/antlib.xml" uri="http://www.nokia.com/helium" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    27
    <property name="epocroot" location="../data/rootsysdef" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    28
    <property name="epocroot.temp" location="${epocroot}/temp" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    29
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
    <!-- is called prior to the test -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
    <target name="setUp">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    32
        <delete dir="${epocroot.temp}/" failonerror="false" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    33
        <mkdir dir="${epocroot.temp}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    36
    <!-- is called after the test, even if that caused an error -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
    <target name="tearDown">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
        <delete dir="${epocroot.temp}" failonerror="false" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    39
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    40
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    41
    <target name="test-missing-epocroot">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    42
        <au:expectfailure message="Must fail if epocroot is missing">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    43
            <hlm:createRootSysdef />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    44
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    45
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    46
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    47
    <target name="test-missing-destFile">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    48
        <au:expectfailure message="Must fail if epocroot is missing">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    49
            <hlm:createRootSysdef epocroot="${epocroot}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    50
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    51
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    52
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    53
    <target name="test-destFile-out-of-epocroot">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    54
        <au:expectfailure message="Must fail if destfile is not under epocroot">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    55
            <hlm:createRootSysdef epocroot="${epocroot}" destFile="${java.io.tmpdir}/root.sysdef.xml"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    56
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    57
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    58
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    59
            <!--
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    60
      This test checks how the task is behaving while a dir is given in place of a 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    61
      output file. Failure is of course expected, and clear error message shown.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    62
     -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    63
    <target name="test-create-root-invalid-dest-file">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    64
        <au:expectfailure message="Must fail in case of invalid destFile">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    65
            <hlm:createRootSysdef destFile="${epocroot.temp}/" epocroot="${epocroot}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    66
                <fileset dir="${epocroot}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    67
                    <include name="**/valid_package/package_definition.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    68
                </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    69
            </hlm:createRootSysdef>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    70
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    71
        <au:assertFileDoesntExist file="${epocroot.temp}/sysdef_model.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    72
        <au:assertLogContains text="Error while creating output file:" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    73
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    74
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    75
    <target name="test-create-root-invalid-dest-file-failonerror">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    76
        <hlm:createRootSysdef destFile="${epocroot.temp}/" epocroot="${epocroot}" failonerror="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    77
            <fileset dir="${epocroot}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    78
                <include name="**/valid_package/package_definition.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    79
            </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    80
        </hlm:createRootSysdef>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    81
        <au:assertFileDoesntExist file="${epocroot.temp}/sysdef_model.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    82
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    83
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    84
    <target name="test-create-root-sysdef-single-root">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    85
        <hlm:createRootSysdef destFile="${epocroot.temp}/sysdef_model.xml" epocroot="${epocroot}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    86
            <fileset dir="${epocroot}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    87
                <include name="**/valid_package/package_definition.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    88
            </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    89
        </hlm:createRootSysdef>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    90
        <au:assertFileExists file="${epocroot.temp}/sysdef_model.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    91
        <loadfile property="pkg.root" srcfile="${epocroot.temp}/sysdef_model.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    92
        <au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    93
            <contains string="${pkg.root}" substring="valid_package" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    94
        </au:assertTrue>
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
    <!--
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    98
      Check the generation of a root sysdef file.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    99
        * contains the correct package under the correct layer
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   100
        * url starts correctly
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   101
     -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   102
    <target name="test-create-root-sysdef-dual-root">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   103
        <hlm:createRootSysdef destFile="${epocroot.temp}/sysdef_model.xml" epocroot="${epocroot}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   104
            <fileset dir="${epocroot}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   105
                <include name="**/valid_package/package_definition.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   106
                <include name="**/valid_package_root2/package_definition.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   107
            </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   108
        </hlm:createRootSysdef>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   109
        <au:assertLogContains text="Creating ${epocroot.temp}${file.separator}sysdef_model.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   110
        <au:assertFileExists file="${epocroot.temp}/sysdef_model.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   111
        <loadfile property="pkg.root" srcfile="${epocroot.temp}/sysdef_model.xml"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   112
        <echo>${pkg.root}</echo>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   113
        <au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   114
            <contains string="${pkg.root}" substring="&quot;../root/layer/valid_package" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   115
        </au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   116
        <au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   117
            <contains string="${pkg.root}" substring="&quot;../root2/layer/valid_package_root2" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   118
        </au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   119
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   120
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   121
    <target name="test-create-root-sysdef-dual-root-invalid-pkg-data-file-failure">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   122
        <au:expectfailure message="Must fail if an pkgdata file is invalid.">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   123
            <hlm:createRootSysdef destFile="${epocroot.temp}/sysdef_model.xml" epocroot="${epocroot}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   124
                <fileset dir="${epocroot}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   125
                    <include name="**/valid_package/package_definition.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   126
                    <include name="**/invalid_pkg_data/package_definition.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   127
                </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   128
            </hlm:createRootSysdef>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   129
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   130
        <au:assertFileDoesntExist file="${epocroot.temp}/sysdef_model.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   131
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   132
            
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   133
    <target name="test-create-root-sysdef-dual-root-missing-pkg-data">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   134
        <au:expectfailure message="Must fail if an pkgdata file is missing.">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   135
            <hlm:createRootSysdef destFile="${epocroot.temp}/sysdef_model.xml" epocroot="${epocroot}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   136
                <fileset dir="${epocroot}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   137
                    <include name="**/valid_package/package_definition.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   138
                    <include name="**/missing_data_file_pkg/package_definition.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   139
                </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   140
            </hlm:createRootSysdef>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   141
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   142
        <au:assertFileDoesntExist file="${epocroot.temp}/sysdef_model.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   143
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   144
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   145
    <target name="test-create-root-sysdef-dual-root-missing-pkg-data-failonerror">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   146
        <hlm:createRootSysdef destFile="${epocroot.temp}/sysdef_model.xml" epocroot="${epocroot}" failonerror="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   147
            <fileset dir="${epocroot}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   148
                <include name="**/valid_package/package_definition.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   149
                <include name="**/missing_data_file_pkg/package_definition.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   150
            </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   151
        </hlm:createRootSysdef>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   152
        <au:assertFileExists file="${epocroot.temp}/sysdef_model.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   153
        <loadfile property="pkg.root" srcfile="${epocroot.temp}/sysdef_model.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   154
        <au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   155
            <contains string="${pkg.root}" substring="valid_package" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   156
        </au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   157
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   158
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   159
    <target name="test-create-root-sysdef-dual-root-missing-pkg-data-custom-template">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   160
        <hlm:createRootSysdef destFile="${epocroot.temp}/sysdef_model.txt" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   161
            epocroot="${epocroot}"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   162
            template="${epocroot}/template.txt.ftl">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   163
            <fileset dir="${epocroot}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   164
                <include name="**/valid_package/package_definition.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   165
            </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   166
        </hlm:createRootSysdef>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   167
        <au:assertFileExists file="${epocroot.temp}/sysdef_model.txt" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   168
        <loadfile property="pkg.root" srcfile="${epocroot.temp}/sysdef_model.txt" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   169
        <au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   170
            <contains string="${pkg.root}" substring="root/layer/valid_package" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   171
        </au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   172
        <au:assertLogContains text="Creating ${epocroot.temp}${file.separator}sysdef_model.txt" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   173
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   174
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   175
    <target name="test-create-root-sysdef-dual-root-missing-pkg-data-failonerror-custom-template">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   176
        <hlm:createRootSysdef destFile="${epocroot.temp}/sysdef_model.txt" 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   177
            epocroot="${epocroot}" failonerror="false"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   178
            template="${epocroot}/faulty_template.txt.ftl">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   179
            <fileset dir="${epocroot}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   180
                <include name="**/valid_package/package_definition.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   181
            </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   182
        </hlm:createRootSysdef>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   183
        <au:assertFileDoesntExist file="${epocroot.temp}/sysdef_model.txt" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   184
        <au:assertLogContains text="Error while creating output file: Unexpected end of file reached." />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   185
    </target>    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   186
</project>