aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-12-11 10:28:47 -0500
committerGitHub <noreply@github.com>2024-12-11 10:28:47 -0500
commit3078519379ffcdc45811431336547d7df31a24ee (patch)
tree2b5be989ca839bd97f55f40605e23d7019397be7 /tests
parent456c5a481a7dabb53434a696488ac6eecb962d5b (diff)
parent4fd92ec6b203d6b94b9e9f9531fd60a65736e810 (diff)
downloadstasis-3078519379ffcdc45811431336547d7df31a24ee.tar.gz
Merge pull request #75 from jhunkeler/delivery-lib
Move delivery_*.c sources into their own library
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt16
-rw-r--r--tests/include/testing.h (renamed from tests/testing.h)0
2 files changed, 9 insertions, 7 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index e35d88d..07ba39c 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,7 +1,3 @@
-include_directories(
- ${CMAKE_SOURCE_DIR}/include
- ${CMAKE_BINARY_DIR}/include
-)
find_program(BASH_PROGRAM bash)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/tests)
set(CTEST_BINARY_DIRECTORY ${PROJECT_BINARY_DIR}/tests)
@@ -22,8 +18,6 @@ if (BASH_PROGRAM AND BUILD_TESTING_RT)
string(REGEX REPLACE ${ext_pattern} "" rt_name ${rt_file})
add_test (${rt_name} ${BASH_PROGRAM} ${rt_file})
endforeach()
- add_test (rt_generic_based_on ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/rt_generic_based_on.sh)
- add_test (rt_generic ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/rt_generic.sh)
endif()
foreach(source_file ${source_files})
@@ -36,7 +30,15 @@ foreach(source_file ${source_files})
elseif (CMAKE_C_COMPILER_ID STREQUAL "MSVC")
target_compile_options(${test_executable} PRIVATE ${win_cflags} ${win_msvc_cflags})
endif()
- target_link_libraries(${test_executable} PRIVATE stasis_core)
+ target_include_directories(${test_executable} PRIVATE
+ ${core_INCLUDE}
+ ${delivery_INCLUDE}
+ ${CMAKE_CURRENT_SOURCE_DIR}/include
+ )
+ target_link_libraries(${test_executable} PRIVATE
+ stasis_core
+ stasis_delivery
+ )
add_test(${test_executable} ${test_executable})
set_tests_properties(${test_executable}
PROPERTIES
diff --git a/tests/testing.h b/tests/include/testing.h
index 4c97bf2..4c97bf2 100644
--- a/tests/testing.h
+++ b/tests/include/testing.h