Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/module-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Module CI

on:
workflow_dispatch:
inputs:
opendaq-ref:
description: "openDAQ SDK commit, branch or tag"
required: false
default: ""
pull_request:

jobs:
call-opendaq-modules-ci:
name: Call module CI
uses: openDAQ/actions/.github/workflows/reusable-module-ci.yml@jira/TBBAS-3013-resusable-workflow-ci-module
with:
opendaq-ref: ${{ github.event.inputs.opendaq-ref || '' }}
packages: >
[
{
"runners": ["ubuntu-*"],
"packages": {"apt": ["libpcap-dev"]}
}
]
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
opendaq_common_compile_targets_settings()
opendaq_setup_compiler_flags(${REPO_OPTION_PREFIX})

if (CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10)
add_compile_options(-Wno-unknown-warning-option)
endif()

if (${REPO_OPTION_PREFIX}_ENABLE_TESTS)
message(STATUS "Unit tests in ${REPO_NAME} are ENABLED")
set(OPENDAQ_ENABLE_TEST_UTILS ON CACHE BOOL "Enable testing utils library")
Expand Down
20 changes: 20 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": 4,
"configurePresets": [
{
"name": "module",
"cacheVariables": {
"ASAM_CMP_ENABLE_EXAMPLE": false
}
}
],
"testPresets": [
{
"name": "module-test",
"configurePreset": "module",
"output": {
"outputOnFailure": true
}
}
]
}
5 changes: 5 additions & 0 deletions modules/asam_cmp_capture_module/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ target_link_libraries(${TEST_APP} PRIVATE ${OPENDAQ_SDK_TARGET_NAMESPACE}::opend
asam_cmp_capture_module_lib
)

if (MSVC)
target_link_options(${TEST_APP} PRIVATE /DELAYLOAD:wpcap.dll /DELAYLOAD:packet.dll)
target_link_libraries(${TEST_APP} PRIVATE delayimp)
endif()

add_test(NAME ${TEST_APP}
COMMAND $<TARGET_FILE:${TEST_APP}>
)
Expand Down
6 changes: 6 additions & 0 deletions modules/asam_cmp_data_sink/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ target_link_libraries(${TEST_APP} PRIVATE ${OPENDAQ_SDK_TARGET_NAMESPACE}::opend
asam_cmp_data_sink_lib
)

if (MSVC)
target_link_options(${TEST_APP} PRIVATE /DELAYLOAD:wpcap.dll /DELAYLOAD:packet.dll)
target_link_libraries(${TEST_APP} PRIVATE delayimp)
endif()


add_test(NAME ${TEST_APP}
COMMAND $<TARGET_FILE:${TEST_APP}>
)
Expand Down
Loading