mirror of
https://github.com/retroSoC/retroSoC.git
synced 2026-11-05 06:32:37 +00:00
feat: refactor test scripts to update paths and improve organization
- Updated paths in test files to reflect new directory structure for RTL and script files. - Changed references from rtl/mini to rtl/ip and scripts/rtl where applicable. - Added a new test file for Tiny product isolation, ensuring independent ABI and bus acceptance. - Enhanced tests for memory map generation and protocol contracts for Tiny architecture. - Ensured that all tests are aligned with the latest directory structure and naming conventions.
This commit is contained in:
194 files changed
+5534
-449
No files matched your search
@@ -66,7 +66,11 @@ def policy_issues(root: Path, path: Path, policy: dict[str, object]) -> list[str
|
||||
text = path.read_text(encoding="utf-8")
|
||||
issues: list[str] = []
|
||||
|
||||
if TINY_TOKEN.search(text):
|
||||
# Product names in comments/string literals are prose, not retired SDK
|
||||
# identifiers. Legacy include paths are still checked against the raw text.
|
||||
code = re.sub(r'/\*.*?\*/|//[^\n]*|"(?:\\.|[^"\\])*"|\'(?:\\.|[^\'\\])*\'',
|
||||
" ", text, flags=re.DOTALL)
|
||||
if TINY_TOKEN.search(code):
|
||||
issues.append("contains a retired tiny-prefixed identifier or label")
|
||||
if LEGACY_INCLUDE.search(text):
|
||||
issues.append("contains a retired legacy include path")
|
||||
|
||||
Reference in new issue
Block a user