Skip to content

Commit 48c4f74

Browse files
committed
Ant can now ignore unit tests matching a pattern
To temporarily ignore unit tests matching a specific pattern, run the build scripts like this: $ JUNIT_EXCLUDE_TESTS='**/pqc/**' sh build1-8+ test This example ignores the pqc unit tests, using Ant's ** wildcard to match multiple paths. As the changes were made to the core bc+-build.xml Ant script, they should work with any of the build1-* shell scripts.
1 parent 1d01e54 commit 48c4f74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ant/bc+-build.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,7 @@
986986
<batchtest todir="${artifacts.reports.xml.dir}" unless="testcase">
987987
<fileset dir="${test.target.src.dir}">
988988
<include name="**/AllTests.java" />
989+
<exclude name="${env.JUNIT_EXCLUDE_TESTS}" if="env.JUNIT_EXCLUDE_TESTS" />
989990
</fileset>
990991
</batchtest>
991992
</junit>

0 commit comments

Comments
 (0)