ADD: make tests enable/disable

This commit is contained in:
Dominik Meyer 2022-07-09 13:54:02 +02:00
parent 630e511489
commit aba38cb8b6
No known key found for this signature in database
GPG Key ID: B4C312B600606B64

View File

@ -33,6 +33,17 @@ ENDIF()
#
# 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
SOURCES tests/test_base.cpp
@ -53,3 +64,5 @@ ELSE()
target_compile_options(${_test} PUBLIC -O4)
ENDIF()
ENDFOREACH()
ENDIF()