Skip to content

Commit

Permalink
Add RzIL tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Nov 21, 2023
1 parent fe7c050 commit 0695f1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class OutputFile(StrEnum):

ANA_TESTS = "<REPO>/rizin/test/db/analysis/hexagon"
ASM_TESTS = "<REPO>/rizin/test/db/asm/hexagon"
RZIL_TESTS = "<REPO>/rizin/test/db/rzil/hexagon"
ANALYSIS_HEXAGON_C = "<REPO>/rizin/librz/analysis/p/analysis_hexagon.c"
ASM_HEXAGON_C = "<REPO>/rizin/librz/asm/p/asm_hexagon.c"
CC_HEXAGON_32_SDB_TXT = "<REPO>/rizin/librz/analysis/d/cc-hexagon-32.sdb.txt"
Expand Down
7 changes: 7 additions & 0 deletions LLVMImporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,13 @@ def copy_tests() -> None:
with open(path, "w+") as g:
set_pos_after_license(g)
g.writelines(f.readlines())

with open("handwritten/rzil-tests/hexagon") as f:
path = Conf.get_path(OutputFile.RZIL_TESTS)
Conf.check_path(path.absolute())
with open(path, "w+") as g:
set_pos_after_license(g)
g.writelines(f.readlines())
log("Copied test files to ./rizin/test/db/", LogLevel.DEBUG)

# RIZIN SPECIFIC
Expand Down

0 comments on commit 0695f1f

Please sign in to comment.