588
|
1 |
<?xml version="1.0"?>
|
|
2 |
<!--
|
|
3 |
============================================================================
|
|
4 |
Name : test_diamonds.ant.xml
|
|
5 |
Part of : Helium AntLib
|
|
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-diamonds-invalid-template-1" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
|
|
24 |
<description>Helium Antlib diamonds unittests.</description>
|
|
25 |
<property environment="env" />
|
628
|
26 |
<taskdef resource="com/nokia/helium/core/ant/antlib.xml" uri="http://www.nokia.com/helium"/>
|
|
27 |
<property name="diamonds.enabled" value="true" />
|
588
|
28 |
<property name="diamonds.unitest.dir" location="${ant.file.test-diamonds-invalid-template}/../../../" />
|
|
29 |
<import file="../../../../../../nokia/companyproperties.ant.xml" optional="true"/>
|
|
30 |
<property name="diamonds.output.dir" location="${temp.dir}/output" />
|
|
31 |
<property name="diamonds.template.dir" location="${diamonds.unitest.dir}/data/templates" />
|
|
32 |
<property name="build.family" value="test_new_hlm"/>
|
|
33 |
<property name="id" value="123"/>
|
|
34 |
<property name="name" value="${build.family}_${id}"/>
|
|
35 |
<property name="build.system" value="ec-helium"/>
|
|
36 |
<property name="symsee.version" value="9.1.0" />
|
628
|
37 |
<import file="../../config/diamonds_config_default.ant.xml" />
|
588
|
38 |
|
|
39 |
<target name="unittest" depends="unittest-diamonds" />
|
|
40 |
|
|
41 |
<target name="unittest-diamonds" >
|
628
|
42 |
<delete dir="${diamonds.output.dir}" failonerror="false"/>
|
|
43 |
<mkdir dir="${diamonds.output.dir}"/>
|
|
44 |
<antcall target="test-all" />
|
|
45 |
</target>
|
|
46 |
|
|
47 |
<dirname property="project.dir" file="${ant.file.test-diamonds}" />
|
|
48 |
<target name="version">
|
|
49 |
<echo message="version target for diamonds to verify sending data to diamonds" />
|
588
|
50 |
</target>
|
|
51 |
|
|
52 |
<target name="diamonds" />
|
628
|
53 |
|
|
54 |
<target name="compile-target">
|
|
55 |
<echo message="verify the build stage with input source xml file" />
|
|
56 |
</target>
|
|
57 |
|
|
58 |
<target name="codescanner">
|
|
59 |
<echo message="target verification with input source xml file" />
|
|
60 |
</target>
|
|
61 |
|
|
62 |
<target name="create-bom-log">
|
|
63 |
<echo message="target without input file and just to send the data" />
|
|
64 |
</target>
|
|
65 |
|
|
66 |
<target name="invalid-target-input-file">
|
|
67 |
<echo message="target with invalid input source xml file" />
|
|
68 |
</target>
|
|
69 |
|
|
70 |
<target name="invalid-stage-input-file">
|
|
71 |
<echo message="stage with invalid input source xml file" />
|
|
72 |
</target>
|
|
73 |
|
|
74 |
<target name="invalid-template-file">
|
|
75 |
<echo message="target with invalid template-file" />
|
|
76 |
</target>
|
|
77 |
|
|
78 |
<target name="invalid-ant-properties-input">
|
|
79 |
<echo message="target with invalid ant properties input" />
|
|
80 |
</target>
|
|
81 |
|
|
82 |
<target name="non-existing-ant-properties">
|
|
83 |
<echo message="target with non-existing-ant-properties" />
|
|
84 |
</target>
|
|
85 |
|
|
86 |
<target name="invalid-diamonds-server-properties">
|
|
87 |
<echo message="target with invalid-diamonds-server-properties" />
|
|
88 |
</target>
|
|
89 |
|
|
90 |
<target name="defer-type">
|
|
91 |
<echo message="version target for diamonds to verify sending data to diamonds" />
|
|
92 |
</target>
|
|
93 |
|
|
94 |
<target name="test-defer-type">
|
|
95 |
<antcall target="defer-type" />
|
|
96 |
</target>
|
|
97 |
|
|
98 |
<target name="test-create-bom-log">
|
|
99 |
<antcall target="create-bom-log" />
|
|
100 |
</target>
|
|
101 |
|
|
102 |
<target name="test-codescanner">
|
|
103 |
<antcall target="codescanner" />
|
|
104 |
</target>
|
|
105 |
|
|
106 |
<target name="test-invalid-target-input-file">
|
|
107 |
<antcall target="invalid-target-input-file" />
|
|
108 |
</target>
|
|
109 |
|
|
110 |
<target name="test-invalid-stage-input-file">
|
|
111 |
<antcall target="invalid-target-input-file" />
|
|
112 |
<echo message="stage with invalid input source xml file" />
|
|
113 |
</target>
|
|
114 |
|
|
115 |
<target name="test-invalid-template-file">
|
|
116 |
<antcall target="invalid-template-file" />
|
|
117 |
</target>
|
|
118 |
|
|
119 |
<target name="test-invalid-ant-properties-input">
|
|
120 |
<antcall target="invalid-ant-properties-input" />
|
|
121 |
</target>
|
|
122 |
|
|
123 |
<target name="test-non-existing-ant-properties">
|
|
124 |
<antcall target="non-existing-ant-properties" />
|
|
125 |
</target>
|
|
126 |
|
|
127 |
<target name="test-invalid-diamonds-server-properties">
|
|
128 |
<antcall target="invalid-diamonds-server-properties" />
|
|
129 |
<echo message="target with invalid-diamonds-server-properties" />
|
|
130 |
</target>
|
|
131 |
|
|
132 |
<target name="test-compile-target">
|
|
133 |
<antcall target="compile-target" />
|
|
134 |
</target>
|
|
135 |
|
|
136 |
<target name="test-version">
|
|
137 |
<antcall target="version" />
|
|
138 |
</target>
|
|
139 |
|
|
140 |
<target name="test-buildid-set">
|
|
141 |
<echo>${diamonds.build.id}</echo>
|
|
142 |
<au:assertTrue>
|
|
143 |
<isset property="diamonds.build.id"/>
|
|
144 |
</au:assertTrue>
|
|
145 |
</target>
|
|
146 |
|
|
147 |
<target name="test-buildid-notset">
|
|
148 |
<au:assertFalse>
|
|
149 |
<isset property="diamonds.build.id"/>
|
|
150 |
</au:assertFalse>
|
|
151 |
</target>
|
|
152 |
|
|
153 |
<target name="test-echo-operation">
|
|
154 |
<echo message="echo operation: test" />
|
|
155 |
</target>
|
|
156 |
|
|
157 |
<target name="test-echo-operation1">
|
|
158 |
<echo message="echo operation1: test" />
|
|
159 |
</target>
|
|
160 |
|
|
161 |
<target name="test-echo-operation2">
|
|
162 |
<echo message="echo operation2: test" />
|
|
163 |
</target>
|
|
164 |
|
|
165 |
<target name="test-echo-operation3">
|
|
166 |
<echo message="echo operation3: test" />
|
|
167 |
</target>
|
|
168 |
|
|
169 |
<target name="test-echo-operation4">
|
|
170 |
<echo message="echo operation4: test" />
|
|
171 |
</target>
|
|
172 |
|
|
173 |
<target name="test-echo-operation5">
|
|
174 |
<echo message="echo operation5: test" />
|
|
175 |
</target>
|
|
176 |
|
|
177 |
<target name="test-depend-target" depends="test-echo-operation">
|
|
178 |
<au:assertFileExists file="${diamonds.output.dir}/diamonds_stage.xml" />
|
|
179 |
</target>
|
|
180 |
|
|
181 |
<target name="test-ant-call">
|
|
182 |
<echo message="test-ant-call" />
|
|
183 |
<delete file="${diamonds.output.dir}/diamonds_stage.xml" failonerror="false" />
|
|
184 |
<antcall target="test-echo-operation1" />
|
|
185 |
<au:assertFileExists file="${diamonds.output.dir}/diamonds_stage.xml" />
|
|
186 |
</target>
|
|
187 |
|
|
188 |
<target name="test-ant-call-multiple">
|
|
189 |
<echo message="test-ant-call" />
|
|
190 |
<delete file="${diamonds.output.dir}/diamonds_stage.xml" failonerror="false" />
|
|
191 |
<antcall target="test-echo-operation2" />
|
|
192 |
<au:assertFileExists file="${diamonds.output.dir}/diamonds_stage.xml" />
|
|
193 |
<antcall target="test-echo-operation3" />
|
|
194 |
<au:assertFileExists file="${diamonds.output.dir}/diamonds_stage.xml" />
|
|
195 |
</target>
|
|
196 |
|
|
197 |
<target name="test-ant-call-multiple-parallel">
|
|
198 |
<echo message="test-ant-call" />
|
|
199 |
<delete file="${diamonds.output.dir}/diamonds_stage.xml" failonerror="false" />
|
|
200 |
<parallel>
|
|
201 |
<antcall target="test-echo-operation4" />
|
|
202 |
<antcall target="test-echo-operation5" />
|
|
203 |
</parallel>
|
|
204 |
<au:assertFileExists file="${diamonds.output.dir}/diamonds_stage.xml" />
|
|
205 |
</target>
|
|
206 |
|
|
207 |
<target name="sequence-config-test-target-1">
|
|
208 |
<au:assertFileExists file="${diamonds.output.dir}/diamonds_stage.xml" />
|
|
209 |
</target>
|
|
210 |
|
|
211 |
<target name="sequence-config-test-target-2">
|
|
212 |
<au:assertFileExists file="${diamonds.output.dir}/diamonds_stage.xml" />
|
|
213 |
</target>
|
|
214 |
|
|
215 |
<target name="test-all" depends="test-buildid-notset, diamonds, test-buildid-set, test-defer-type, test-version,test-create-bom-log" />
|
588
|
216 |
</project> |