104 <hlm:sysdefFilterSet refid="filters2.id"/> |
104 <hlm:sysdefFilterSet refid="filters2.id"/> |
105 </hlm:filterSysdef> |
105 </hlm:filterSysdef> |
106 <au:assertFileExists file="${epocroot.temp}/filtered.xml" /> |
106 <au:assertFileExists file="${epocroot.temp}/filtered.xml" /> |
107 </target> |
107 </target> |
108 |
108 |
|
109 <target name="test-nested-filterset-verbatim"> |
|
110 <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" |
|
111 destfile="${epocroot.temp}/filtered.xml"> |
|
112 <filterSet> |
|
113 <filter filter="test" type="has" verbatim="component"/> |
|
114 </filterSet> |
|
115 </hlm:filterSysdef> |
|
116 <au:assertFileExists file="${epocroot.temp}/filtered.xml" /> |
|
117 </target> |
|
118 |
|
119 <target name="test-nested-filterset-verbatim-nofilter"> |
|
120 <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" |
|
121 destfile="${epocroot.temp}/filtered.xml"> |
|
122 <filterSet> |
|
123 <filter verbatim="component"/> |
|
124 </filterSet> |
|
125 </hlm:filterSysdef> |
|
126 <au:assertFileExists file="${epocroot.temp}/filtered.xml" /> |
|
127 </target> |
|
128 |
|
129 <target name="test-nested-filterset-with-config-missing-file-attribute"> |
|
130 <au:expectfailure expectedMessage="'file' attribute is not defined."> |
|
131 <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" |
|
132 destfile="${epocroot.temp}/filtered.xml"> |
|
133 <filterSet> |
|
134 <config /> |
|
135 </filterSet> |
|
136 </hlm:filterSysdef> |
|
137 </au:expectfailure> |
|
138 </target> |
|
139 |
|
140 <target name="test-nested-filterset-with-config-missing-invalid-file"> |
|
141 <au:expectfailure expectedMessage="Could not find file:"> |
|
142 <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" |
|
143 destfile="${epocroot.temp}/filtered.xml"> |
|
144 <filterSet> |
|
145 <config file="invalid_config.hrh"/> |
|
146 </filterSet> |
|
147 </hlm:filterSysdef> |
|
148 </au:expectfailure> |
|
149 </target> |
|
150 |
|
151 <target name="test-nested-filterset-with-config-missing-valid-file"> |
|
152 <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" |
|
153 destfile="${epocroot.temp}/filtered.xml"> |
|
154 <filterSet> |
|
155 <config file="../data/filter/config/config.hrh"/> |
|
156 </filterSet> |
|
157 </hlm:filterSysdef> |
|
158 <au:assertFileExists file="${epocroot.temp}/filtered.xml" /> |
|
159 <au:assertLogContains text="-config" /> |
|
160 <au:assertLogContains text="-output" /> |
|
161 <au:assertLogDoesntContain text="-I" /> |
|
162 </target> |
|
163 |
|
164 |
|
165 |
|
166 <target name="test-nested-filterset-with-config-missing-valid-file-and-includes"> |
|
167 <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" |
|
168 destfile="${epocroot.temp}/filtered.xml"> |
|
169 <filterSet> |
|
170 <config file="../data/filter/config/config.hrh" |
|
171 includes="${epocroot.temp}/epoc32/include${path.separator}${epocroot.temp}/epoc32/config"/> |
|
172 </filterSet> |
|
173 </hlm:filterSysdef> |
|
174 <au:assertFileExists file="${epocroot.temp}/filtered.xml" /> |
|
175 <au:assertLogContains text="-config" /> |
|
176 <au:assertLogContains text="-output" /> |
|
177 <au:assertLogContains text="-I${epocroot.temp}${file.separator}epoc32${file.separator}include" /> |
|
178 <au:assertLogContains text="-I${epocroot.temp}${file.separator}epoc32${file.separator}config" /> |
|
179 </target> |
|
180 |
|
181 <target name="test-nested-filterset-with-config-check-property-for-home-invalid"> |
|
182 <property name="sysdef.tools.home" location="../../demo/data/invalid_dir" /> |
|
183 <au:expectfailure expectedMessage="The sysdef.tools.home property refers to an invalid directory:"> |
|
184 <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" |
|
185 destfile="${epocroot.temp}/filtered.xml"> |
|
186 <filterSet> |
|
187 <config file="../data/filter/config/config.hrh"/> |
|
188 </filterSet> |
|
189 </hlm:filterSysdef> |
|
190 </au:expectfailure> |
|
191 <au:assertFileDoesntExist file="${epocroot.temp}/filtered.xml" /> |
|
192 </target> |
|
193 |
|
194 <target name="test-nested-filterset-with-config-check-property-for-home"> |
|
195 <property name="sysdef.tools.home" location="../../demo/data/sf/os/buildtools/bldsystemtools/sysdeftools" /> |
|
196 <hlm:filterSysdef epocroot="${epocroot}" srcfile="../data/filter/canonical_system_definition.xml" |
|
197 destfile="${epocroot.temp}/filtered.xml"> |
|
198 <filterSet> |
|
199 <config file="../data/filter/config/config.hrh"/> |
|
200 </filterSet> |
|
201 </hlm:filterSysdef> |
|
202 <au:assertFileExists file="${epocroot.temp}/filtered.xml" /> |
|
203 </target> |
|
204 |
109 </project> |
205 </project> |