• Home
  • Raw
  • Download

Lines Matching refs:package

34 from package import getPackageDescription
112 def verifyMustpassCases(package, mustpassCases, type): argument
157 … if conformOs == "any" or (package.conformOs != None and conformOs in package.conformOs.lower()):
167 def verifyTestLogs (package): argument
171 execute(['git', 'checkout', '--quiet', package.conformVersion])
174 print "Failed to checkout release tag %s." % package.conformVersion
178 summary = parseRunSummary(os.path.join(package.basePath, package.summary))
183 …messages.append(error(package.summary, "Runner reported conformance failure (Conformant=\"False\" …
186 …messages += verifyConfigFile(os.path.join(package.basePath, summary.configLogFilename), summary.ty…
203 messages_log = verifyTestLog(os.path.join(package.basePath, runLog), mustpass)
218 messages += verifyMustpassCases(package, mustpassCases, summary.type)
222 def verifyGitStatusFiles (package): argument
226 numFiles = numGitLogStatusFile(package.conformVersion)
228 if len(package.gitStatus) != numFiles:
229 …messages.append(error(package.basePath, "Exactly %s must be present, found %s" % (errorDict[numFil…
231 messages += verifyGitStatus(package)
235 def isGitLogFileEmpty (package, modulePath, gitLog): argument
236 logPath = os.path.join(package.basePath, gitLog)
239 args = ['git', 'log', '-1', package.conformVersion]
247 def verifyGitLogFile (package): argument
250 if len(package.gitLog) > 0:
251 for log, path in package.gitLog:
253 isEmpty = isGitLogFileEmpty(package, path, log)
259 messages.append(warning(os.path.join(package.basePath, log), "Log is not empty"))
261 messages.append(error(package.basePath, "Missing git log files"))
265 def verifyPatchFiles (package): argument
267 hasPatches = len(package.patches)
269 for log, path in package.gitLog:
270 logEmpty &= isGitLogFileEmpty(package, path, log)
273 messages.append(error(package.basePath, "Package includes patches but log is empty"))
275 …messages.append(error(package.basePath, "Test log is not empty but package doesn't contain patches…
279 def verifyGitLogFiles (package): argument
283 numFiles = numGitLogStatusFile(package.conformVersion)
285 if len(package.gitLog) != numFiles:
286 …messages.append(error(package.basePath, "Exactly %s must be present, found %s" % (errorDict[numFil…
288 for i, gitLog in enumerate(package.gitLog):
290 package.gitLog[i] = gitLog[:1] + ("external/kc-cts/src",) + gitLog[2:]
292 messages += verifyGitLogFile(package)
296 def verifyPackage (package): argument
299 messages += verifyStatement(package)
300 messages += verifyGitStatusFiles(package)
301 messages += verifyGitLogFiles(package)
302 messages += verifyPatchFiles(package)
304 for item in package.otherItems:
305 messages.append(warning(os.path.join(package.basePath, item), "Unknown file"))
321 package = getPackageDescription(packagePath)
322 messages = verifyPackage(package)
323 messages += verifyTestLogs(package)