mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-22 16:45:32 +00:00
docs: Debugging macro test fail
Call yosys-config post build extraction for sanity check. Report absolute path for yosys exe if it can't be found.
This commit is contained in:
parent
112a5cfc67
commit
6f602e79d4
2 changed files with 46 additions and 4 deletions
|
@ -12,12 +12,13 @@ logging.basicConfig(level=logging.INFO)
|
|||
# expects __file__ = yosys/docs/tests/macro_commands.py
|
||||
TESTS_DIR = Path(__file__).parent
|
||||
ROOT_DIR = TESTS_DIR.parent.parent
|
||||
logging.log(logging.INFO, f"Using {ROOT_DIR.absolute()} as root directory")
|
||||
THIS_FILE = (TESTS_DIR / "macro_commands.py").relative_to(ROOT_DIR)
|
||||
MACRO_SOURCE = TESTS_DIR.parent / "source" / "code_examples" / "macro_commands"
|
||||
assert MACRO_SOURCE.exists(), f"can't find macro_commands in {MACRO_SOURCE}"
|
||||
assert MACRO_SOURCE.exists(), f"can't find macro_commands in {MACRO_SOURCE.absolute()}"
|
||||
|
||||
YOSYS = TESTS_DIR.parent.parent / "yosys"
|
||||
assert YOSYS.exists(), f"can't find yosys executable in {YOSYS}"
|
||||
YOSYS = ROOT_DIR / "yosys"
|
||||
assert YOSYS.exists(), f"can't find yosys executable in {YOSYS.absolute()}"
|
||||
|
||||
raise_error = False
|
||||
# get all macro commands being used
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue