forked from martinpaljak/ant-javacard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests-11.xml
122 lines (122 loc) · 5.21 KB
/
tests-11.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
110
111
112
113
114
115
116
117
118
119
120
121
122
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="test" name="ant-javacard tests">
<import 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,test-jca"/>
<!-- 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="${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="${JC310}" sources="src/testapplets/integer" ints="true">
<applet class="testapplets.integer.EmptyInt" 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" strip="false"/>
</javacard>
<fail message="export file missing">
<condition>
<not>
<available file="testlib/testapplets/library/javacard/library.exp"/>
</not>
</condition>
</fail>
</target>
<!-- JC 2.2.2 with 3.0.4 library -->
<target name="test-library-user" depends="jcpro,test-library">
<javacard>
<cap jckit="${JC303}" 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="010230040506">
<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">
<applet class="testapplets.empty.Empty" aid="0102030405060708"/>
</cap>
</javacard>
</target>
<!-- javaversion -->
<target name="test-javaversion" depends="jcpro">
<javacard>
<cap jckit="${JC304}" javaversion="1.6" sources="src/testapplets/empty">
<applet class="testapplets.empty.Empty" aid="0102030405060708"/>
</cap>
</javacard>
</target>
<!-- jca -->
<target name="test-jca" depends="jcpro">
<javacard>
<cap jckit="${JC304}" sources="src/testapplets/empty" jca="foobar.jca">
<applet class="testapplets.empty.Empty" aid="0102030405060708"/>
</cap>
</javacard>
<fail message="jca file missing">
<condition>
<not>
<available file="foobar.jca"/>
</not>
</condition>
</fail>
</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>