18 |
18 |
19 Description: |
19 Description: |
20 |
20 |
21 ============================================================================ |
21 ============================================================================ |
22 --> |
22 --> |
|
23 <!--* @package testing --> |
23 <project name="_testing.eunit"> |
24 <project name="_testing.eunit"> |
24 <description> |
25 <description> |
25 Testing using EUnit. (For WINSCW) |
26 Testing using EUnit. (For WINSCW) |
26 </description> |
27 </description> |
|
28 |
|
29 <!--* @property eunit.prepare.zip |
|
30 Name of eunit zip file. Need to unzip into build area to start eunit test |
|
31 @type string |
|
32 @editable required |
|
33 @scope public |
|
34 --> |
|
35 |
|
36 <!--* @property eunit.prepare.zip |
|
37 Name of eunit zip file. Need to unzip into build area to start eunit test |
|
38 @type string |
|
39 @editable required |
|
40 @scope public |
|
41 --> |
|
42 |
|
43 <!--* @property eunitexerunner.flags |
|
44 Flags for EUnit exerunner can be set by setting the value of this variable. The default flags are set to "/E S60AppEnv /R Off". |
|
45 @type string |
|
46 @editable required |
|
47 @scope public |
|
48 --> |
27 |
49 |
28 <!-- Unzip test package to build drive. --> |
50 <!-- Unzip test package to build drive. --> |
29 <target name="prepare-eunit" if="enabled.ats"> |
51 <target name="prepare-eunit" if="enabled.ats"> |
30 <unzip src="${eunit.prepare.zip}" dest="${build.drive}/" /> |
52 <unzip src="${eunit.prepare.zip}" dest="${build.drive}/" /> |
31 </target> |
53 </target> |
32 |
54 |
33 <!-- Runs eunittests for Java code --> |
55 <!-- Runs eunittests for Java code --> |
34 <target name="eunittest" depends="prepare-eunit"> |
56 <target name="eunittest" depends="prepare-eunit"> |
|
57 <mkdir dir="${test.log.dir}"/> |
35 <for list="${eunit.dlls}" delimiter="," param="eunit.dll"> |
58 <for list="${eunit.dlls}" delimiter="," param="eunit.dll"> |
36 <sequential> |
59 <sequential> |
37 <exec executable="${build.drive}/epoc32/release/winscw/udeb/EUnitExeRunner.exe" dir="${build.drive}/epoc32/release/winscw/udeb" failonerror="${failonerror}"> |
60 <exec executable="${build.drive}/epoc32/release/winscw/udeb/EUnitExeRunner.exe" dir="${build.drive}/epoc32/release/winscw/udeb" failonerror="${failonerror}"> |
38 <arg line="@{eunit.dll}" /> |
61 <arg line="@{eunit.dll}" /> |
39 </exec> |
62 </exec> |
40 </sequential> |
63 </sequential> |
41 </for> |
64 </for> |
42 <copy file="${build.drive}\epoc32\winscw\c\shared\Eunit\logs\Eunit_Log.xml" tofile="${build.log.dir}\${build.id}_Eunit_Log.xml" /> |
65 <copy file="${build.drive}\epoc32\winscw\c\shared\Eunit\logs\Eunit_Log.xml" tofile="${temp.build.dir}\${build.id}_Eunit_Log.xml" /> |
43 </target> |
66 </target> |
44 |
67 |
45 </project> |
68 </project> |