ADD: make tests enable/disable
This commit is contained in:
parent
630e511489
commit
aba38cb8b6
@ -33,6 +33,17 @@ ENDIF()
|
|||||||
#
|
#
|
||||||
# Everything TEST related
|
# Everything TEST related
|
||||||
#
|
#
|
||||||
|
option(TEST_TREE "Turn running of ASMparseRISCV specific tests on/off" ON)
|
||||||
|
|
||||||
|
IF(${TEST_TREE})
|
||||||
|
enable_testing()
|
||||||
|
message(STATUS "Tree tests enabled")
|
||||||
|
include(CTest)
|
||||||
|
ELSE()
|
||||||
|
message(STATUS "Tree tests disabled")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
IF (${TEST_TREE})
|
||||||
|
|
||||||
add_my_test(TEST test_base
|
add_my_test(TEST test_base
|
||||||
SOURCES tests/test_base.cpp
|
SOURCES tests/test_base.cpp
|
||||||
@ -53,3 +64,5 @@ ELSE()
|
|||||||
target_compile_options(${_test} PUBLIC -O4)
|
target_compile_options(${_test} PUBLIC -O4)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ENDFOREACH()
|
ENDFOREACH()
|
||||||
|
|
||||||
|
ENDIF()
|
Loading…
Reference in New Issue
Block a user