|
@@ -91,6 +91,7 @@ def unit() -> None:
|
|
|
"tests/unit/test_6400_v1_contract.py",
|
|
"tests/unit/test_6400_v1_contract.py",
|
|
|
"tests/unit/test_6400_v1_source_closure.py",
|
|
"tests/unit/test_6400_v1_source_closure.py",
|
|
|
"tests/unit/test_encode_6400_hex.py",
|
|
"tests/unit/test_encode_6400_hex.py",
|
|
|
|
|
+ "tests/unit/test_fw_6400_v1_entrypoint.py",
|
|
|
])
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
@@ -106,13 +107,13 @@ def pi_differential() -> None:
|
|
|
run(["python3", "tests/cocotb/run_6400_pi_differential.py"])
|
|
run(["python3", "tests/cocotb/run_6400_pi_differential.py"])
|
|
|
|
|
|
|
|
|
|
|
|
|
-def main() -> int:
|
|
|
|
|
|
|
+def main(argv: list[str] | None = None) -> int:
|
|
|
parser = argparse.ArgumentParser()
|
|
parser = argparse.ArgumentParser()
|
|
|
parser.add_argument(
|
|
parser.add_argument(
|
|
|
"action",
|
|
"action",
|
|
|
choices=("generate", "lint", "sim", "cocotb", "bmc", "pwm", "pi", "unit", "all"),
|
|
choices=("generate", "lint", "sim", "cocotb", "bmc", "pwm", "pi", "unit", "all"),
|
|
|
)
|
|
)
|
|
|
- args = parser.parse_args()
|
|
|
|
|
|
|
+ args = parser.parse_args(argv)
|
|
|
if args.action in ("generate", "all"):
|
|
if args.action in ("generate", "all"):
|
|
|
generate()
|
|
generate()
|
|
|
if args.action in ("lint", "all"):
|
|
if args.action in ("lint", "all"):
|