Lines Matching full:checksums
2 """ A small program to compute checksums of LLVM checkout.
27 help="read checksums from reference_file and "
28 + "check they match checksums of llvm_path.",
56 checksums = ComputeLLVMChecksums(args.llvm_path, llvm_projects)
59 WriteLLVMChecksums(checksums, sys.stdout)
62 if not ValidateChecksums(reference_checksums, checksums, args.partial):
63 sys.stdout.write("Checksums differ.\nNew checksums:\n")
64 WriteLLVMChecksums(checksums, sys.stdout)
65 sys.stdout.write("Reference checksums:\n")
69 sys.stdout.write("Checksums match.")
73 """Compute checksums for LLVM sources checked out using svn.
136 def WriteLLVMChecksums(checksums, f): argument
137 """Writes checksums to a text file.
140 checksums: a dict mapping from project name to project checksum (result of
145 for proj in sorted(checksums.keys()):
146 f.write("{} {}\n".format(checksums[proj], proj))
150 """Reads checksums from a text file, produced by WriteLLVMChecksums.
155 checksums = {}
161 checksums[proj] = checksum
162 return checksums
169 reference_checksums: a dict of reference checksums, mapping from a project
171 new_checksums: a dict of checksums to be checked, mapping from a project
176 When False, new_checksums and reference_checksums must contain checksums
182 True, if checksums match with regards to allow_missing_projects flag value.