Skip to content

Commit

Permalink
Verify reproducible build timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
norrisjeremy authored and tcurdt committed Aug 27, 2024
1 parent 0df624c commit 0c6a2b4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/it/project-build-outputTimestamp/verify.groovy
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
assert new File( basedir, 'target/jdeb-it_1.0_all.deb' ).exists();
import org.apache.commons.compress.archivers.ar.ArArchiveEntry
import org.apache.commons.compress.archivers.ar.ArArchiveInputStream

File deb = new File( basedir, 'target/jdeb-it_1.0_all.deb' )
assert deb.exists();
ArArchiveInputStream is = new ArArchiveInputStream(new FileInputStream(deb))
ArArchiveEntry entry
while ((entry = is.getNextEntry()) != null) {
assert entry.getLastModifiedDate().getTime() == 1724680800000L
}

0 comments on commit 0c6a2b4

Please sign in to comment.