Commit 43943147 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

tests: move unit tests into subdir

parent 3b1c61e3
## CMakeLists.txt
#
# @author Daniel Krebs <github@daniel-krebs.net>
# @copyright 2014-2019, RWTH Institute for Automation of Complex Power Systems (ACS)
# @license GNU General Public License (version 3)
#
# VILLAScommon
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
##############################################################################
add_executable(unit-tests-common
advio.cpp
json_buffer.cpp
bitset.cpp
graph.cpp
hash_table.cpp
hist.cpp
kernel.cpp
list.cpp
task.cpp
timing.cpp
utils.cpp
)
if(ARCH STREQUAL "x86_64")
list(APPEND TEST_SRC tsc.cpp)
endif()
target_include_directories(unit-tests-common PUBLIC
${PROJECT_SOURCE_DIR}/include
${CRITERION_INCLUDE_DIRS}
)
target_link_libraries(unit-tests-common PUBLIC
villas-common
${CRITERION_LIBRARIES}
)
add_custom_target(run-unit-tests-common
COMMAND $<TARGET_FILE:unit-tests-common> ${CRITERION_OPTS}
USES_TERMINAL
)
# We only have unit tests for now
add_subdirectory(unit)
\ No newline at end of file
## CMakeLists.txt
#
# @author Daniel Krebs <github@daniel-krebs.net>
# @copyright 2014-2019, RWTH Institute for Automation of Complex Power Systems (ACS)
# @license GNU General Public License (version 3)
#
# VILLAScommon
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
##############################################################################
add_executable(unit-tests-common
advio.cpp
json_buffer.cpp
bitset.cpp
graph.cpp
hash_table.cpp
hist.cpp
kernel.cpp
list.cpp
task.cpp
timing.cpp
utils.cpp
)
if(ARCH STREQUAL "x86_64")
list(APPEND TEST_SRC tsc.cpp)
endif()
target_include_directories(unit-tests-common PUBLIC
${PROJECT_SOURCE_DIR}/include
${CRITERION_INCLUDE_DIRS}
)
target_link_libraries(unit-tests-common PUBLIC
villas-common
${CRITERION_LIBRARIES}
)
add_custom_target(run-unit-tests-common
COMMAND $<TARGET_FILE:unit-tests-common> ${CRITERION_OPTS}
USES_TERMINAL
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment