Skip to content

Commit

Permalink
Tests: Add RISC-V disassembly tests
Browse files Browse the repository at this point in the history
There are two tests here, one for full RV64G coverage and one with the
asinh implementation from our libc. There's no dedicated C tests (though
C is tested plenty in asinh) since I've already spent over two days
writing these tests.
  • Loading branch information
kleinesfilmroellchen committed Jan 19, 2024
1 parent 436065f commit a57ecfb
Show file tree
Hide file tree
Showing 5 changed files with 755 additions and 0 deletions.
1 change: 1 addition & 0 deletions Meta/Lagom/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ if (BUILD_LAGOM)
JSSpecCompiler
LibCrypto
LibCompress
LibDisassembly
LibGL
LibGfx
LibIMAP
Expand Down
1 change: 1 addition & 0 deletions Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ add_subdirectory(LibCompress)
add_subdirectory(LibCore)
add_subdirectory(LibCpp)
add_subdirectory(LibDiff)
add_subdirectory(LibDisassembly)
add_subdirectory(LibEDID)
add_subdirectory(LibELF)
add_subdirectory(LibGfx)
Expand Down
7 changes: 7 additions & 0 deletions Tests/LibDisassembly/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set(TEST_SOURCES
TestRISCV64Disassembly.cpp
)

foreach(source IN LISTS TEST_SOURCES)
serenity_test("${source}" LibDisassembly LIBS LibDisassembly)
endforeach()
Loading

0 comments on commit a57ecfb

Please sign in to comment.