3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-30 21:57:47 +00:00
This commit is contained in:
Miodrag Milanovic 2026-03-26 08:14:16 +01:00
parent bfd3e150fa
commit 76732497b9
8 changed files with 75 additions and 76 deletions

View file

@ -56,11 +56,11 @@ def unpack_cmd(cmd):
if isinstance(cmd, str):
return cmd
if isinstance(cmd, (list, tuple)):
return " \\\n".join(cmd)
return " && \\\n".join(cmd)
raise TypeError("cmd must be a string or a list/tuple of strings")
def generate_cmd_test(test_name, cmd, yosys_args=""):
generate_target(test_name, unpack_cmd(cmd))
def generate_cmd_test(test_name, cmd, yosys_args="", deps = None):
generate_target(test_name, unpack_cmd(cmd), deps)
def generate_tests(argv, cmds):
parser = argparse.ArgumentParser(add_help=False)