3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-04-26 13:53:34 +00:00

Fix some escaping with different approach

This commit is contained in:
Miodrag Milanovic 2026-03-25 09:41:39 +01:00
parent 86c9b06d98
commit 31bf712059
2 changed files with 12 additions and 15 deletions

View file

@ -17,12 +17,9 @@ def generate_target(name, command):
target = f"{name}"
print(f"all: {target}")
print(f".PHONY: {target}")
print(f"{target}_cmd={command}")
print(f"{target}:")
if command:
print(f"\t@$(call run_test,{target}, \\")
print(f"\t{command})")
else:
print(f"\t@$(call run_test,{target})")
print(f"\t@$(call run_test,{target}, $({target}_cmd))")
def generate_ys_test(ys_file, yosys_args="", commands=""):
cmd = f'$(YOSYS) -ql {ys_file}.err {yosys_args} {ys_file} >/dev/null 2>&1 && mv {ys_file}.err {ys_file}.log'