Skip to content

Commit 5e52e35

Browse files
committed
Ant test output can now show incremental progress
Added ability to override properties in bc-build.properties with a bc-build.user.properties file, which is ignored by git. The intent is for bc-build.user.properties to hold user-specific settings that are *not* committed to the repository. A summary line for each test suite executed can be output by adding this property to bc-build.user.properties: junit.printsummary: on The default behavior remains unchanged, as the default value for junit.printsummary is false.
1 parent cf490aa commit 5e52e35

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ tls/out
2626
test/out
2727
codesigning.jks
2828

29+
bc-build.user.properties
30+
2931
/out/production/core/META-INF/core.kotlin_module
3032
/out/production/mail/org/bouncycastle/mail/smime/validator/SignedMailValidatorMessages.properties
3133
/out/production/mail/org/bouncycastle/mail/smime/validator/SignedMailValidatorMessages_de.properties

ant/bc+-build.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<project name="crypto.bcbuild" default="build" basedir=".">
44

5+
<property file="bc-build.user.properties" />
56
<property file="bc-build.properties" />
67
<property environment="env" />
78

@@ -971,7 +972,7 @@
971972
<property name="test.target.src.dir" value="${test.target.dir}/src" />
972973

973974
<mkdir dir="${basedir}/${build.dir}/${target.prefix}" />
974-
<junit fork="yes" dir="${basedir}/${build.dir}/${target.prefix}" failureProperty="test.failed">
975+
<junit fork="yes" dir="${basedir}/${build.dir}/${target.prefix}" failureProperty="test.failed" printsummary="${junit.printsummary}">
975976
<classpath>
976977
<path refid="project.classpath" />
977978
<fileset dir="${artifacts.jars.dir}">

bc-build.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ jmail.jar.home: ./libs/jakarta.mail-2.0.1.jar
1010
jactivation.jar.home: ./libs/jakarta.activation-api-2.0.0.jar
1111
junit.jar.home: ./libs/junit.jar
1212

13+
junit.printsummary: off

0 commit comments

Comments
 (0)