588
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<!--
|
|
3 |
============================================================================
|
|
4 |
Name : test_ci.ant.xml
|
|
5 |
Part of : Helium
|
|
6 |
|
|
7 |
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
8 |
All rights reserved.
|
|
9 |
This component and the accompanying materials are made available
|
|
10 |
under the terms of the License "Eclipse Public License v1.0"
|
|
11 |
which accompanies this distribution, and is available
|
|
12 |
at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
13 |
|
|
14 |
Initial Contributors:
|
|
15 |
Nokia Corporation - initial contribution.
|
|
16 |
|
|
17 |
Contributors:
|
|
18 |
|
|
19 |
Description:
|
|
20 |
|
|
21 |
============================================================================
|
|
22 |
-->
|
|
23 |
<project name="test_synergyjavataks" xmlns:au="org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
|
|
24 |
<description>
|
|
25 |
Testing targets related to Synergy java tasks
|
|
26 |
</description>
|
|
27 |
<property environment="env" />
|
|
28 |
<property name="publish.root.dir" value="${helium.dir}/tests/data/output/" />
|
|
29 |
<property name="helium.dir" location="../../.." />
|
|
30 |
<property name="synergy71.project.wa" location="${helium.dir}/build/synergy71_ccm_wa" />
|
|
31 |
<property name="synergy71.snapshot.wa" location="${helium.dir}/build/synergy71_ccm_snapshot" />
|
|
32 |
<import file="../../../build.xml" />
|
|
33 |
|
|
34 |
<condition property="run.ccm.71">
|
|
35 |
<istrue value="${synergy71.enabled}" />
|
|
36 |
</condition>
|
|
37 |
|
|
38 |
<target name="suiteSetUp" if="run.ccm.71">
|
|
39 |
<mkdir dir="${synergy71.project.wa}"/>
|
|
40 |
<mkdir dir="${synergy71.snapshot.wa}"/>
|
|
41 |
</target>
|
|
42 |
|
|
43 |
<target name="suiteTearDown" if="run.ccm.71">
|
|
44 |
<delete dir="${synergy71.project.wa}"/>
|
|
45 |
<delete dir="${synergy71.snapshot.wa}"/>
|
|
46 |
</target>
|
|
47 |
|
|
48 |
<target name="test-synergyjavataks" if="run.ccm.71">
|
|
49 |
<hlm:createSessionMacro database="sa1bm1" reference="test.session" />
|
|
50 |
<!-- To synchronize the project -->
|
|
51 |
<hlm:ccm >
|
|
52 |
<hlm:sessionset refid="test.session" />
|
|
53 |
<hlm:synchronize project="MinibuildDomain-hlm_71_test" recursive="true" />
|
|
54 |
</hlm:ccm>
|
|
55 |
<au:assertLogContains text="Session list:"/>
|
|
56 |
<au:assertLogContains text="Synchronizing project: MinibuildDomain-hlm_71_test"/>
|
|
57 |
<au:assertFileExists file="${synergy71.project.wa}/MinibuildDomain/MinibuildDomain/_ccmwaid.inf"/>
|
|
58 |
|
|
59 |
<!-- To update the synergy project -->
|
|
60 |
<hlm:ccm >
|
|
61 |
<hlm:sessionset refid="test.session" />
|
|
62 |
<hlm:update project="MinibuildDomain-hlm_71_test" />
|
|
63 |
</hlm:ccm>
|
|
64 |
<au:assertLogContains text="Running command 'update'"/>
|
|
65 |
<au:assertLogContains text="Updating project: MinibuildDomain-hlm_71_test"/>
|
|
66 |
<au:assertLogContains text="Updating project 'MinibuildDomain-hlm_71_test:project:sa1bm1#1'"/>
|
|
67 |
<au:assertLogContains text="Update for 'MinibuildDomain-hlm_71_test:project:sa1bm1#1' complete"/>
|
|
68 |
<au:assertLogContains text="Update complete"/>
|
|
69 |
|
|
70 |
<!-- To get the snapshot of the project -->
|
|
71 |
<hlm:ccm >
|
|
72 |
<hlm:sessionset refid="test.session" />
|
|
73 |
<hlm:snapshot project="MinibuildDomain-hlm_71_test" dir="${synergy71.snapshot.wa}" fast="true" recursive="true" />
|
|
74 |
</hlm:ccm>
|
|
75 |
<au:assertLogContains text="Snapshotting MinibuildDomain-hlm_71_test"/>
|
|
76 |
|
|
77 |
<!-- To reconcile the project -->
|
|
78 |
<hlm:ccm >
|
|
79 |
<hlm:sessionset refid="test.session" />
|
|
80 |
<hlm:reconcile project="MinibuildDomain-hlm_71_test"/>
|
|
81 |
</hlm:ccm>
|
|
82 |
<au:assertLogContains text="Reconciling project: MinibuildDomain-hlm_71_test"/>
|
|
83 |
|
|
84 |
<!-- To maintain the project workarea -->
|
|
85 |
<delete dir="${synergy71.project.wa}"/>
|
|
86 |
<hlm:ccm >
|
|
87 |
<hlm:sessionset refid="test.session" />
|
|
88 |
<hlm:workarea project="MinibuildDomain-hlm_71_test" maintain="true" recursive="true" path="${synergy71.project.wa}"/>
|
|
89 |
</hlm:ccm>
|
|
90 |
<au:assertLogContains text="Modifying work area for the project : MinibuildDomain-hlm_71_test"/>
|
|
91 |
|
|
92 |
<!-- To add the tasks into folders -->
|
|
93 |
<hlm:ccm >
|
|
94 |
<hlm:sessionset refid="test.session" />
|
|
95 |
<hlm:addtask folder="sa1bm1#33">
|
|
96 |
<task name="sa1bm1#126" />
|
|
97 |
</hlm:addtask>
|
|
98 |
</hlm:ccm>
|
|
99 |
<au:assertLogContains text="Changing role to build_mgr"/>
|
|
100 |
|
|
101 |
<!-- To close ccm session -->
|
|
102 |
<hlm:ccm >
|
|
103 |
<hlm:sessionset refid="test.session" />
|
|
104 |
<hlm:close />
|
|
105 |
</hlm:ccm>
|
|
106 |
|
|
107 |
</target>
|
|
108 |
|
|
109 |
</project> |