buildframework/helium/tools/preparation/test/test_synergyjavataks.ant.xml
author wbernard
Fri, 13 Aug 2010 14:59:05 +0300
changeset 628 7c4a911dc066
parent 588 c7c26511138f
child 645 b8d81fa19e7d
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_ci.ant.xml 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     5
Part of     : Helium 
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_synergyjavataks" xmlns:au="org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    24
    <description>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    25
         Testing targets related to Synergy java tasks
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    26
    </description>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    27
    <property environment="env" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    28
    <property name="publish.root.dir" value="${helium.dir}/tests/data/output/" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    29
    <property name="helium.dir" location="../../.." />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    30
    <property name="synergy71.project.wa" location="${helium.dir}/build/synergy71_ccm_wa" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    31
    <property name="synergy71.snapshot.wa" location="${helium.dir}/build/synergy71_ccm_snapshot" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    32
    <import file="../../../build.xml" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    33
    
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    34
    <condition property="run.ccm.71">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    35
        <istrue value="${synergy71.enabled}" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    36
    </condition>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    37
    
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    38
    <target name="suiteSetUp" if="run.ccm.71">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    39
        <mkdir dir="${synergy71.project.wa}"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    40
        <mkdir dir="${synergy71.snapshot.wa}"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    41
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    42
    
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    43
    <target name="suiteTearDown" if="run.ccm.71">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    44
        <delete dir="${synergy71.project.wa}"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    45
        <delete dir="${synergy71.snapshot.wa}"/>
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-synergyjavataks" if="run.ccm.71">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    49
        <hlm:createSessionMacro database="sa1bm1" reference="test.session" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    50
        <!-- To synchronize the project -->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    51
        <hlm:ccm >
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    52
            <hlm:sessionset refid="test.session" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    53
            <hlm:synchronize project="MinibuildDomain-hlm_71_test" recursive="true" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    54
        </hlm:ccm>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    55
        <au:assertLogContains text="Session list:"/>        
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    56
        <au:assertLogContains text="Synchronizing project: MinibuildDomain-hlm_71_test"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    57
        <au:assertFileExists file="${synergy71.project.wa}/MinibuildDomain/MinibuildDomain/_ccmwaid.inf"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    58
        
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    59
        <!-- To update the synergy project -->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    60
        <hlm:ccm >
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    61
            <hlm:sessionset refid="test.session" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    62
            <hlm:update project="MinibuildDomain-hlm_71_test" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    63
        </hlm:ccm>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    64
        <au:assertLogContains text="Running command 'update'"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    65
        <au:assertLogContains text="Updating project: MinibuildDomain-hlm_71_test"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    66
        <au:assertLogContains text="Updating project 'MinibuildDomain-hlm_71_test:project:sa1bm1#1'"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    67
        <au:assertLogContains text="Update for 'MinibuildDomain-hlm_71_test:project:sa1bm1#1' complete"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    68
        <au:assertLogContains text="Update complete"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    69
        
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    70
        <!-- To get the snapshot of the project -->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    71
        <hlm:ccm >
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    72
            <hlm:sessionset refid="test.session" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    73
            <hlm:snapshot project="MinibuildDomain-hlm_71_test" dir="${synergy71.snapshot.wa}" fast="true" recursive="true" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    74
        </hlm:ccm>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    75
        <au:assertLogContains text="Snapshotting MinibuildDomain-hlm_71_test"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    76
        
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    77
        <!-- To reconcile the project -->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    78
        <hlm:ccm >
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    79
            <hlm:sessionset refid="test.session" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    80
            <hlm:reconcile project="MinibuildDomain-hlm_71_test"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    81
        </hlm:ccm>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    82
        <au:assertLogContains text="Reconciling project: MinibuildDomain-hlm_71_test"/>        
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    83
        
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    84
        <!-- To maintain the project workarea -->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    85
        <delete dir="${synergy71.project.wa}"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    86
        <hlm:ccm >
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    87
            <hlm:sessionset refid="test.session" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    88
            <hlm:workarea project="MinibuildDomain-hlm_71_test" maintain="true" recursive="true" path="${synergy71.project.wa}"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    89
        </hlm:ccm>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    90
        <au:assertLogContains text="Modifying work area for the project : MinibuildDomain-hlm_71_test"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    91
        
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    92
        <!-- To add the tasks into folders -->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    93
        <hlm:ccm >
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    94
            <hlm:sessionset refid="test.session" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    95
            <hlm:addtask folder="sa1bm1#33">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    96
                <task name="sa1bm1#126" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    97
            </hlm:addtask>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    98
        </hlm:ccm>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    99
        <au:assertLogContains text="Changing role to build_mgr"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   100
        
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   101
        <!-- To close ccm session -->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   102
        <hlm:ccm >
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   103
            <hlm:sessionset refid="test.session" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   104
            <hlm:close />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   105
        </hlm:ccm>        
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   106
             
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   107
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   108
    
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   109
</project>