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 19, 2020
1 parent 8649882 commit 410f9a9
Show file tree
Hide file tree
Showing 5 changed files with 531 additions and 8 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
2 changes: 0 additions & 2 deletions fvtest/compilerunittest/CodeGenTest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ class CodeGenTest : public TRTest::CompilerUnitTest {
}

TR::CodeGenerator* cg() { return _comp.cg(); }

private:
TR::Node *fakeNode;
};

Expand Down
Loading

0 comments on commit 410f9a9

Please sign in to comment.