Skip to content

Commit

Permalink
Ant test output can now show incremental progress
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jwcranford committed Oct 21, 2022
1 parent 0f2b0ea commit 0607126
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ tls/out
test/out
codesigning.jks

bc-build.user.properties

/out/production/core/META-INF/core.kotlin_module
/out/production/mail/org/bouncycastle/mail/smime/validator/SignedMailValidatorMessages.properties
/out/production/mail/org/bouncycastle/mail/smime/validator/SignedMailValidatorMessages_de.properties
Expand Down
3 changes: 2 additions & 1 deletion ant/bc+-build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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

<property file="bc-build.user.properties" />
<property file="bc-build.properties" />
<property environment="env" />

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

<mkdir dir="${basedir}/${build.dir}/${target.prefix}" />
<junit fork="yes" dir="${basedir}/${build.dir}/${target.prefix}" failureProperty="test.failed">
<junit fork="yes" dir="${basedir}/${build.dir}/${target.prefix}" failureProperty="test.failed" printsummary="${junit.printsummary}">
<classpath>
<path refid="project.classpath" />
<fileset dir="${artifacts.jars.dir}">
Expand Down
1 change: 1 addition & 0 deletions bc-build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ jmail.jar.home: ./libs/jakarta.mail-2.0.1.jar
jactivation.jar.home: ./libs/jakarta.activation-api-2.0.0.jar
junit.jar.home: ./libs/junit.jar

junit.printsummary: off

0 comments on commit 0607126

Please sign in to comment.