3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-07-17 20:16:42 +00:00

Use the test Makefile for all examples

* Rename and move sbysrc/demo[123].sby to docs/examples/demos
    * Make them use multiple tasks for multiple engines
* Scan docs/examples for sby files for make test
* `make ci` is now `NOSKIP` by default
* Skip scripts using `verific` w/o yosys verific support
    * This does not fail even with NOSKIP set
This commit is contained in:
Jannis Harder 2022-06-13 13:20:33 +02:00
parent 1d21513a47
commit 499371fd39
18 changed files with 77 additions and 92 deletions

View file

@ -36,6 +36,15 @@ if __name__ == "__main__":
with open("make/rules/found_tools") as found_tools_file:
found_tools = set(tool.strip() for tool in found_tools_file.readlines())
if 'verific' in required_tools:
result = subprocess.run(["yosys", "-qp", "read -verific"], capture_output=True)
if result.returncode:
print()
print(f"SKIPPING {target}: requires yosys with verific support")
print()
exit()
required_tools.remove('verific')
missing_tools = sorted(
f"`{tool}`" for tool in required_tools if tool not in found_tools
)