File bouncycastle-notests.patch of Package bouncycastle
164
1
Index: bc-java-r1rv78/ant/bc+-build.xml
2
===================================================================
3
--- bc-java-r1rv78.orig/ant/bc+-build.xml
4
+++ bc-java-r1rv78/ant/bc+-build.xml
5
6
7
</target>
8
9
- <target name="build" depends="initMacros, build-lw, build-libraries, build-test" />
10
+ <target name="build" depends="initMacros, build-lw, build-libraries" />
11
12
<target name="build-lw" depends="initMacros">
13
<!--
14
15
16
</target>
17
18
- <!--
19
- Tests
20
- -->
21
- <target name="build-test" depends="initMacros">
22
- <property name="test.target" value="bctest-${target.name}" />
23
-
24
- <mkdir dir="${artifacts.jars.dir}" />
25
-
26
- <property name="test.target.dir" value="${artifacts.dir}/${test.target}" />
27
- <property name="test.target.src.dir" value="${test.target.dir}/src" />
28
-
29
- <mkdir dir="${test.target.dir}" />
30
-
31
- <copyStandardFiles toDir="${test.target.dir}" />
32
-
33
- <copy todir="${test.target.src.dir}">
34
- <fileset dir="${src.dir}" includes="/org/bouncycastle/test/*.java" />
35
- <fileset dir="${src.dir}" includes="**/*AllTests.java" />
36
- <fileset dir="${src.dir}" includes="**/math/**/*Test.java" />
37
- <fileset dir="${src.dir}" includes="**/crypto/*/*Test.java" />
38
- <fileset dir="${src.dir}" includes="**/tsp/*UnitTest.java" />
39
- <fileset dir="${src.dir}" includes="**/utiltest/*Test.java" />
40
- <fileset dir="${src.dir}" includes="**/util/io/pem/*Test.java" />
41
- <fileset dir="${src.dir}" includes="**/keybox/*Test.java" />
42
- <fileset dir="${src.dir}" includes="**/test/*.java" />
43
- <fileset dir="${src.dir}" includes="**/test/*/*.java" />
44
- <fileset dir="${src.dir}" includes="**/*.asc" />
45
- <fileset dir="${src.dir}" includes="**/*.pem" />
46
- <fileset dir="${src.dir}" includes="**/*.p7m" />
47
- <fileset dir="${src.dir}" includes="**/*.eml" />
48
- <fileset dir="${src.dir}" includes="**/*.sig" />
49
- <fileset dir="${src.dir}" includes="**/*.data" />
50
- <fileset dir="${src.dir}" includes="**/*.der" />
51
- <fileset dir="${src.dir}" includes="**/*.crt" />
52
- <fileset dir="${src.dir}" includes="**/*.key" />
53
- <fileset dir="${src.dir}" includes="**/*.cer" />
54
- <fileset dir="${src.dir}" includes="**/*.bin" />
55
- <fileset dir="${src.dir}" includes="**/*.ers" />
56
- <fileset dir="${src.dir}" includes="**/*.oer" />
57
- <fileset dir="${src.dir}" includes="**/*.kbx" />
58
- <fileset dir="${src.dir}" includes="**/*.crl" />
59
- <fileset dir="${src.dir}" includes="**/*.csr" />
60
- <fileset dir="${src.dir}" includes="**/*.txt" />
61
- <fileset dir="${src.dir}" includes="**/*.rsp" />
62
- <fileset dir="${src.dir}" includes="**/*.gpg" />
63
- <fileset dir="${src.dir}" includes="**/*.pgp" />
64
- <fileset dir="${src.dir}" includes="**/*.pub" />
65
- <fileset dir="${src.dir}" includes="**/*.sec" />
66
- <fileset dir="${src.dir}" includes="**/*.cvcert" />
67
- <fileset dir="${src.dir}" includes="**/*.properties" />
68
- <fileset dir="${src.dir}" includes="**/*.message" />
69
- </copy>
70
-
71
- <delete file="${test.target.src.dir}/org/bouncycastle/pqc/crypto/lms/AllTests.java" />
72
- <delete file="${test.target.src.dir}/org/bouncycastle/gpg/keybox/AllTests.java" />
73
- <delete file="${test.target.src.dir}/org/bouncycastle/x509/CertPathReviewerMessages_de.properties" />
74
- <delete file="${test.target.src.dir}/org/bouncycastle/x509/CertPathReviewerMessages.properties" />
75
-
76
- <compile-test target="${test.target}">
77
- <manifestElements>
78
- <attribute name="Manifest-Version" value="1.0" />
79
- <attribute name="Extension-Name" value="org.bouncycastle.bctest" />
80
- <attribute name="Specification-Vendor" value="BouncyCastle.org" />
81
- <attribute name="Specification-Version" value="1.1" />
82
- <attribute name="Implementation-Vendor-Id" value="org.bouncycastle" />
83
- <attribute name="Implementation-Vendor" value="BouncyCastle.org" />
84
- <attribute name="Implementation-Version" value="${release.version}.0" />
85
- <attribute name="Application-Name" value="Bouncy Castle Test Classes" />
86
- <attribute name="Trusted-Library" value="true" />
87
- <attribute name="Permissions" value="all-permissions" />
88
- <attribute name="Codebase" value="*" />
89
- <attribute name="Application-Library-Allowable-Codebase" value="*" />
90
- <attribute name="Caller-Allowable-Codebase" value="*" />
91
- </manifestElements>
92
- </compile-test>
93
- </target>
94
-
95
- <target name="test">
96
- <property name="test.target" value="bctest-${target.name}" />
97
- <property name="test.target.dir" value="${artifacts.dir}/${test.target}" />
98
- <property name="test.target.src.dir" value="${test.target.dir}/src" />
99
-
100
- <mkdir dir="${basedir}/${build.dir}/${target.prefix}" />
101
- <junit fork="yes" dir="${basedir}/${build.dir}/${target.prefix}" failureProperty="test.failed" printsummary="${junit.printsummary}">
102
- <classpath>
103
- <path refid="project.classpath" />
104
- <fileset dir="${artifacts.jars.dir}">
105
- <include name="**/*.jar" />
106
- <exclude name="**/bcprov-jdk*.jar" />
107
- <exclude name="**/bcjmail-jdk*.jar" />
108
- </fileset>
109
- </classpath>
110
- <sysproperty key="bc.test.data.home" value="../../core/src/test/data" />
111
- <sysproperty key="test.java.version.prefix" value="${env.JAVA_VERSION_PREFIX}" />
112
-
113
- <formatter type="xml" />
114
- <batchtest todir="${artifacts.reports.xml.dir}" unless="testcase">
115
- <fileset dir="${test.target.src.dir}">
116
- <include name="**/AllTests.java" />
117
- <exclude name="${env.JUNIT_EXCLUDE_TESTS}" if="env.JUNIT_EXCLUDE_TESTS" />
118
- </fileset>
119
- </batchtest>
120
- </junit>
121
-
122
- <junitreport todir="${artifacts.reports.xml.dir}">
123
- <fileset dir="${artifacts.reports.xml.dir}">
124
- <include name="TEST-*.xml" />
125
- </fileset>
126
- <report format="frames" todir="${artifacts.reports.html.dir}" />
127
- </junitreport>
128
-
129
- <fail if="test.failed"/>
130
- </target>
131
-
132
- <target name="test-lw">
133
- <junit fork="yes" dir="${basedir}/${build.dir}/${target.prefix}" failureProperty="test.failed">
134
- <classpath>
135
- <fileset dir="${artifacts.jars.dir}">
136
- <include name="**/*.jar" />
137
- <exclude name="**/bcprov-jdk*.jar" />
138
- </fileset>
139
- </classpath>
140
-
141
- <formatter type="xml" />
142
- <test name="${testcase}" todir="${artifacts.reports.xml.dir}" if="testcase" />
143
- <batchtest todir="${artifacts.reports.xml.dir}" unless="testcase">
144
- <fileset dir="${src.dir}">
145
- <include name="**/crypto/test/AllTests.java" />
146
- <include name="**/asn1/test/AllTests.java" />
147
- <include name="**/encoders/test/AllTests.java" />
148
- <include name="**/ntru/**/AllTests.java" />
149
- </fileset>
150
- </batchtest>
151
- </junit>
152
-
153
- <junitreport todir="${artifacts.reports.xml.dir}">
154
- <fileset dir="${artifacts.reports.xml.dir}">
155
- <include name="TEST-*.xml" />
156
- </fileset>
157
- <report format="frames" todir="${artifacts.reports.html.dir}" />
158
- </junitreport>
159
- </target>
160
-
161
<target name="javadoc-libraries" depends="javadoc-util, javadoc-pkix, javadoc-mail, javadoc-jmail, javadoc-pg" />
162
163
<!--
164