Skip to content

Commit

Permalink
improve reproducibility test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladicek committed Apr 12, 2023
1 parent 0b61bb7 commit dc65225
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion maven-plugin/src/it/reproducible/invoker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@

invoker.goals = clean test

invoker.goals.2 = test -DindexName=jandex-2.idx
invoker.goals.2 = clean test -DindexName=jandex-2.idx
4 changes: 3 additions & 1 deletion maven-plugin/src/it/reproducible/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@
<goal>jandex</goal>
</goals>
<configuration>
<!-- so that the 2nd execution of `mvn clean test` doesn't delete the previous index file -->
<indexDir>${project.basedir}</indexDir>
<indexName>${indexName}</indexName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
</project>
6 changes: 3 additions & 3 deletions maven-plugin/src/it/reproducible/verify.groovy
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
def jandexFile = new File(basedir, 'target/classes/META-INF/jandex.idx')
def jandexFile2 = new File(basedir, 'target/classes/META-INF/jandex-2.idx')
def jandexFile = new File(basedir, 'jandex.idx')
def jandexFile2 = new File(basedir, 'jandex-2.idx')

assert jandexFile.exists() : "File does not exist: ${jandexFile}"
assert jandexFile2.exists() : "File does not exist: ${jandexFile}"
assert jandexFile2.exists() : "File does not exist: ${jandexFile2}"

byte[] idx = jandexFile.bytes
byte[] idx2 = jandexFile2.bytes
Expand Down

0 comments on commit dc65225

Please sign in to comment.