Commit 71b8eba 1 parent 8155f7e commit 71b8eba Copy full SHA for 71b8eba
File tree 4 files changed +28
-3
lines changed
test/src/pkgYkneoOathTest
4 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 1
- vivokey-otp .cap
2
- ant-javacard- * .jar
1
+ * .cap
2
+ * .jar
Original file line number Diff line number Diff line change 7
7
<taskdef name =" javacard" classname =" pro.javacard.ant.JavaCard" classpath =" ant-javacard-${ version } .jar" />
8
8
</target >
9
9
10
- <target name =" build" depends =" ant-javacard" >
10
+ <target name =" build" depends =" test, ant-javacard" >
11
11
<javacard >
12
12
<cap jckit =" oracle_javacard_sdks/jc222_kit" aid =" A0:00:00:06:17:00:61:FC:54:D5:01" output =" vivokey-otp.cap" sources =" applet/src" >
13
13
<applet class =" pkgYkneoOath.YkneoOath" />
14
14
</cap >
15
15
</javacard >
16
16
</target >
17
+
18
+ <target name =" test" >
19
+ <local name =" tmpdir" />
20
+ <tempfile property =" tmpdir" destDir =" ${ java.io.tmpdir } " />
21
+ <mkdir dir =" ${ tmpdir } " />
22
+
23
+ <javac destDir =" ${ tmpdir } " includeantruntime =" false" >
24
+ <src path =" test/src" />
25
+ <src path =" applet/src" />
26
+ <classpath location =" junit-4.12.jar" />
27
+ <classpath location =" jcardsim-2.2.2-all.jar" />
28
+ </javac >
29
+
30
+ <junit fork =" yes" >
31
+ <classpath location =" ${ tmpdir } " />
32
+ <classpath location =" test/resources" />
33
+ <classpath location =" junit-4.12.jar" />
34
+ <classpath location =" hamcrest-core-1.3.jar" />
35
+ <classpath location =" jcardsim-2.2.2-all.jar" />
36
+ <batchtest >
37
+ <fileset dir =" ${ tmpdir } " includes =" pkgYkneoOathTest/*.class" />
38
+ <formatter type =" plain" usefile =" false" />
39
+ </batchtest >
40
+ </junit >
41
+ </target >
17
42
</project >
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments