Skip to content

Commit

Permalink
remove cmake option "EnableConan" (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
matkonnerth authored Nov 21, 2024
1 parent fcccfc7 commit 431a203
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 66 deletions.
1 change: 0 additions & 1 deletion .github/workflows/GccDebugMemcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ jobs:
run: |
cmake "$GITHUB_WORKSPACE" \
-DCMAKE_BUILD_TYPE=Debug \
-DENABLE_CONAN=OFF \
-DENABLE_TESTING=ON \
-DBUILD_SHARED_LIBS=ON \
-DENABLE_DATATYPEIMPORT_TEST=ON \
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/GccIntegrationTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ jobs:
run: |
cmake "$GITHUB_WORKSPACE" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DENABLE_CONAN=OFF \
-DENABLE_TESTING=ON \
-DBUILD_SHARED_LIBS=ON \
-DENABLE_INTEGRATION_TEST=ON \
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ jobs:
run: |
cd ./nodesetLoader && cmake "-DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=./cmake-conan/conan_provider.cmake" -DCMAKE_BUILD_TYPE=Debug `
-DUA_NAMESPACE_ZERO=FULL `
-DENABLE_TESTING=ON `
-DENABLE_CONAN=ON . && `
-DENABLE_TESTING=ON . && `
cmake --build .
- name: Test
Expand Down
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ include(GNUInstallDirs)

set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

option(ENABLE_CONAN "use conan for consuming dependencies" off)
option(ENABLE_TESTING "enable tests" off)
option(ENABLE_EXAMPLES "enable examples" on)
option(ENABLE_BACKEND_STDOUT "backend for stdout" on)
Expand All @@ -23,8 +22,6 @@ option(CALC_COVERAGE "calculate code coverage" off)
set(ENABLE_INTEGRATION_TEST off)

if(${ENABLE_BUILD_INTO_OPEN62541})
# Disable conan, since open62541 provider all integration dependencies
set(ENABLE_CONAN off)

# Disble code coverage, since this will be covered within open62541
set(CALC_COVERAGE off)
Expand Down
86 changes: 27 additions & 59 deletions backends/open62541/tests/integration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,62 +8,30 @@ find_program (BASH_PROGRAM bash)

message(WARNING ${CMAKE_CURRENT_BINARY_DIR})

#when open62541 is consumed via conan package, the binary output dir is changed??
if(${ENABLE_CONAN})
add_test(IntegrationTest_DI ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/start_test.sh
"${CMAKE_BINARY_DIR}/bin/integrationClient"
"${CMAKE_BINARY_DIR}/bin/DI/"
"${CMAKE_BINARY_DIR}/bin/refServer_DI"
"${CMAKE_BINARY_DIR}/bin/testServer"
"${open62541_NODESET_BASE_DIR}/DI/Opc.Ua.Di.NodeSet2.xml")


add_test(IntegrationTest_DI_PLCOpen ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/start_test.sh
"${CMAKE_BINARY_DIR}/bin/integrationClient"
"${CMAKE_BINARY_DIR}/bin/DI_PLCopen/"
"${CMAKE_BINARY_DIR}/bin/refServer_DI_PLCopen"
"${CMAKE_BINARY_DIR}/bin/testServer"
"${open62541_NODESET_BASE_DIR}/DI/Opc.Ua.Di.NodeSet2.xml"
"${PLCOPEN_NODESET_PATH}"
)


add_test(IntegrationTest_DI_Euromap_83_77 ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/start_test.sh
"${CMAKE_BINARY_DIR}/bin/integrationClient"
"${CMAKE_BINARY_DIR}/bin/DI_Euromap_83_77"
"${CMAKE_BINARY_DIR}/bin/refServer_DI_Euromap_83_77"
"${CMAKE_BINARY_DIR}/bin/testServer"
"${open62541_NODESET_BASE_DIR}/DI/Opc.Ua.Di.NodeSet2.xml"
"${PROJECT_SOURCE_DIR}/nodesets/euromap/Opc.Ua.PlasticsRubber.GeneralTypes.NodeSet2.xml"
"${PROJECT_SOURCE_DIR}/nodesets/euromap/Opc.Ua.PlasticsRubber.IMM2MES.NodeSet2.xml"
)
else()
add_test(IntegrationTest_DI ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/start_test.sh
"${CMAKE_CURRENT_BINARY_DIR}/client/integrationClient"
"${CMAKE_CURRENT_BINARY_DIR}/Output/DI/"
"${CMAKE_CURRENT_BINARY_DIR}/reference_server/refServer_DI"
"${CMAKE_CURRENT_BINARY_DIR}/test_server/testServer"
"${open62541_NODESET_BASE_DIR}/DI/Opc.Ua.Di.NodeSet2.xml")


add_test(IntegrationTest_DI_PLCOpen ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/start_test.sh
"${CMAKE_CURRENT_BINARY_DIR}/client/integrationClient"
"${CMAKE_CURRENT_BINARY_DIR}/Output/DI_PLCopen/"
"${CMAKE_CURRENT_BINARY_DIR}/reference_server/refServer_DI_PLCopen"
"${CMAKE_CURRENT_BINARY_DIR}/test_server/testServer"
"${open62541_NODESET_BASE_DIR}/DI/Opc.Ua.Di.NodeSet2.xml"
"${PLCOPEN_NODESET_PATH}"
)


add_test(IntegrationTest_DI_Euromap_83_77 ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/start_test.sh
"${CMAKE_CURRENT_BINARY_DIR}/client/integrationClient"
"${CMAKE_CURRENT_BINARY_DIR}/Output/DI_Euromap_83_77"
"${CMAKE_CURRENT_BINARY_DIR}/reference_server/refServer_DI_Euromap_83_77"
"${CMAKE_CURRENT_BINARY_DIR}/test_server/testServer"
"${open62541_NODESET_BASE_DIR}/DI/Opc.Ua.Di.NodeSet2.xml"
"${PROJECT_SOURCE_DIR}/nodesets/euromap/Opc.Ua.PlasticsRubber.GeneralTypes.NodeSet2.xml"
"${PROJECT_SOURCE_DIR}/nodesets/euromap/Opc.Ua.PlasticsRubber.IMM2MES.NodeSet2.xml"
)

endif()
add_test(IntegrationTest_DI ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/start_test.sh
"${CMAKE_CURRENT_BINARY_DIR}/client/integrationClient"
"${CMAKE_CURRENT_BINARY_DIR}/Output/DI/"
"${CMAKE_CURRENT_BINARY_DIR}/reference_server/refServer_DI"
"${CMAKE_CURRENT_BINARY_DIR}/test_server/testServer"
"${open62541_NODESET_BASE_DIR}/DI/Opc.Ua.Di.NodeSet2.xml")


add_test(IntegrationTest_DI_PLCOpen ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/start_test.sh
"${CMAKE_CURRENT_BINARY_DIR}/client/integrationClient"
"${CMAKE_CURRENT_BINARY_DIR}/Output/DI_PLCopen/"
"${CMAKE_CURRENT_BINARY_DIR}/reference_server/refServer_DI_PLCopen"
"${CMAKE_CURRENT_BINARY_DIR}/test_server/testServer"
"${open62541_NODESET_BASE_DIR}/DI/Opc.Ua.Di.NodeSet2.xml"
"${PLCOPEN_NODESET_PATH}"
)


add_test(IntegrationTest_DI_Euromap_83_77 ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/start_test.sh
"${CMAKE_CURRENT_BINARY_DIR}/client/integrationClient"
"${CMAKE_CURRENT_BINARY_DIR}/Output/DI_Euromap_83_77"
"${CMAKE_CURRENT_BINARY_DIR}/reference_server/refServer_DI_Euromap_83_77"
"${CMAKE_CURRENT_BINARY_DIR}/test_server/testServer"
"${open62541_NODESET_BASE_DIR}/DI/Opc.Ua.Di.NodeSet2.xml"
"${PROJECT_SOURCE_DIR}/nodesets/euromap/Opc.Ua.PlasticsRubber.GeneralTypes.NodeSet2.xml"
"${PROJECT_SOURCE_DIR}/nodesets/euromap/Opc.Ua.PlasticsRubber.IMM2MES.NodeSet2.xml"
)

0 comments on commit 431a203

Please sign in to comment.