588
|
1 |
<?xml version="1.0"?>
|
|
2 |
<!--
|
|
3 |
============================================================================
|
|
4 |
Name : test_ctc.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 |
|
|
24 |
<project name="test-sbs-ctc" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
|
|
25 |
<description>Helium Antlib ctc-sbs unittests.</description>
|
|
26 |
|
|
27 |
<taskdef resource="com/nokia/helium/core/ant/antlib.xml" uri="http://www.nokia.com/helium"/>
|
|
28 |
<taskdef resource="com/nokia/helium/sbs/ant/antlib.xml" uri="http://www.nokia.com/helium"/>
|
|
29 |
|
|
30 |
<property name="build.system" value="sbs" />
|
|
31 |
|
|
32 |
<import file="sbs_default_config.ant.xml" />
|
|
33 |
|
|
34 |
<target name="test-ctc">
|
|
35 |
<property name="build.system" value="sbs" />
|
|
36 |
<hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
|
|
37 |
<hlm:ctctask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml"
|
|
38 |
layerPatternSetRef="includeNoNameLayerPatternSet" workingDir="${working.dir}"
|
|
39 |
execute="false"/>
|
|
40 |
<au:assertLogContains text="-i m sbs" />
|
|
41 |
</target>
|
|
42 |
|
|
43 |
<target name="test-ctc-custom-config">
|
|
44 |
<property name="build.system" value="sbs" />
|
|
45 |
<hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
|
|
46 |
<hlm:ctctask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml"
|
|
47 |
layerPatternSetRef="includeNoNameLayerPatternSet" workingDir="${working.dir}"
|
|
48 |
execute="false">
|
|
49 |
<CTCOptions>
|
|
50 |
<arg line="-C OPT_ADD_COMPILE+-DCTC_NO_START_CTCMAN" />
|
|
51 |
</CTCOptions>
|
|
52 |
</hlm:ctctask>
|
|
53 |
<au:assertLogContains text="-i m -C OPT_ADD_COMPILE+-DCTC_NO_START_CTCMAN sbs" />
|
|
54 |
</target>
|
|
55 |
|
|
56 |
<hlm:argSet id="ctc.extra.params">
|
|
57 |
<arg line="-C OPT_ADD_COMPILE+-DCTC_NO_START_CTCMAN" />
|
|
58 |
</hlm:argSet>
|
|
59 |
|
|
60 |
<target name="test-ctc-custom-ref-config">
|
|
61 |
<property name="build.system" value="sbs" />
|
|
62 |
<hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
|
|
63 |
<hlm:ctctask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml"
|
|
64 |
layerPatternSetRef="includeNoNameLayerPatternSet" workingDir="${working.dir}"
|
|
65 |
execute="false">
|
|
66 |
<CTCOptions refid="ctc.extra.params" />
|
|
67 |
</hlm:ctctask>
|
|
68 |
<au:assertLogContains text="-i m -C OPT_ADD_COMPILE+-DCTC_NO_START_CTCMAN sbs" />
|
|
69 |
</target>
|
|
70 |
|
|
71 |
|
|
72 |
<target name="test-ctc-custom-ref-config-instrumentType">
|
|
73 |
<property name="build.system" value="sbs" />
|
|
74 |
<hlm:getsbsinputs config="pf_7952" outputProperty="sbs-inputs"/>
|
|
75 |
<hlm:ctctask outputLog="tmp" sbsinput="${sbs-inputs}" sysdefFile="../data/test.sysdef.xml"
|
|
76 |
layerPatternSetRef="includeNoNameLayerPatternSet" workingDir="${working.dir}"
|
|
77 |
execute="false"
|
|
78 |
instrumentType="i">
|
|
79 |
<CTCOptions refid="ctc.extra.params" />
|
|
80 |
</hlm:ctctask>
|
|
81 |
<au:assertLogContains text="-i i -C OPT_ADD_COMPILE+-DCTC_NO_START_CTCMAN sbs" />
|
|
82 |
</target>
|
|
83 |
</project>
|