buildframework/helium/tools/common/test/test_rebaseanddeconf_task.ant.xml
author wbernard
Wed, 23 Dec 2009 19:29:07 +0200
changeset 179 d8ac696cc51f
permissions -rw-r--r--
helium_7.0-r14027
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     2
<!-- 
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     3
============================================================================ 
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     4
Name        : test_rebaseanddeconf_task.ant.xml 
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     5
Part of     : Helium 
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     6
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     7
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     8
All rights reserved.
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     9
This component and the accompanying materials are made available
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    10
under the terms of the License "Eclipse Public License v1.0"
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    11
which accompanies this distribution, and is available
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    12
at the URL "http://www.eclipse.org/legal/epl-v10.html".
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    13
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    14
Initial Contributors:
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    15
Nokia Corporation - initial contribution.
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    16
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    17
Contributors:
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    18
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    19
Description:
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    20
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    21
============================================================================
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    22
-->
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    23
<project name="test_rebaseanddeconf_task" xmlns:au="org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    24
    <description>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    25
        Rebaseline and Deconfigure testing targets for script rbt.pl
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    26
    </description>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    27
    <property environment="env"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    28
    
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    29
    <property name="helium.dir" location="../../.." />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    30
    <import file="../../../helium.ant.xml"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    31
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    32
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    33
    <target name="test-rebaseanddeconf-no-arguments-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    34
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    35
            <hlm:rebaseanddeconf/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    36
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    37
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    38
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    39
    <target name="test-rebaseanddeconf-task-database-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    40
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    41
            <hlm:rebaseanddeconf database="to1tobet"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    42
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    43
        <au:assertLogContains text="Set database to to1tobet" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    44
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    45
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    46
    <target name="test-rebaseanddeconf-task-ccmproject-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    47
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    48
            <hlm:rebaseanddeconf ccmProject="helium-to1tobet#helium_4.49:project:vc1s60p1#1"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    49
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    50
        <au:assertLogContains text="Set ccmProject to helium-to1tobet#helium_4.49:project:vc1s60p1#1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    51
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    52
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    53
    <target name="test-rebaseanddeconf-task-password-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    54
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    55
            <hlm:rebaseanddeconf password="test"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    56
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    57
        <au:assertLogContains text="Set password to ******" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    58
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    59
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    60
    <target name="test-rebaseanddeconf-task-release-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    61
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    62
            <hlm:rebaseanddeconf release="tony/test"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    63
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    64
        <au:assertLogContains text="Set release to tony/test" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    65
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    66
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    67
    <target name="test-rebaseanddeconf-task-baseline-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    68
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    69
            <hlm:rebaseanddeconf baseline="helium-to1tobet#helium_4.49:project:vc1s60p1#1"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    70
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    71
        <au:assertLogContains text="Set baseline to helium-to1tobet#helium_4.49:project:vc1s60p1#1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    72
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    73
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    74
    <target name="test-rebaseanddeconf-task-version-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    75
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    76
            <hlm:rebaseanddeconf version="RnD_2007wk49"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    77
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    78
        <au:assertLogContains text="Set version to RnD_2007wk49" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    79
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    80
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    81
    <target name="test-rebaseanddeconf-task-releasebaseline-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    82
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    83
            <hlm:rebaseanddeconf releaseBaseline="yes"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    84
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    85
        <au:assertLogContains text="Set releaseBaseline to true" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    86
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    87
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    88
    <target name="test-rebaseanddeconf-task-leavefolders-writable-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    89
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    90
            <hlm:rebaseanddeconf leaveFoldersWritable="yes"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    91
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    92
        <au:assertLogContains text="Set leaveFoldersWritable to true" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    93
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    94
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    95
    <target name="test-rebaseanddeconf-task-enabletask-rebadging-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    96
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    97
            <hlm:rebaseanddeconf enableTaskRebadging="yes"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    98
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    99
        <au:assertLogContains text="Set enableTaskRebadging to true" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   100
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   101
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   102
    <target name="test-rebaseanddeconf-task-enabletask-rebadging-generic-release-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   103
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   104
            <hlm:rebaseanddeconf enableTaskRebadgingGenericRelease="yes"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   105
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   106
        <au:assertLogContains text="Set enableTaskRebadgingGenericRelease to true" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   107
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   108
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   109
    <target name="test-rebaseanddeconf-task-rebadge-object-versions-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   110
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   111
            <hlm:rebaseanddeconf rebadgeObjectVersions="yes"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   112
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   113
        <au:assertLogContains text="Set rebadgeObjectVersions to true" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   114
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   115
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   116
    <target name="test-rebaseanddeconf-task-newbaselinename-set-to-quiet-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   117
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   118
            <hlm:rebaseanddeconf newBaselineName="shoephone-RnD_2007wk49_01project:co1train#1"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   119
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   120
        <au:assertLogContains text="Set newBaselineName to shoephone-RnD_2007wk49_01project:co1train#1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   121
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   122
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   123
    <target name="test-rebaseanddeconf-task-use-branchrelease-methodology-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   124
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   125
            <hlm:rebaseanddeconf useBranchReleaseMethodology="yes"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   126
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   127
        <au:assertLogContains text="Set useBranchReleaseMethodology to true" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   128
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   129
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   130
    <target name="test-rebaseanddeconf-task-create-baseline-for-rollingreleasetag-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   131
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   132
            <hlm:rebaseanddeconf createBaselineForRollingReleaseTag="yes"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   133
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   134
        <au:assertLogContains text="Set createBaselineForRollingReleaseTag to true" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   135
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   136
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   137
    <target name="test-rebaseanddeconf-task-verbosity-set-to-quiet-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   138
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   139
            <hlm:rebaseanddeconf verbosity="0"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   140
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   141
        <au:assertLogContains text="Set verbosity to 0" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   142
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   143
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   144
    <target name="test-rebaseanddeconf-task-verbosity-set-to-verbose-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   145
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   146
            <hlm:rebaseanddeconf verbosity="1"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   147
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   148
        <au:assertLogContains text="Set verbosity to 1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   149
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   150
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   151
    <target name="test-rebaseanddeconf-task-database-and-ccmproject-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   152
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   153
            <hlm:rebaseanddeconf database="to1tobet" ccmProject="helium-to1tobet#helium_4.49:project:vc1s60p1#1"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   154
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   155
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   156
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   157
    <target name="test-rebaseanddeconf-task-database-and-baseline-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   158
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - password">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   159
            <hlm:rebaseanddeconf database="to1tobet" baseline="helium-to1tobet#helium_4.49:project:vc1s60p1#1"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   160
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   161
        <au:assertLogContains text="Set database to to1tobet" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   162
        <au:assertLogContains text="Set baseline to helium-to1tobet#helium_4.49:project:vc1s60p1#1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   163
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   164
    
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   165
    <target name="test-rebaseanddeconf-task-ccmproject-and-password-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   166
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   167
            <hlm:rebaseanddeconf ccmProject="helium-to1tobet#helium_4.49:project:vc1s60p1#1" password="test"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   168
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   169
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   170
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   171
    <target name="test-rebaseanddeconf-task-baseline-and-password-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   172
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: mandatory attributes are not defined - database">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   173
            <hlm:rebaseanddeconf baseline="helium-to1tobet#helium_4.49:project:vc1s60p1#1" password="test"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   174
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   175
        <au:assertLogContains text="Set baseline to helium-to1tobet#helium_4.49:project:vc1s60p1#1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   176
        <au:assertLogContains text="Set password to ******" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   177
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   178
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   179
    <target name="test-rebaseanddeconf-task-all-mandatory-arguments-with-ccmproject-given-but-password-wrong-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   180
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: Script execution failure.">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   181
            <hlm:rebaseanddeconf database="to1tobet" ccmProject="helium-to1tobet#helium_4.49:project:vc1s60p1#1" password="test"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   182
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   183
        <au:assertLogContains text="Set database to to1tobet" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   184
        <au:assertLogContains text="Set ccmProject to helium-to1tobet#helium_4.49:project:vc1s60p1#1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   185
        <au:assertLogContains text="Set password to ******" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   186
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   187
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   188
    <target name="test-rebaseanddeconf-task-all-mandatory-arguments-with-baseline-given-but-password-wrong-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   189
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: Script execution failure.">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   190
            <hlm:rebaseanddeconf database="to1tobet" baseline="helium-to1tobet#helium_4.49:project:vc1s60p1#1" password="test"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   191
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   192
        <au:assertLogContains text="Set database to to1tobet" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   193
        <au:assertLogContains text="Set baseline to helium-to1tobet#helium_4.49:project:vc1s60p1#1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   194
        <au:assertLogContains text="Set password to ******" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   195
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   196
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   197
    <target name="test-rebaseanddeconf-task-all-mandatory-arguments-and-optional-arguments-given-but-password-wrong-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   198
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: Script execution failure.">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   199
            <hlm:rebaseanddeconf database="to1tobet" ccmProject="symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" password="test" verbosity="1"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   200
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   201
        <au:assertLogContains text="Set database to to1tobet" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   202
        <au:assertLogContains text="Set ccmProject to symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   203
        <au:assertLogContains text="Set password to ******"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   204
        <au:assertLogContains text="Set verbosity to 1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   205
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   206
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   207
    <target name="test-rebaseanddeconf-task-all-mandatory-arguments-and-optional-arguments-given-but-password-wrong-and-verbosity-wrong-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   208
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: Verbosity level is not recognised. Legal values are: 0 - quiet, 1 - verbose, 2 - Interactive or 3 - Walk-through Rehearsal">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   209
            <hlm:rebaseanddeconf database="to1tobet" ccmProject="symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" password="test" verbosity="9"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   210
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   211
        <au:assertLogContains text="Set database to to1tobet" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   212
        <au:assertLogContains text="Set ccmProject to symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   213
        <au:assertLogContains text="Set password to ******"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   214
        <au:assertLogContains text="Set verbosity to 9" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   215
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   216
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   217
    <target name="test-rebaseanddeconf-task-database-password-ccmproject-and-baseline-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   218
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: Option 'baseline' cannot be used with 'ccmProject' and 'newBaselineName'">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   219
            <hlm:rebaseanddeconf database="to1tobet" ccmProject="symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" password="test" verbosity="1"
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   220
                      baseline="symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   221
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   222
        <au:assertLogContains text="Set database to to1tobet" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   223
        <au:assertLogContains text="Set ccmProject to symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   224
        <au:assertLogContains text="Set password to ******"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   225
        <au:assertLogContains text="Set verbosity to 1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   226
        <au:assertLogContains text="Set baseline to symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   227
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   228
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   229
    <target name="test-rebaseanddeconf-task-database-password-baseline-newbaselineName-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   230
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: Option 'baseline' cannot be used with 'ccmProject' and 'newBaselineName'">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   231
            <hlm:rebaseanddeconf database="to1tobet" password="test" verbosity="1"
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   232
                      baseline="symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" newBaselineName="shoephone-RnD_2007wk49_01project:co1train#1"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   233
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   234
        <au:assertLogContains text="Set database to to1tobet" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   235
        <au:assertLogContains text="Set baseline to symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   236
        <au:assertLogContains text="Set password to ******"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   237
        <au:assertLogContains text="Set verbosity to 1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   238
        <au:assertLogContains text="Set newBaselineName to shoephone-RnD_2007wk49_01project:co1train#1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   239
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   240
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   241
    <target name="test-rebaseanddeconf-task-database-password-baseline-enabletaskrebadging-and-enabletaskrebadginggenericrelease-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   242
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: Use Option either 'enableTaskRebadging' or 'enableTaskRebadgingGenericRelease'">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   243
            <hlm:rebaseanddeconf database="to1tobet" password="test" verbosity="1"
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   244
                      baseline="symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" enableTaskRebadging="yes" enableTaskRebadgingGenericRelease="yes"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   245
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   246
        <au:assertLogContains text="Set database to to1tobet" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   247
        <au:assertLogContains text="Set baseline to symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   248
        <au:assertLogContains text="Set password to ******" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   249
        <au:assertLogContains text="Set verbosity to 1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   250
        <au:assertLogContains text="Set enableTaskRebadging to true" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   251
        <au:assertLogContains text="Set enableTaskRebadgingGenericRelease to true" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   252
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   253
    
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   254
    <target name="test-rebaseanddeconf-task-database-password-baseline-replacesubprojects-and-dontreplacesubprojects-set-case">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   255
        <au:expectfailure expectedMessage="[hlm:rebaseanddeconf] Error: Use option either 'deconfigure' or 'skipDeconfigure'">
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   256
            <hlm:rebaseanddeconf database="to1tobet" password="test" verbosity="1"
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   257
                      baseline="symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" deconfigure="yes" skipDeconfigure="yes"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   258
        </au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   259
        <au:assertLogContains text="Set database to to1tobet" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   260
        <au:assertLogContains text="Set baseline to symbiantools-to1tobet#symbiantools_08_w34:project:ccm51#1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   261
        <au:assertLogContains text="Set password to ******"/>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   262
        <au:assertLogContains text="Set verbosity to 1" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   263
        <au:assertLogContains text="Set deconfigure to true" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   264
        <au:assertLogContains text="Set skipDeconfigure to true" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   265
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
   266
</project>