Skip to content

Commit

Permalink
Tests: add unraveller tool
Browse files Browse the repository at this point in the history
  • Loading branch information
bramoosterhuis committed Sep 17, 2024
1 parent 200249e commit 87cf097
Show file tree
Hide file tree
Showing 3 changed files with 676 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ option(WORKERPOOL_TEST "WorkerPool stress test" OFF)
option(FILE_UNLINK_TEST "File unlink test" OFF)
option(REDIRECT_TEST "Test stream redirection" OFF)
option(MESSAGEBUFFER_TEST "Test message buffer" OFF)
option(UNRAVELLER "reveal thread details" OFF)

if(BUILD_TESTS)
add_subdirectory(unit)
Expand Down Expand Up @@ -36,3 +37,7 @@ endif()
if(CYCLICBUFFER_TEST)
add_subdirectory(cyclic-buffer)
endif()

if(UNRAVELLER)
add_subdirectory(unraveller)
endif()
31 changes: 31 additions & 0 deletions Tests/unraveller/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# If not stated otherwise in this file or this component's license file the
# following copyright and licenses apply:
#
# Copyright 2024 Metrological
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

add_executable(unraveller main.cpp)

target_link_libraries(unraveller
PRIVATE
${NAMESPACE}Core::${NAMESPACE}Core
${NAMESPACE}Cryptalgo::${NAMESPACE}Cryptalgo
)

set_target_properties(unraveller PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES
)

install(TARGETS unraveller DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT ${NAMESPACE}_Test)
Loading

0 comments on commit 87cf097

Please sign in to comment.