-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
tests.xml
109 lines (109 loc) · 4.96 KB
/
tests.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="test" name="ant-javacard tests">
<include file="kits.xml"/>
<!-- Build test applets -->
<target name="test" depends="jcpro,test-library-user,test-multiapp,test-no-output,test-sdks,test-stringdef,test-targetsdk,test-oldcross"/>
<!-- Different SDK-s-->
<target name="test-sdks">
<javacard>
<!-- JC 3.0.4 -->
<cap jckit="${JC304}" sources="src/testapplets/empty">
<applet class="testapplets.empty.Empty" aid="0102030405060708"/>
</cap>
<!-- JC 3.0.1 -->
<cap jckit="${JC303}" sources="src/testapplets/empty">
<applet class="testapplets.empty.Empty" aid="0102030405060708"/>
</cap>
<cap jckit="${JC222}" sources="src/testapplets/empty">
<applet class="testapplets.empty.Empty" aid="0102030405060708"/>
</cap>
<cap jckit="${JC212}" sources="src/testapplets/empty" verify="false">
<applet class="testapplets.empty.Empty" aid="0102030405060708"/>
</cap>
<cap debug="true" jckit="${JC221}" sources="src/testapplets/empty">
<applet class="testapplets.empty.Empty" aid="0102030405060708"/>
</cap>
<cap jckit="${JC305}" sources="src/testapplets/empty">
<applet class="testapplets.empty.Empty" aid="0102030405060708"/>
</cap>
<cap jckit="${JC305_2}" sources="src/testapplets/empty">
<applet class="testapplets.empty.Empty" aid="0102030405060708"/>
</cap>
<cap jckit="${JC305_1}" sources="src/testapplets/empty">
<applet class="testapplets.empty.Empty" aid="0102030405060708"/>
</cap>
<cap jckit="${JC304}" sources="src/testapplets/integer" ints="true">
<applet class="testapplets.integer.EmptyInt" aid="0102030405060708"/>
</cap>
<cap jckit="${JC211}" sources="src/testapplets/empty" verify="false">
<applet class="testapplets.empty.Empty" aid="0102030405060708"/>
</cap>
</javacard>
</target>
<!-- Output file generation -->
<target name="test-no-output" depends="jcpro">
<javacard jckit="${JC304}">
<cap sources="src/testapplets/empty">
<applet class="testapplets.empty.Empty" aid="0102030405060708"/>
</cap>
</javacard>
</target>
<!-- Library -->
<target name="test-library" depends="jcpro">
<javacard jckit="${JC305}">
<cap targetsdk="${JC222}" sources="src/testapplets/library" package="testapplets.library" aid="01020304050607" export="testlib" version="0.1"/>
</javacard>
</target>
<!-- JC 2.2.2 with 3.0.4 library -->
<target name="test-library-user" depends="jcpro,test-library">
<javacard>
<cap jckit="${JC222}" sources="src/testapplets/libraryuser">
<applet class="testapplets.libraryuser.LibraryUser" aid="0102030405060708"/>
<import jar="testlib/library.jar"/>
</cap>
</javacard>
</target>
<!-- JC 3.0.4 multiapp -->
<target name="test-multiapp" depends="jcpro">
<javacard>
<cap jckit="${JC303}" output="Multiapp.cap" sources="src/testapplets/multiapp" aid="010203040506">
<applet class="testapplets.multiapp.First" aid="01020304050607"/>
<applet class="testapplets.multiapp.Second" aid="0102030405060708"/>
<import jar="testlib/library.jar"/>
</cap>
</javacard>
</target>
<!-- Stringdefs -->
<target name="test-stringdef" depends="jcpro">
<javacard>
<cap jckit="${JC304}" output="StringDefs.cap" sources="src/testapplets/stringdefs" aid="010203040506">
<applet class="testapplets.stringdefs.Empty"/>
</cap>
</javacard>
</target>
<!-- targetsdk -->
<target name="test-targetsdk" depends="jcpro">
<javacard>
<cap jckit="${JC305}" targetsdk="${JC221}" sources="src/testapplets/empty" aid="010203040506">
<applet class="testapplets.empty.Empty"/>
</cap>
</javacard>
</target>
<!-- javaversion -->
<target name="test-javaversion" depends="jcpro">
<javacard>
<cap jckit="${JC304}" javaversion="1.6" sources="src/testapplets/empty" aid="010203040506">
<applet class="testapplets.empty.Empty"/>
</cap>
</javacard>
</target>
<!-- Cross-compile against old SDK -->
<target name="test-oldcross" depends="jcpro">
<javacard jckit="${JC305}">
<!-- Verification is supported for 2.2.1 and upwards-->
<cap targetsdk="${JC211}" sources="src/testapplets/empty" verify="false">
<applet class="testapplets.empty.Empty" aid="0102030405060708"/>
</cap>
</javacard>
</target>
</project>