diff --git a/dev-tools/idea/.idea/libraries/JUnit.xml b/dev-tools/idea/.idea/libraries/JUnit.xml index 44fe35d4ac0..b3c2d128f00 100644 --- a/dev-tools/idea/.idea/libraries/JUnit.xml +++ b/dev-tools/idea/.idea/libraries/JUnit.xml @@ -2,7 +2,7 @@ - + diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt index ae37ffdd1e5..e675bd51e05 100644 --- a/lucene/CHANGES.txt +++ b/lucene/CHANGES.txt @@ -267,6 +267,9 @@ Changes in backwards compatibility policy Build +* LUCENE-5283: Fail the build if ant test didn't execute any tests + (everything filtered out). (Dawid Weiss) + * LUCENE-5249, LUCENE-5257: All Lucene/Solr modules should use the same dependency versions. (Steve Rowe) diff --git a/lucene/analysis/build.xml b/lucene/analysis/build.xml index c0c16e3d53d..5ab5c8d10da 100644 --- a/lucene/analysis/build.xml +++ b/lucene/analysis/build.xml @@ -46,6 +46,7 @@ + diff --git a/lucene/build.xml b/lucene/build.xml index ee10754ccec..74f40db8e55 100644 --- a/lucene/build.xml +++ b/lucene/build.xml @@ -52,7 +52,7 @@ - diff --git a/lucene/common-build.xml b/lucene/common-build.xml index 12725747165..67b7bec8871 100644 --- a/lucene/common-build.xml +++ b/lucene/common-build.xml @@ -263,6 +263,7 @@ + + + - + + + # module: ${ant.project.name} ${junit4.stats.nonIgnored} + 5 slowest tests: @@ -1254,11 +1262,49 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites - + + + + + + + + + + + if (line ==~ /^[0-9]+/) { + total += Integer.valueOf(line); + } + }); + statsFile.delete(); + + if (total == 0) { + throw new org.apache.tools.ant.BuildException("Not even a single test was executed (a typo in the filter pattern maybe)?"); + } + + // Interesting but let's keep the build output quiet. + // project.log("Grand total of all executed tests (including sub-modules): " + total); + ]]> + + + + + + + + diff --git a/lucene/ivy-versions.properties b/lucene/ivy-versions.properties index 077b7ddbc90..a71f538dc51 100644 --- a/lucene/ivy-versions.properties +++ b/lucene/ivy-versions.properties @@ -4,7 +4,7 @@ /cglib/cglib-nodep = 2.2 -com.carrotsearch.randomizedtesting.version = 2.0.12 +com.carrotsearch.randomizedtesting.version = 2.0.13 /com.carrotsearch.randomizedtesting/junit4-ant = ${com.carrotsearch.randomizedtesting.version} /com.carrotsearch.randomizedtesting/randomizedtesting-runner = ${com.carrotsearch.randomizedtesting.version} diff --git a/lucene/licenses/junit4-ant-2.0.12.jar.sha1 b/lucene/licenses/junit4-ant-2.0.12.jar.sha1 deleted file mode 100644 index ce03d7bb6bc..00000000000 --- a/lucene/licenses/junit4-ant-2.0.12.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -7e82374008eb6810e2b22c877ecd4c179cdac1ea diff --git a/lucene/licenses/junit4-ant-2.0.13.jar.sha1 b/lucene/licenses/junit4-ant-2.0.13.jar.sha1 new file mode 100644 index 00000000000..4c41a16e0fe --- /dev/null +++ b/lucene/licenses/junit4-ant-2.0.13.jar.sha1 @@ -0,0 +1 @@ +33904a47c5f920d270437ea1075cc9fa5ecb8099 diff --git a/lucene/licenses/randomizedtesting-runner-2.0.12.jar.sha1 b/lucene/licenses/randomizedtesting-runner-2.0.12.jar.sha1 deleted file mode 100644 index 49ceb681f3f..00000000000 --- a/lucene/licenses/randomizedtesting-runner-2.0.12.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -0a9b381e004bf866aa3783412e5a03ebfff48ea3 diff --git a/lucene/licenses/randomizedtesting-runner-2.0.13.jar.sha1 b/lucene/licenses/randomizedtesting-runner-2.0.13.jar.sha1 new file mode 100644 index 00000000000..3ad2bb603f7 --- /dev/null +++ b/lucene/licenses/randomizedtesting-runner-2.0.13.jar.sha1 @@ -0,0 +1 @@ +bdacac985583621c50de414b1d45b1e6e43f6d1f diff --git a/solr/build.xml b/solr/build.xml index b2a56e41932..baabb63213f 100644 --- a/solr/build.xml +++ b/solr/build.xml @@ -130,7 +130,7 @@ depends="compile-core, compile-contrib"/> + depends="-init-totals, test-core, test-contrib, -check-totals"/> diff --git a/solr/licenses/junit4-ant-2.0.12.jar.sha1 b/solr/licenses/junit4-ant-2.0.12.jar.sha1 deleted file mode 100644 index ce03d7bb6bc..00000000000 --- a/solr/licenses/junit4-ant-2.0.12.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -7e82374008eb6810e2b22c877ecd4c179cdac1ea diff --git a/solr/licenses/junit4-ant-2.0.13.jar.sha1 b/solr/licenses/junit4-ant-2.0.13.jar.sha1 new file mode 100644 index 00000000000..4c41a16e0fe --- /dev/null +++ b/solr/licenses/junit4-ant-2.0.13.jar.sha1 @@ -0,0 +1 @@ +33904a47c5f920d270437ea1075cc9fa5ecb8099 diff --git a/solr/licenses/randomizedtesting-runner-2.0.12.jar.sha1 b/solr/licenses/randomizedtesting-runner-2.0.12.jar.sha1 deleted file mode 100644 index 49ceb681f3f..00000000000 --- a/solr/licenses/randomizedtesting-runner-2.0.12.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -0a9b381e004bf866aa3783412e5a03ebfff48ea3 diff --git a/solr/licenses/randomizedtesting-runner-2.0.13.jar.sha1 b/solr/licenses/randomizedtesting-runner-2.0.13.jar.sha1 new file mode 100644 index 00000000000..3ad2bb603f7 --- /dev/null +++ b/solr/licenses/randomizedtesting-runner-2.0.13.jar.sha1 @@ -0,0 +1 @@ +bdacac985583621c50de414b1d45b1e6e43f6d1f