|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <project name="OpenLCDUITests" default="build" basedir="."> |
|
3 |
|
4 <property name="debuglevel" value="lines,vars,source" /> |
|
5 <property name="target" value="1.4" /> |
|
6 <property name="source" value="1.3" /> |
|
7 |
|
8 <!-- Destination for compiled JAR file --> |
|
9 <property name="java.runtime.bootclasspath.dir" value="\epoc32\RELEASE\WINSCW\udeb\Z\resource\java\jvm\lib\common" /> |
|
10 <property name="java.armv5.runtime.bootclasspath.dir" value="\epoc32\RELEASE\ARMV5\urel\Z\resource\java\jvm\lib\common" /> |
|
11 |
|
12 <!-- Name of the JAR file to be created --> |
|
13 <property name="jar.name" value="openlcdui_tests.jar" /> |
|
14 <property name="epoc.root" value="z:" /> |
|
15 |
|
16 <!-- Classpath --> |
|
17 <path id="openlcdui.classpath"> |
|
18 <pathelement location="\epoc32\RELEASE\WINSCW\udeb\java_impl_cldc.jar" /> |
|
19 <pathelement location="..\..\..\inc\classes.cldc.zip" /> |
|
20 <pathelement location="\epoc32\RELEASE\WINSCW\udeb\Z\resource\java\jvm\lib\common\s60uitestutils.jar" /> |
|
21 </path> |
|
22 |
|
23 <path id="openlcdui.armv5.classpath"> |
|
24 <pathelement location="${epoc.root}\epoc32\RELEASE\ARMV5\urel\java_impl_cldc.jar" /> |
|
25 <pathelement location="..\..\..\inc\classes.cldc.zip" /> |
|
26 <pathelement location="${epoc.root}\epoc32\RELEASE\ARMV5\urel\Z\resource\java\jvm\lib\common\s60uitestutils.jar" /> |
|
27 </path> |
|
28 |
|
29 |
|
30 <target name="createSpedeJar" depends="compile" description="create Jar file"> |
|
31 <!-- Create jar package --> |
|
32 <jar destfile="${epoc.root}/epoc32/winscw/c/data/Installs/spede.jar"> |
|
33 <fileset dir="./bin" /> |
|
34 <fileset dir="./res" /> |
|
35 <manifest> |
|
36 <attribute name="MIDlet-1" value="EswtSpede,,spede.SpedeRunner" /> |
|
37 <attribute name="MIDlet-Name" value="EswtSpede" /> |
|
38 <attribute name="MIDlet-Version" value="1.0.0" /> |
|
39 <attribute name="MIDlet-Vendor" value="Nokia" /> |
|
40 <attribute name="MicroEdition-Configuration" value="CLDC-1.1" /> |
|
41 <attribute name="MicroEdition-Profile" value="MIDP-2.0" /> |
|
42 <!--attribute name="Created-By" value="10.0-b19 (Sun Microsystems Inc.)" / --> |
|
43 <!--attribute name="Spede-Options" value="disableUI, disableTouch" / --> |
|
44 <attribute name="ModuleName" value="OpenLCDUI" /> |
|
45 |
|
46 <!-- API tests [ 1-50 ] --> |
|
47 <attribute name="TestSet0Class1" value="t_api.display.DisplayTest" /> |
|
48 <attribute name="TestSet0Class2" value="t_api.displayable.DisplayableTest" /> |
|
49 <attribute name="TestSet0Class3" value="t_api.ticker.TickerTest" /> |
|
50 <attribute name="TestSet0Class4" value="t_api.textbox.TextBoxTest" /> |
|
51 <attribute name="TestSet0Class5" value="t_api.command.CommandTest" /> |
|
52 <!-- attribute name="TestSet0Class6" value="t_api.image.ImageTest" / --> |
|
53 <!-- attribute name="TestSet0Class7" value="t_api.canvas.CanvasTest" / --> |
|
54 <attribute name="TestSet0Class8" value="t_api.fullcanvas.FullCanvasTest" /> |
|
55 <!-- attribute name="TestSet0Class9" value="t_api.graphics.GraphicsTest" / --> |
|
56 <!-- attribute name="TestSet0Class10" value="t_api.graphics.DirectGraphicsTest" / --> |
|
57 <attribute name="TestSet0Class11" value="t_api.alert.AlertTest" /> |
|
58 <attribute name="TestSet0Class12" value="t_api.list.ListTest" /> |
|
59 <attribute name="TestSet0Class13" value="t_api.font.FontTest" /> |
|
60 <attribute name="TestSet0Class14" value="t_api.form.FormTest" /> |
|
61 <attribute name="TestSet0Class15" value="t_api.item.ItemTest" /> |
|
62 <attribute name="TestSet0Class16" value="t_api.command.ItemCommandTest" /> |
|
63 <attribute name="TestSet0Class17" value="t_api.stringitem.StringItemTest" /> |
|
64 <attribute name="TestSet0Class18" value="t_api.imageitem.ImageItemTest" /> |
|
65 <attribute name="TestSet0Class19" value="t_api.gauge.GaugeTest" /> |
|
66 <attribute name="TestSet0Class20" value="t_api.datefield.DateFieldTest" /> |
|
67 <attribute name="TestSet0Class21" value="t_api.textfield.TextFieldTest" /> |
|
68 <attribute name="TestSet0Class22" value="t_api.choicegroup.ChoiceGroupTest" /> |
|
69 <attribute name="TestSet0Class23" value="t_api.spacer.SpacerTest" /> |
|
70 <attribute name="TestSet0Class24" value="t_api.game.GameCanvasTest" /> |
|
71 <attribute name="TestSet0Class25" value="t_api.game.SpriteTest" /> |
|
72 <attribute name="TestSet0Class26" value="t_api.game.CollisionDetectionTest" /> |
|
73 <attribute name="TestSet0Class27" value="t_api.game.LayerManagerTest" /> |
|
74 <attribute name="TestSet0Class28" value="t_api.game.LayerTest" /> |
|
75 <attribute name="TestSet0Class29" value="t_api.game.TiledLayerTest" /> |
|
76 <attribute name="TestSet0Class30" value="t_api.devicecontrol.DeviceControlTest" /> |
|
77 <!-- UI-Robot tests [ 51-80 ] --> |
|
78 <!-- |
|
79 <attribute name="TestSet0Class51" value="t_uirobot.displayable.AddCommandTest" /> |
|
80 <attribute name="TestSet0Class52" value="t_uirobot.textbox.TestUITextBox" /> |
|
81 <attribute name="TestSet0Class53" value="t_uirobot.command.DynamicUpdateTest" /> |
|
82 <attribute name="TestSet0Class54" value="t_uirobot.displayable.SendBackgroundTest" /> |
|
83 <attribute name="TestSet0Class55" value="t_uirobot.displayable.SizeChangedTest" /> |
|
84 <attribute name="TestSet0Class56" value="t_uirobot.textbox.TextBoxInputModeUITest" /> |
|
85 <attribute name="TestSet0Class57" value="t_uirobot.alert.AlertUITest" /> |
|
86 <attribute name="TestSet0Class58" value="t_uirobot.command.ItemCommandUIRobotTest" /> |
|
87 <attribute name="TestSet0Class59" value="t_uirobot.list.ListUITest" /> |
|
88 <attribute name="TestSet0Class60" value="t_uirobot.display.SetCurrentItemTest" /> |
|
89 <attribute name="TestSet0Class61" value="t_uirobot.stringitem.StringItemUIRobotTest" /> |
|
90 <attribute name="TestSet0Class62" value="t_uirobot.gauge.GaugeCommandsTest" /> |
|
91 <attribute name="TestSet0Class63" value="t_uirobot.datefield.DateFieldUIRobotTest" /> |
|
92 <attribute name="TestSet0Class64" value="t_uirobot.textfield.TextFieldSetInitialInputModeTest" /> |
|
93 <attribute name="TestSet0Class65" value="t_uirobot.textfield.TextFieldCommandTest" /> |
|
94 <attribute name="TestSet0Class66" value="t_uirobot.stringitem.HyperLinkTest" /> |
|
95 <attribute name="TestSet0Class67" value="t_uirobot.textfield.FormChangeFocusCheckTest" /> |
|
96 <attribute name="TestSet0Class68" value="t_uirobot.choicegroup.ChoiceGroupCommandTest" /> |
|
97 <attribute name="TestSet0Class69" value="t_uirobot.choicegroup.ChoiceGroupPopupTest" /> |
|
98 <attribute name="TestSet0Class70" value="t_uirobot.form.FormItemTest" /> |
|
99 <attribute name="TestSet0Class71" value="t_uirobot.imageitem.ImageItemHyperLinkTest" /> |
|
100 <attribute name="TestSet0Class72" value="t_uirobot.spacer.SpacerTest" /> |
|
101 <attribute name="TestSet0Class73" value="t_uirobot.customitem.CustomItemTest" /> |
|
102 <attribute name="TestSet0Class74" value="t_uirobot.item.ItemUITest" /> |
|
103 --> |
|
104 |
|
105 <!-- TODO: Commented because Backlight flash and vibrate not yet implemented: |
|
106 <attribute name="TestSet0Class57" value="t_uirobot.display.FlashAndVibrateTest"/--> |
|
107 |
|
108 <!-- Screenshot-based tests [ 81-100 ] --> |
|
109 <!-- |
|
110 <attribute name="TestSet0Class81" value="t_screenshots.textbox.TextBoxSTest" /> |
|
111 <attribute name="TestSet0Class82" value="t_screenshots.textbox.TextBoxInputModeSTest" /> |
|
112 <attribute name="TestSet0Class83" value="t_screenshots.alert.AlertSTest" /> |
|
113 <attribute name="TestSet0Class84" value="t_screenshots.form.FormSTest" /> |
|
114 <attribute name="TestSet0Class85" value="t_screenshots.textfield.SetInitInModeTest" /> |
|
115 --> |
|
116 |
|
117 </manifest> |
|
118 </jar> |
|
119 </target> |
|
120 |
|
121 <target name="clean"> |
|
122 <delete dir="bin" /> |
|
123 <delete file="${java.runtime.bootclasspath.dir}/${jar.name}" /> |
|
124 <delete file="${java.armv5.runtime.bootclasspath.dir}/${jar.name}" /> |
|
125 </target> |
|
126 |
|
127 <target name="compile"> |
|
128 <mkdir dir="bin" /> |
|
129 <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}" verbose="yes"> |
|
130 <src path="src" /> |
|
131 <src path="src_j2me" /> |
|
132 <classpath refid="openlcdui.classpath" /> |
|
133 <classpath> |
|
134 <pathelement location="junit-3.8.1.1.jar"/> |
|
135 </classpath> |
|
136 </javac> |
|
137 </target> |
|
138 |
|
139 <target name="compile.armv5"> |
|
140 <mkdir dir="bin" /> |
|
141 <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}" verbose="yes"> |
|
142 <src path="src" /> |
|
143 <src path="src_j2me" /> |
|
144 <classpath refid="openlcdui.armv5.classpath" /> |
|
145 <classpath> |
|
146 <pathelement location="junit-3.8.1.1.jar"/> |
|
147 </classpath> |
|
148 </javac> |
|
149 </target> |
|
150 |
|
151 <target name="build" depends="compile"> |
|
152 <mkdir dir="${java.runtime.bootclasspath.dir}" /> |
|
153 <jar destfile="${java.runtime.bootclasspath.dir}/${jar.name}" update="true"> |
|
154 <fileset dir="./bin" /> |
|
155 <fileset dir="./res" /> |
|
156 </jar> |
|
157 <copy file="\epoc32\RELEASE\WINSCW\udeb\Z\resource\java\jvm\lib\jrt\openlcdui.odc" |
|
158 todir="${java.runtime.bootclasspath.dir}"/> |
|
159 <copy file="\epoc32\RELEASE\WINSCW\udeb\Z\resource\java\jvm\lib\jrt\javanokiaui.odc" |
|
160 todir="${java.runtime.bootclasspath.dir}"/> |
|
161 <antcall target="rename"/> |
|
162 </target> |
|
163 |
|
164 <target name="build.armv5" depends="compile.armv5"> |
|
165 <mkdir dir="${java.armv5.runtime.bootclasspath.dir}" /> |
|
166 <jar destfile="${java.armv5.runtime.bootclasspath.dir}/${jar.name}" update="true"> |
|
167 <fileset dir="./bin" /> |
|
168 <fileset dir="./res" /> |
|
169 </jar> |
|
170 <copy file="\epoc32\RELEASE\armv5\urel\Z\resource\java\jvm\lib\jrt\openlcdui.odc" |
|
171 todir="${java.armv5.runtime.bootclasspath.dir}"/> |
|
172 <copy file="\epoc32\RELEASE\armv5\urel\Z\resource\java\jvm\lib\jrt\javanokiaui.odc" |
|
173 todir="${java.armv5.runtime.bootclasspath.dir}"/> |
|
174 </target> |
|
175 |
|
176 <target name="test" depends="build"> |
|
177 <junit printsummary="yes" taskname="java1.4" fork="yes"> |
|
178 <formatter type="plain" /> |
|
179 <classpath refid="openlcdui.classpath" /> |
|
180 <classpath> |
|
181 <pathelement location="\epoc32\RELEASE\WINSCW\udeb\Z\resource\java\jvm\lib\common\openlcdui_tests.jar" /> |
|
182 </classpath> |
|
183 <sysproperty key="java.library.path" value="\epoc32\RELEASE\WINSCW\udeb" /> |
|
184 <test name="tests.OpenLCDUI_TestSuite" /> |
|
185 </junit> |
|
186 </target> |
|
187 |
|
188 <!-- Dll rename for tests run --> |
|
189 <target name="rename" > |
|
190 <!-- Renames only when tests are compiling very first time or |
|
191 tests compiling very first time after omj recompiled --> |
|
192 <condition property="isjavajvmargsmodifierfile"> |
|
193 <available file="\epoc32\release\winscw\udeb\javajvmargsmodifierfile.dll"/> |
|
194 </condition> |
|
195 <antcall target="rename_dll"/> |
|
196 </target> |
|
197 |
|
198 <target name="rename_dll" if="isjavajvmargsmodifierfile"> |
|
199 <condition property="isjavajvmargsmodifierdefault"> |
|
200 <available file="\epoc32\release\winscw\udeb\javajvmargsmodifierdefault.dll"/> |
|
201 </condition> |
|
202 <antcall target="rename_omjrecompiled"/> |
|
203 <antcall target="rename_firsttime"/> |
|
204 </target> |
|
205 |
|
206 <target name="rename_omjrecompiled" if="isjavajvmargsmodifierdefault"> |
|
207 <delete file="\epoc32\release\winscw\udeb\javajvmargsmodifierdefault.dll" /> |
|
208 <move file="\epoc32\release\winscw\udeb\javajvmargsmodifier.dll" tofile="\epoc32\release\winscw\udeb\javajvmargsmodifierdefault.dll" failonerror="false"/> |
|
209 <move file="\epoc32\release\winscw\udeb\javajvmargsmodifierfile.dll" tofile="\epoc32\release\winscw\udeb\javajvmargsmodifier.dll" failonerror="false"/> |
|
210 </target> |
|
211 |
|
212 <target name="rename_firsttime" unless="isjavajvmargsmodifierdefault"> |
|
213 <copy file="\epoc32\release\winscw\udeb\javajvmargsmodifier.dll" tofile="\epoc32\release\winscw\udeb\javajvmargsmodifier_org.dll"/> |
|
214 <copy file="\epoc32\release\winscw\udeb\javajvmargsmodifierfile.dll" tofile="\epoc32\release\winscw\udeb\javajvmargsmodifierfile_org.dll"/> |
|
215 <move file="\epoc32\release\winscw\udeb\javajvmargsmodifier.dll" tofile="\epoc32\release\winscw\udeb\javajvmargsmodifierdefault.dll" failonerror="false"/> |
|
216 <move file="\epoc32\release\winscw\udeb\javajvmargsmodifierfile.dll" tofile="\epoc32\release\winscw\udeb\javajvmargsmodifier.dll" failonerror="false"/> |
|
217 </target> |
|
218 |
|
219 </project> |