Lines Matching +full:storage +full:- +full:repo
9 is a small wrapper around the abi-compliance-checker and abi-dumper tools,
12 For the storage format, this script compares the automatically generated
13 storage tests and the manual read tests, and complains if there is a
21 Returns 0 on success, 1 on non-compliance, and 2 if there is an error
24 ### How to interpret non-compliance ###
64 **Storage format**: the goal is to check that persistent keys stored by the
67 A failure is a storage read test case that is no longer present with the same
87 # SPDX-License-Identifier: Apache-2.0
93 # http://www.apache.org/licenses/LICENSE-2.0
132 configuration.check_storage: if true, compare storage format tests
165 for command in ["abi-dumper", "abi-compliance-checker"]:
185 self.log.debug(fetch_output.decode("utf-8"))
193 [self.git_command, "worktree", "add", "--detach",
198 self.log.debug(worktree_output.decode("utf-8"))
200 [self.git_command, "rev-parse", "HEAD"],
212 [self.git_command, "submodule", "update", "--init", '--recursive'],
216 self.log.debug(update_output.decode("utf-8"))
228 self.log.debug(fetch_output.decode("utf-8"))
238 self.log.debug(checkout_output.decode("utf-8"))
243 my_environment["CFLAGS"] = "-g -Og"
253 self.log.debug(make_output.decode("utf-8"))
273 self.report_dir, "{}-{}-{}.dump".format(
278 "abi-dumper",
280 "-o", output_path,
281 "-lver", self._pretty_revision(version),
287 self.log.debug(abi_dump_output.decode("utf-8"))
292 """Eliminate cosmetic or irrelevant details in storage format test cases."""
301 """Record storage tests from the given file.
341 ['tests/scripts/generate_psa_tests.py', '--list'],
347 """Record the storage format tests for the specified git version.
349 The storage format tests are the test suite data files whose name
385 self.log.debug(worktree_output.decode("utf-8"))
420 "abi-compliance-checker",
421 "-l", mbed_module,
422 "-old", self.old_version.abi_dumps[mbed_module],
423 "-new", self.new_version.abi_dumps[mbed_module],
424 "-strict",
425 "-report-path", output_path,
428 abi_compliance_command += ["-skip-symbols", self.skip_file,
429 "-skip-types", self.skip_file]
431 abi_compliance_command += ["-report-format", "xml",
432 "-stdout"]
439 self.report_dir, "{}-{}-{}.html".format(
456 report_root = ET.fromstring(err.output.decode("utf-8"))
458 self.log.info(ET.tostring(report_root).decode("utf-8"))
490 'FAIL: {}/{} storage format test cases have changed or disappeared.'.format(
493 'PASS: All {} storage format test cases are preserved.'.format(
498 'Info: number of storage format tests cases: {} -> {}.'.format(
554 "-v", "--verbose", action="store_true",
558 "-r", "--report-dir", type=str, default="reports",
562 "-k", "--keep-all-reports", action="store_true",
566 "-o", "--old-rev", type=str, help="revision for old version.",
570 "-or", "--old-repo", type=str, help="repository for old version."
573 "-oc", "--old-crypto-rev", type=str,
577 "-ocr", "--old-crypto-repo", type=str,
581 "-n", "--new-rev", type=str, help="revision for new version",
585 "-nr", "--new-repo", type=str, help="repository for new version."
588 "-nc", "--new-crypto-rev", type=str,
592 "-ncr", "--new-crypto-repo", type=str,
596 "-s", "--skip-file", type=str,
598 "(typically \"-s identifiers\" after running "
599 "\"tests/scripts/list-identifiers.sh --internal\")")
602 "--check-abi",
606 parser.add_argument("--no-check-abi", action='store_false', dest='check_abi')
608 "--check-api",
612 parser.add_argument("--no-check-api", action='store_false', dest='check_api')
614 "--check-storage",
616 help="Perform storage tests comparison (default: yes)"
618 parser.add_argument("--no-check-storage", action='store_false', dest='check_storage')
620 "-b", "--brief", action="store_true",
662 except Exception: # pylint: disable=broad-except