Lines Matching +full:commit +full:- +full:message

5 This script is a small wrapper around the abi-compliance-checker and
6 abi-dumper tools, applying them to compare the ABI and API of the library
10 Returns 0 on success, 1 on ABI/API non-compliance, and 2 if there is an error
15 # SPDX-License-Identifier: Apache-2.0
21 # http://www.apache.org/licenses/LICENSE-2.0
86 for command in ["abi-dumper", "abi-compliance-checker"]:
106 self.log.debug(fetch_output.decode("utf-8"))
114 [self.git_command, "worktree", "add", "--detach",
119 self.log.debug(worktree_output.decode("utf-8"))
120 version.commit = subprocess.check_output(
121 [self.git_command, "rev-parse", "HEAD"],
125 self.log.debug("Commit is {}".format(version.commit))
133 [self.git_command, "submodule", "update", "--init", '--recursive'],
137 self.log.debug(update_output.decode("utf-8"))
149 self.log.debug(fetch_output.decode("utf-8"))
159 self.log.debug(checkout_output.decode("utf-8"))
164 my_environment["CFLAGS"] = "-g -Og"
174 self.log.debug(make_output.decode("utf-8"))
183 if version.revision == version.commit:
186 return "{} ({})".format(version.revision, version.commit)
194 self.report_dir, "{}-{}-{}.dump".format(
199 "abi-dumper",
201 "-o", output_path,
202 "-lver", self._pretty_revision(version),
208 self.log.debug(abi_dump_output.decode("utf-8"))
219 self.log.debug(worktree_output.decode("utf-8"))
251 "abi-compliance-checker",
252 "-l", mbed_module,
253 "-old", self.old_version.abi_dumps[mbed_module],
254 "-new", self.new_version.abi_dumps[mbed_module],
255 "-strict",
256 "-report-path", output_path,
259 abi_compliance_command += ["-skip-symbols", self.skip_file,
260 "-skip-types", self.skip_file]
262 abi_compliance_command += ["-report-format", "xml",
263 "-stdout"]
268 Append a message regarding compatibility to compatibility_report."""
270 self.report_dir, "{}-{}-{}.html".format(
287 report_root = ET.fromstring(err.output.decode("utf-8"))
289 self.log.info(ET.tostring(report_root).decode("utf-8"))
342 abi-compliance-checker and abi-dumper tools, applying them
347 of problems. Returns 0 on success, 1 on ABI/API non-compliance,
353 "-v", "--verbose", action="store_true",
357 "-r", "--report-dir", type=str, default="reports",
361 "-k", "--keep-all-reports", action="store_true",
365 "-o", "--old-rev", type=str, help="revision for old version.",
369 "-or", "--old-repo", type=str, help="repository for old version."
372 "-oc", "--old-crypto-rev", type=str,
376 "-ocr", "--old-crypto-repo", type=str,
380 "-n", "--new-rev", type=str, help="revision for new version",
384 "-nr", "--new-repo", type=str, help="repository for new version."
387 "-nc", "--new-crypto-rev", type=str,
391 "-ncr", "--new-crypto-repo", type=str,
395 "-s", "--skip-file", type=str,
397 "(typically \"-s identifiers\" after running "
398 "\"tests/scripts/list-identifiers.sh --internal\")")
401 "-b", "--brief", action="store_true",
412 commit=None,
422 commit=None,
438 except Exception: # pylint: disable=broad-except