74 <property name="build.system" value="sbs" /> |
74 <property name="build.system" value="sbs" /> |
75 |
75 |
76 <import file="${project.dir}/sbs_default_config.ant.xml" /> |
76 <import file="${project.dir}/sbs_default_config.ant.xml" /> |
77 |
77 |
78 <target name="test-7952"> |
78 <target name="test-7952"> |
79 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
79 <echo message="-----------test-7952-----------" /> |
80 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
80 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
81 workingDir="${working.dir}" execute="false"/> |
81 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
|
82 workingDir="${working.dir}" execute="false"/> |
|
83 <au:assertLogContains text="-e emake" /> |
82 </target> |
84 </target> |
83 |
85 |
84 <target name="test-without-sysdef"> |
86 <target name="test-without-sysdef"> |
85 <property name="build.system" value="sbs" /> |
87 <property name="build.system" value="sbs" /> |
86 <au:expectfailure> |
88 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
87 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
89 <au:expectfailure expectedMessage="'System Definition' file is missing" > |
88 <hlm:sbstask outputLog="tmp" sbsinput="pf_7952" workingDir="${working.dir}" execute="false"/> |
90 <hlm:sbstask outputLog="tmp" sbsinput="pf_7952" workingDir="${working.dir}" execute="false"/> |
89 </au:expectfailure> |
91 </au:expectfailure> |
90 </target> |
92 </target> |
91 |
93 |
92 <target name="test-without-working-dir"> |
94 <target name="test-without-working-dir"> |
93 <property name="build.system" value="sbs" /> |
95 <property name="build.system" value="sbs" /> |
94 <au:expectfailure> |
96 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
95 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
97 <au:expectfailure expectedMessage="'workingDir' must be set" > |
96 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" execute="false" /> |
98 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" execute="false" /> |
97 </au:expectfailure> |
99 </au:expectfailure> |
98 </target> |
100 </target> |
99 |
101 |
100 <target name="test-sbs"> |
102 <target name="test-sbs"> |
101 <property name="build.system" value="sbs" /> |
103 <property name="build.system" value="sbs" /> |
102 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
104 <hlm:getsbsinputs config="sf_build" outputProperty="sbs-inputs"/> |
103 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
105 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
104 workingDir="${working.dir}" execute="false"/> |
106 workingDir="${working.dir}" execute="false"/> |
|
107 <au:expectfailure> |
|
108 <au:assertLogContains text="-e emake" /> |
|
109 </au:expectfailure> |
|
110 </target> |
|
111 |
|
112 <target name="test-tools-sbs"> |
|
113 <property name="build.system" value="sbs" /> |
|
114 <hlm:getsbsinputs config="sf_build2" outputProperty="sbs-inputs"/> |
|
115 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
|
116 workingDir="${working.dir}" execute="false"/> |
|
117 <au:assertLogContains text="-c tools" /> |
105 </target> |
118 </target> |
106 |
119 |
107 <target name="test-sbs-ec"> |
120 <target name="test-sbs-ec"> |
108 <property name="build.system" value="sbs-ec" /> |
121 <property name="build.system" value="sbs-ec" /> |
109 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
122 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
110 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
123 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
111 workingDir="${working.dir}" execute="false"/> |
124 workingDir="${working.dir}" execute="false"/> |
|
125 <au:assertLogContains text="-e emake" /> |
112 </target> |
126 </target> |
113 |
127 |
114 <target name="test-all-layers"> |
128 <target name="test-all-layers"> |
115 <property name="build.system" value="sbs" /> |
129 <property name="build.system" value="sbs" /> |
116 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
130 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
117 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
131 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
118 workingDir="${working.dir}" execute="false"/> |
132 workingDir="${working.dir}" execute="false"/> |
|
133 <au:assertLogContains text="test.sysdef.xml" /> |
119 </target> |
134 </target> |
120 |
135 |
121 <target name="test-include-layers"> |
136 <target name="test-include-layers"> |
122 <property name="build.system" value="sbs" /> |
137 <property name="build.system" value="sbs" /> |
123 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
138 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
124 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
139 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
125 layerPatternSetRef="includeLayerPatternSet" workingDir="${working.dir}" |
140 layerPatternSetRef="includeLayerPatternSet" workingDir="${working.dir}" |
126 execute="false"/> |
141 execute="false"/> |
127 <au:assertLogContains text="sbs" /> |
142 <au:assertLogContains text="sbs" /> |
|
143 <au:assertLogContains text="-l include_layer_set" /> |
128 <au:expectfailure> |
144 <au:expectfailure> |
129 <au:assertLogContains text="-l exclude_layer_set" /> |
145 <au:assertLogContains text="-l exclude_layer_set" /> |
130 </au:expectfailure> |
146 </au:expectfailure> |
131 <au:expectfailure> |
147 <au:expectfailure> |
132 <au:assertLogContains text="-l include_exclude_matcher" /> |
148 <au:assertLogContains text="-l include_exclude_matcher" /> |
183 |
202 |
184 <target name="test-include-exclude-layers"> |
203 <target name="test-include-exclude-layers"> |
185 <property name="build.system" value="sbs" /> |
204 <property name="build.system" value="sbs" /> |
186 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
205 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
187 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
206 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
188 layerPatternSetRef="incExcludeLayerPatternSet" |
207 layerPatternSetRef="incExcludeLayerPatternSet" |
189 workingDir="${working.dir}" execute="false"/> |
208 workingDir="${working.dir}" execute="false"/> |
190 <au:assertLogContains text="-l include_exclude_matcher" /> |
209 <au:assertLogContains text="-l include_exclude_matcher" /> |
191 </target> |
210 </target> |
192 |
211 |
193 <target name="test-empty-pattern-set"> |
212 <target name="test-empty-pattern-set"> |
194 <property name="build.system" value="sbs-ec" /> |
213 <property name="build.system" value="sbs-ec" /> |
195 <au:expectfailure> |
214 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
196 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
215 <au:expectfailure expectedMessage="sbstask doesn't support" > |
197 <hlm:sbstask outputLog="tmp" config="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
216 <hlm:sbstask outputLog="tmp" config="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
198 layerPatternSetRef="emptySet" |
217 layerPatternSetRef="emptySet" |
199 workingDir="${working.dir}" execute="false"/> |
218 workingDir="${working.dir}" execute="false"/> |
200 </au:expectfailure> |
219 </au:expectfailure> |
201 </target> |
220 </target> |
202 |
221 |
203 <target name="test-engine-inheritence1"> |
222 <target name="test-engine-inheritence1"> |
204 <property name="build.system" value="sbs-ec" /> |
223 <property name="build.system" value="sbs-ec" /> |
205 <au:expectfailure> |
224 <hlm:getsbsinputs config="inherit1" outputProperty="sbs-inputs"/> |
206 <hlm:getsbsinputs config="inherit1" outputProperty="sbs-inputs"/> |
225 <au:expectfailure expectedMessage="engine should not be null" > |
207 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
226 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
208 workingDir="${working.dir}" execute="false"/> |
227 workingDir="${working.dir}" execute="false"/> |
209 </au:expectfailure> |
228 </au:expectfailure> |
210 </target> |
229 </target> |
211 |
230 |
239 <echo message="sbs-inputs: ${sbs-inputs}" /> |
258 <echo message="sbs-inputs: ${sbs-inputs}" /> |
240 <hlm:getVariableValue name="-f" property="sbs.log.file"> |
259 <hlm:getVariableValue name="-f" property="sbs.log.file"> |
241 <hlm:sbsinput refid="${sbs-inputs}" /> |
260 <hlm:sbsinput refid="${sbs-inputs}" /> |
242 </hlm:getVariableValue> |
261 </hlm:getVariableValue> |
243 <echo message="${sbs-inputs}" /> |
262 <echo message="${sbs-inputs}" /> |
|
263 <au:assertLogContains text="inherit3_sbs_input" /> |
244 </target> |
264 </target> |
245 |
265 |
246 <target name="test-include-def-layer"> |
266 <target name="test-include-def-layer"> |
247 <property name="build.system" value="sbs" /> |
267 <property name="build.system" value="sbs" /> |
248 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
268 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
249 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
269 <hlm:sbstask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml" |
250 layerPatternSetRef="includeDefLayerPatternSet" workingDir="${working.dir}" |
270 layerPatternSetRef="includeDefLayerPatternSet" workingDir="${working.dir}" |
251 execute="false"/> |
271 execute="false"/> |
252 <au:assertLogContains text="sbs" /> |
272 <au:assertLogContains text="sbs" /> |
|
273 <au:assertLogContains text="-l use_layer_real_Def_layer" /> |
253 </target> |
274 </target> |
254 |
275 |
255 <target name="test-include-error-layer"> |
276 <target name="test-include-error-layer"> |
256 <property name="build.system" value="sbs" /> |
277 <property name="build.system" value="sbs" /> |
257 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |
278 <hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/> |