// TestGZIPFilesHaveZeroMTimes checks that every .gz file in the tree // has a zero MTIME. This is a requirement for the Debian maintainers // to be able to have deterministic packages. // // To patch a .gz file, use the following command: // // $ dd if=/dev/zero bs=1 seek=4 count=4 conv=notrunc of=filename.gz // // See https://golang.org/issue/14937. func TestGZIPFilesHaveZeroMTimes(t *testing.T) { … } func checkZeroMTime(t *testing.T, path string) { … }