Skip to content

Commit

Permalink
Add unit tests for abstract interpretation.
Browse files Browse the repository at this point in the history
OMR_ARCH_POWER flag is removed from fvtest/CMakeLists.txt.
Since now it contains tests also for non-arch platforms.

Tests including:
- Tests on getters and setters.
- Tests on clone operations.
- Tests on merge operations.
- Tests on push/pop operations of stack.

Issue: eclipse-omr#5488

Signed-off-by: cijie xia <[email protected]>
  • Loading branch information
xiacijie committed Nov 16, 2020
1 parent 8649882 commit 703402e
Show file tree
Hide file tree
Showing 4 changed files with 531 additions and 6 deletions.
7 changes: 1 addition & 6 deletions fvtest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,5 @@ endif()
if(OMR_JITBUILDER_TEST)
add_subdirectory(tril)
add_subdirectory(compilertriltest)

# Currently, there are only unit tests for the Power codegen. To avoid unnecessarily compiling and running an
# executable with no tests, compilerunittest is thus disabled on other architectures.
if(OMR_ARCH_POWER)
add_subdirectory(compilerunittest)
endif()
add_subdirectory(compilerunittest)
endif()
5 changes: 5 additions & 0 deletions fvtest/compilerunittest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ if(OMR_ARCH_POWER)
)
endif()


list(APPEND COMPCGTEST_FILES
abstractinterpreter/AbsInterpreterTest.cpp
)

omr_add_executable(compunittest NOWARNINGS ${COMPCGTEST_FILES})

# For the time being, link against Tril even though we don't really need Tril itself. This is done
Expand Down
Loading

0 comments on commit 703402e

Please sign in to comment.