From 79312593e8d3acf7776b4585619d51a3280442a5 Mon Sep 17 00:00:00 2001 From: Marco Randazzo Date: Wed, 18 Jan 2023 18:50:43 +0100 Subject: [PATCH] CMakeLists.txt of devices'tests refactored in order to use new function create_device_test declared in YarpCatchUtils --- cmake/YarpCatchUtils.cmake | 4 +-- src/devices/CMakeLists.txt | 7 ++-- .../ControlBoardRemapper/tests/CMakeLists.txt | 27 -------------- .../ControlBoardWrapper/tests/CMakeLists.txt | 26 -------------- .../tests/CMakeLists.txt | 26 -------------- .../RGBDSensorClient/tests/CMakeLists.txt | 24 +------------ ...ientTest.cpp => RGBDSensorClient_Test.cpp} | 0 .../RGBDSensor_nws_yarp/tests/CMakeLists.txt | 24 +------------ ...pTest.cpp => RGBDSensor_nws_yarp_test.cpp} | 0 .../Rangefinder2DClient/tests/CMakeLists.txt | 34 +----------------- .../tests/CMakeLists.txt | 34 +----------------- .../tests/CMakeLists.txt | 26 ++------------ .../RemoteControlBoard/tests/CMakeLists.txt | 24 +------------ ...rdTest.cpp => RemoteControlBoard_Test.cpp} | 0 .../tests/CMakeLists.txt | 24 +------------ ...st.cpp => robotDescriptionClient_test.cpp} | 0 .../tests/CMakeLists.txt | 24 +------------ ...st.cpp => robotDescriptionServer_test.cpp} | 0 .../CMakeLists.txt | 0 .../ControlBoardRemapper.cpp | 0 .../ControlBoardRemapper.h | 0 .../ControlBoardRemapperHelpers.cpp | 0 .../ControlBoardRemapperHelpers.h | 0 .../ControlBoardRemapperLogComponent.cpp | 0 .../ControlBoardRemapperLogComponent.h | 0 .../RemoteControlBoardRemapper.cpp | 0 .../RemoteControlBoardRemapper.h | 0 .../controlBoardRemapper/tests/CMakeLists.txt | 5 +++ .../tests/controlBoardRemapper_t1_test.cpp} | 0 .../tests/controlBoardRemapper_t2_test.cpp} | 0 .../CMakeLists.txt | 0 .../ControlBoardLogComponent.cpp | 0 .../ControlBoardLogComponent.h | 0 .../ControlBoardWrapper.cpp | 0 .../ControlBoardWrapper.h | 0 .../ControlBoardWrapperAmplifierControl.cpp | 0 .../ControlBoardWrapperAmplifierControl.h | 0 .../ControlBoardWrapperAxisInfo.cpp | 0 .../ControlBoardWrapperAxisInfo.h | 0 .../ControlBoardWrapperCommon.cpp | 0 .../ControlBoardWrapperCommon.h | 0 .../ControlBoardWrapperControlCalibration.cpp | 0 .../ControlBoardWrapperControlCalibration.h | 0 .../ControlBoardWrapperControlLimits.cpp | 0 .../ControlBoardWrapperControlLimits.h | 0 .../ControlBoardWrapperControlMode.cpp | 0 .../ControlBoardWrapperControlMode.h | 0 .../ControlBoardWrapperCurrentControl.cpp | 0 .../ControlBoardWrapperCurrentControl.h | 0 .../ControlBoardWrapperEncodersTimed.cpp | 0 .../ControlBoardWrapperEncodersTimed.h | 0 .../ControlBoardWrapperImpedanceControl.cpp | 0 .../ControlBoardWrapperImpedanceControl.h | 0 .../ControlBoardWrapperInteractionMode.cpp | 0 .../ControlBoardWrapperInteractionMode.h | 0 .../ControlBoardWrapperLogComponent.cpp | 0 .../ControlBoardWrapperLogComponent.h | 0 .../ControlBoardWrapperMotor.cpp | 0 .../ControlBoardWrapperMotor.h | 0 .../ControlBoardWrapperMotorEncoders.cpp | 0 .../ControlBoardWrapperMotorEncoders.h | 0 .../ControlBoardWrapperPWMControl.cpp | 0 .../ControlBoardWrapperPWMControl.h | 0 .../ControlBoardWrapperPidControl.cpp | 0 .../ControlBoardWrapperPidControl.h | 0 .../ControlBoardWrapperPositionControl.cpp | 0 .../ControlBoardWrapperPositionControl.h | 0 .../ControlBoardWrapperPositionDirect.cpp | 0 .../ControlBoardWrapperPositionDirect.h | 0 .../ControlBoardWrapperPreciselyTimed.cpp | 0 .../ControlBoardWrapperPreciselyTimed.h | 0 .../ControlBoardWrapperRemoteCalibrator.cpp | 0 .../ControlBoardWrapperRemoteCalibrator.h | 0 .../ControlBoardWrapperRemoteVariables.cpp | 0 .../ControlBoardWrapperRemoteVariables.h | 0 .../ControlBoardWrapperTorqueControl.cpp | 0 .../ControlBoardWrapperTorqueControl.h | 0 .../ControlBoardWrapperVelocityControl.cpp | 0 .../ControlBoardWrapperVelocityControl.h | 0 .../ControlBoard_nws_yarp.cpp | 0 .../ControlBoard_nws_yarp.h | 0 .../MultiJointData.h | 0 .../RPCMessagesParser.cpp | 0 .../RPCMessagesParser.h | 0 .../StreamingMessagesParser.cpp | 0 .../StreamingMessagesParser.h | 0 .../SubDevice.cpp | 0 .../SubDevice.h | 0 .../controlBoardWrapper/tests/CMakeLists.txt | 4 +++ .../tests/controlBoardWrapper_test.cpp} | 0 .../CMakeLists.txt | 0 .../ControlBoardLogComponent.cpp | 0 .../ControlBoardLogComponent.h | 0 .../ControlBoardWrapper.cpp | 0 .../ControlBoardWrapper.h | 0 .../ControlBoard_nws_yarp.cpp | 0 .../ControlBoard_nws_yarp.h | 0 .../RPCMessagesParser.cpp | 0 .../RPCMessagesParser.h | 0 .../StreamingMessagesParser.cpp | 0 .../StreamingMessagesParser.h | 0 .../tests/CMakeLists.txt | 4 +++ .../tests/ControlBoard_nws_yarp_test.cpp} | 0 .../fakeDepthCamera/tests/CMakeLists.txt | 24 +------------ .../fakeFrameGrabber/tests/CMakeLists.txt | 24 +------------ ...bberTest.cpp => fakeFrameGrabber_test.cpp} | 0 src/devices/fakeIMU/tests/CMakeLists.txt | 24 +------------ src/devices/fakeLaser/tests/CMakeLists.txt | 36 +------------------ .../fakeLaserWithMotor/tests/CMakeLists.txt | 36 +------------------ .../fakeMotionControl/tests/CMakeLists.txt | 24 +------------ .../fakeNavigationDevice/tests/CMakeLists.txt | 34 +----------------- .../frameGrabberCropper/tests/CMakeLists.txt | 24 +------------ ...rTest.cpp => frameGrabberCropper_test.cpp} | 0 .../tests/CMakeLists.txt | 24 +------------ ...est.cpp => frameGrabber_nwc_yarp_test.cpp} | 0 .../tests/CMakeLists.txt | 24 +------------ ...est.cpp => frameGrabber_nws_yarp_test.cpp} | 0 .../frameTransformClient/tests/CMakeLists.txt | 34 +----------------- .../frameTransformServer/tests/CMakeLists.txt | 34 +----------------- src/devices/map2DStorage/tests/CMakeLists.txt | 34 +----------------- .../map2D_nwc_yarp/tests/CMakeLists.txt | 34 +----------------- .../map2D_nws_yarp/tests/CMakeLists.txt | 34 +----------------- .../tests/CMakeLists.txt | 24 +------------ ...p => MultipleAnalogSensorsClient_Test.cpp} | 0 .../tests/CMakeLists.txt | 24 +------------ ...p => MultipleAnalogSensorsServer_test.cpp} | 0 .../tests/CMakeLists.txt | 34 +----------------- .../tests/CMakeLists.txt | 34 +----------------- .../transformClient/tests/CMakeLists.txt | 34 +----------------- .../transformServer/tests/CMakeLists.txt | 34 +----------------- 130 files changed, 50 insertions(+), 895 deletions(-) delete mode 100644 src/devices/ControlBoardRemapper/tests/CMakeLists.txt delete mode 100644 src/devices/ControlBoardWrapper/tests/CMakeLists.txt delete mode 100644 src/devices/ControlBoard_nws_yarp/tests/CMakeLists.txt rename src/devices/RGBDSensorClient/tests/{RGBDSensorClientTest.cpp => RGBDSensorClient_Test.cpp} (100%) rename src/devices/RGBDSensor_nws_yarp/tests/{RGBDSensor_nws_yarpTest.cpp => RGBDSensor_nws_yarp_test.cpp} (100%) rename src/devices/RemoteControlBoard/tests/{RemoteControlBoardTest.cpp => RemoteControlBoard_Test.cpp} (100%) rename src/devices/RobotDescriptionClient/tests/{robotDescriptionClientTest.cpp => robotDescriptionClient_test.cpp} (100%) rename src/devices/RobotDescriptionServer/tests/{robotDescriptionServerTest.cpp => robotDescriptionServer_test.cpp} (100%) rename src/devices/{ControlBoardRemapper => controlBoardRemapper}/CMakeLists.txt (100%) rename src/devices/{ControlBoardRemapper => controlBoardRemapper}/ControlBoardRemapper.cpp (100%) rename src/devices/{ControlBoardRemapper => controlBoardRemapper}/ControlBoardRemapper.h (100%) rename src/devices/{ControlBoardRemapper => controlBoardRemapper}/ControlBoardRemapperHelpers.cpp (100%) rename src/devices/{ControlBoardRemapper => controlBoardRemapper}/ControlBoardRemapperHelpers.h (100%) rename src/devices/{ControlBoardRemapper => controlBoardRemapper}/ControlBoardRemapperLogComponent.cpp (100%) rename src/devices/{ControlBoardRemapper => controlBoardRemapper}/ControlBoardRemapperLogComponent.h (100%) rename src/devices/{ControlBoardRemapper => controlBoardRemapper}/RemoteControlBoardRemapper.cpp (100%) rename src/devices/{ControlBoardRemapper => controlBoardRemapper}/RemoteControlBoardRemapper.h (100%) create mode 100644 src/devices/controlBoardRemapper/tests/CMakeLists.txt rename src/devices/{ControlBoardRemapper/tests/ControlBoardRemapperTest.cpp => controlBoardRemapper/tests/controlBoardRemapper_t1_test.cpp} (100%) rename src/devices/{ControlBoardRemapper/tests/ControlBoardRemapperTest2.cpp => controlBoardRemapper/tests/controlBoardRemapper_t2_test.cpp} (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/CMakeLists.txt (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardLogComponent.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardLogComponent.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapper.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapper.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperAmplifierControl.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperAmplifierControl.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperAxisInfo.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperAxisInfo.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperCommon.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperCommon.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperControlCalibration.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperControlCalibration.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperControlLimits.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperControlLimits.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperControlMode.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperControlMode.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperCurrentControl.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperCurrentControl.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperEncodersTimed.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperEncodersTimed.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperImpedanceControl.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperImpedanceControl.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperInteractionMode.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperInteractionMode.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperLogComponent.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperLogComponent.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperMotor.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperMotor.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperMotorEncoders.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperMotorEncoders.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperPWMControl.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperPWMControl.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperPidControl.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperPidControl.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperPositionControl.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperPositionControl.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperPositionDirect.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperPositionDirect.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperPreciselyTimed.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperPreciselyTimed.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperRemoteCalibrator.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperRemoteCalibrator.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperRemoteVariables.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperRemoteVariables.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperTorqueControl.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperTorqueControl.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperVelocityControl.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoardWrapperVelocityControl.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoard_nws_yarp.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/ControlBoard_nws_yarp.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/MultiJointData.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/RPCMessagesParser.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/RPCMessagesParser.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/StreamingMessagesParser.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/StreamingMessagesParser.h (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/SubDevice.cpp (100%) rename src/devices/{ControlBoardWrapper => controlBoardWrapper}/SubDevice.h (100%) create mode 100644 src/devices/controlBoardWrapper/tests/CMakeLists.txt rename src/devices/{ControlBoardWrapper/tests/ControlBoardWrapperTest.cpp => controlBoardWrapper/tests/controlBoardWrapper_test.cpp} (100%) rename src/devices/{ControlBoard_nws_yarp => controlBoard_nws_yarp}/CMakeLists.txt (100%) rename src/devices/{ControlBoard_nws_yarp => controlBoard_nws_yarp}/ControlBoardLogComponent.cpp (100%) rename src/devices/{ControlBoard_nws_yarp => controlBoard_nws_yarp}/ControlBoardLogComponent.h (100%) rename src/devices/{ControlBoard_nws_yarp => controlBoard_nws_yarp}/ControlBoardWrapper.cpp (100%) rename src/devices/{ControlBoard_nws_yarp => controlBoard_nws_yarp}/ControlBoardWrapper.h (100%) rename src/devices/{ControlBoard_nws_yarp => controlBoard_nws_yarp}/ControlBoard_nws_yarp.cpp (100%) rename src/devices/{ControlBoard_nws_yarp => controlBoard_nws_yarp}/ControlBoard_nws_yarp.h (100%) rename src/devices/{ControlBoard_nws_yarp => controlBoard_nws_yarp}/RPCMessagesParser.cpp (100%) rename src/devices/{ControlBoard_nws_yarp => controlBoard_nws_yarp}/RPCMessagesParser.h (100%) rename src/devices/{ControlBoard_nws_yarp => controlBoard_nws_yarp}/StreamingMessagesParser.cpp (100%) rename src/devices/{ControlBoard_nws_yarp => controlBoard_nws_yarp}/StreamingMessagesParser.h (100%) create mode 100644 src/devices/controlBoard_nws_yarp/tests/CMakeLists.txt rename src/devices/{ControlBoard_nws_yarp/tests/ControlBoard_nws_yarpTest.cpp => controlBoard_nws_yarp/tests/ControlBoard_nws_yarp_test.cpp} (100%) rename src/devices/fakeFrameGrabber/tests/{fakeFrameGrabberTest.cpp => fakeFrameGrabber_test.cpp} (100%) rename src/devices/frameGrabberCropper/tests/{frameGrabberCropperTest.cpp => frameGrabberCropper_test.cpp} (100%) rename src/devices/frameGrabber_nwc_yarp/tests/{frameGrabber_nwc_yarpTest.cpp => frameGrabber_nwc_yarp_test.cpp} (100%) rename src/devices/frameGrabber_nws_yarp/tests/{frameGrabber_nws_yarpTest.cpp => frameGrabber_nws_yarp_test.cpp} (100%) rename src/devices/multipleanalogsensorsclient/tests/{MultipleAnalogSensorsClientTest.cpp => MultipleAnalogSensorsClient_Test.cpp} (100%) rename src/devices/multipleanalogsensorsserver/tests/{MultipleAnalogSensorsServerTest.cpp => MultipleAnalogSensorsServer_test.cpp} (100%) diff --git a/cmake/YarpCatchUtils.cmake b/cmake/YarpCatchUtils.cmake index 0a8c939977e..239b9eb1134 100644 --- a/cmake/YarpCatchUtils.cmake +++ b/cmake/YarpCatchUtils.cmake @@ -22,9 +22,9 @@ endfunction() function(create_device_test test_name) if (DEFINED ${ARGV1}) - set (extra_libs ${ARGV1}) + set (extra_libs ${ARGV1}) endif() - + add_executable(harness_dev_${test_name}) target_sources(harness_dev_${test_name} PRIVATE diff --git a/src/devices/CMakeLists.txt b/src/devices/CMakeLists.txt index 2bd10c69767..902dfd4211e 100644 --- a/src/devices/CMakeLists.txt +++ b/src/devices/CMakeLists.txt @@ -4,6 +4,7 @@ include(YarpPlugin) include(YarpPrintFeature) +include(YarpCatchUtils) yarp_begin_plugin_library(yarpmod OPTION YARP_COMPILE_DEVICE_PLUGINS @@ -86,9 +87,9 @@ yarp_begin_plugin_library(yarpmod add_subdirectory(VirtualAnalogWrapper) add_subdirectory(RGBDSensorClient) add_subdirectory(RGBDSensor_nws_yarp) - add_subdirectory(ControlBoardWrapper) - add_subdirectory(ControlBoard_nws_yarp) - add_subdirectory(ControlBoardRemapper) + add_subdirectory(controlBoardWrapper) + add_subdirectory(controlBoard_nws_yarp) + add_subdirectory(controlBoardRemapper) add_subdirectory(RobotDescriptionClient) add_subdirectory(RobotDescriptionServer) add_subdirectory(JoypadControlNetUtils) diff --git a/src/devices/ControlBoardRemapper/tests/CMakeLists.txt b/src/devices/ControlBoardRemapper/tests/CMakeLists.txt deleted file mode 100644 index 7de1d16dfe2..00000000000 --- a/src/devices/ControlBoardRemapper/tests/CMakeLists.txt +++ /dev/null @@ -1,27 +0,0 @@ -# SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) -# SPDX-License-Identifier: BSD-3-Clause - -include(YarpCatchUtils) - - - -add_executable(harness_dev_controlBoardRemapper) - -target_sources(harness_dev_controlBoardRemapper - PRIVATE - ControlBoardRemapperTest.cpp - ControlBoardRemapperTest2.cpp -) - -target_link_libraries(harness_dev_controlBoardRemapper - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_controlBoardRemapper PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_controlBoardRemapper) diff --git a/src/devices/ControlBoardWrapper/tests/CMakeLists.txt b/src/devices/ControlBoardWrapper/tests/CMakeLists.txt deleted file mode 100644 index 2cce7df1ae2..00000000000 --- a/src/devices/ControlBoardWrapper/tests/CMakeLists.txt +++ /dev/null @@ -1,26 +0,0 @@ -# SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) -# SPDX-License-Identifier: BSD-3-Clause - -include(YarpCatchUtils) - - - -add_executable(harness_dev_controlBoardWrapper) - -target_sources(harness_dev_controlBoardWrapper - PRIVATE - ControlBoardWrapperTest.cpp -) - -target_link_libraries(harness_dev_controlBoardWrapper - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_controlBoardWrapper PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_controlBoardWrapper) diff --git a/src/devices/ControlBoard_nws_yarp/tests/CMakeLists.txt b/src/devices/ControlBoard_nws_yarp/tests/CMakeLists.txt deleted file mode 100644 index 85ac38f352c..00000000000 --- a/src/devices/ControlBoard_nws_yarp/tests/CMakeLists.txt +++ /dev/null @@ -1,26 +0,0 @@ -# SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) -# SPDX-License-Identifier: BSD-3-Clause - -include(YarpCatchUtils) - - - -add_executable(harness_dev_controlBoard_nws_yarp) - -target_sources(harness_dev_controlBoard_nws_yarp - PRIVATE - ControlBoard_nws_yarpTest.cpp -) - -target_link_libraries(harness_dev_controlBoard_nws_yarp - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_controlBoard_nws_yarp PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_controlBoard_nws_yarp) diff --git a/src/devices/RGBDSensorClient/tests/CMakeLists.txt b/src/devices/RGBDSensorClient/tests/CMakeLists.txt index 5a825185196..cef31f28b38 100644 --- a/src/devices/RGBDSensorClient/tests/CMakeLists.txt +++ b/src/devices/RGBDSensorClient/tests/CMakeLists.txt @@ -1,26 +1,4 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_RGBDSensorClient) - -target_sources(harness_dev_RGBDSensorClient - PRIVATE - RGBDSensorClientTest.cpp -) - -target_link_libraries(harness_dev_RGBDSensorClient - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_RGBDSensorClient PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_RGBDSensorClient) +create_device_test(RGBDSensorClient) diff --git a/src/devices/RGBDSensorClient/tests/RGBDSensorClientTest.cpp b/src/devices/RGBDSensorClient/tests/RGBDSensorClient_Test.cpp similarity index 100% rename from src/devices/RGBDSensorClient/tests/RGBDSensorClientTest.cpp rename to src/devices/RGBDSensorClient/tests/RGBDSensorClient_Test.cpp diff --git a/src/devices/RGBDSensor_nws_yarp/tests/CMakeLists.txt b/src/devices/RGBDSensor_nws_yarp/tests/CMakeLists.txt index 936f848e8d5..8dad53641f8 100644 --- a/src/devices/RGBDSensor_nws_yarp/tests/CMakeLists.txt +++ b/src/devices/RGBDSensor_nws_yarp/tests/CMakeLists.txt @@ -1,26 +1,4 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_RGBDSensor_nws_yarp) - -target_sources(harness_dev_RGBDSensor_nws_yarp - PRIVATE - RGBDSensor_nws_yarpTest.cpp -) - -target_link_libraries(harness_dev_RGBDSensor_nws_yarp - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_RGBDSensor_nws_yarp PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_RGBDSensor_nws_yarp) +create_device_test(RGBDSensor_nws_yarp) diff --git a/src/devices/RGBDSensor_nws_yarp/tests/RGBDSensor_nws_yarpTest.cpp b/src/devices/RGBDSensor_nws_yarp/tests/RGBDSensor_nws_yarp_test.cpp similarity index 100% rename from src/devices/RGBDSensor_nws_yarp/tests/RGBDSensor_nws_yarpTest.cpp rename to src/devices/RGBDSensor_nws_yarp/tests/RGBDSensor_nws_yarp_test.cpp diff --git a/src/devices/Rangefinder2DClient/tests/CMakeLists.txt b/src/devices/Rangefinder2DClient/tests/CMakeLists.txt index e8ef7b4d03d..003f940fb8f 100644 --- a/src/devices/Rangefinder2DClient/tests/CMakeLists.txt +++ b/src/devices/Rangefinder2DClient/tests/CMakeLists.txt @@ -1,38 +1,6 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_Rangefinder2DClient) - -target_sources(harness_dev_Rangefinder2DClient - PRIVATE - Rangefinder2DClientTest.cpp -) - -target_link_libraries(harness_dev_Rangefinder2DClient - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - if(TARGET YARP::YARP_math) - target_link_libraries(harness_dev_Rangefinder2DClient - PRIVATE - YARP::YARP_math - ) -else() - set(_disabled_files - Rangefinder2DClientTest.cpp - ) - set_source_files_properties(${_disabled_files} PROPERTIES HEADER_FILE_ONLY ON) + create_device_test(Rangefinder2DClient YARP::YARP_math) endif() - -set_property(TARGET harness_dev_Rangefinder2DClient PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_Rangefinder2DClient) diff --git a/src/devices/Rangefinder2D_nwc_yarp/tests/CMakeLists.txt b/src/devices/Rangefinder2D_nwc_yarp/tests/CMakeLists.txt index 765047a716f..c8cc6a501f9 100644 --- a/src/devices/Rangefinder2D_nwc_yarp/tests/CMakeLists.txt +++ b/src/devices/Rangefinder2D_nwc_yarp/tests/CMakeLists.txt @@ -1,38 +1,6 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_rangefinder2D_nwc_yarp) - -target_sources(harness_dev_rangefinder2D_nwc_yarp - PRIVATE - Rangefinder2D_nwc_yarpTest.cpp -) - -target_link_libraries(harness_dev_rangefinder2D_nwc_yarp - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - if(TARGET YARP::YARP_math) - target_link_libraries(harness_dev_rangefinder2D_nwc_yarp - PRIVATE - YARP::YARP_math - ) -else() - set(_disabled_files - Rangefinder2D_nwc_yarpTest.cpp - ) - set_source_files_properties(${_disabled_files} PROPERTIES HEADER_FILE_ONLY ON) + create_device_test(rangefinder2D_nwc_yarp YARP::YARP_math) endif() - -set_property(TARGET harness_dev_rangefinder2D_nwc_yarp PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_rangefinder2D_nwc_yarp) diff --git a/src/devices/Rangefinder2D_nws_yarp/tests/CMakeLists.txt b/src/devices/Rangefinder2D_nws_yarp/tests/CMakeLists.txt index f30db02d605..93e49d09ab2 100644 --- a/src/devices/Rangefinder2D_nws_yarp/tests/CMakeLists.txt +++ b/src/devices/Rangefinder2D_nws_yarp/tests/CMakeLists.txt @@ -1,26 +1,6 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_rangefinder2D_nws_yarp) - -target_sources(harness_dev_rangefinder2D_nws_yarp - PRIVATE - Rangefinder2D_nws_yarpTest.cpp -) - -target_link_libraries(harness_dev_rangefinder2D_nws_yarp - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_rangefinder2D_nws_yarp PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_rangefinder2D_nws_yarp) +if(TARGET YARP::YARP_math) + create_device_test(rangefinder2D_nws_yarp YARP::YARP_math) +endif() diff --git a/src/devices/RemoteControlBoard/tests/CMakeLists.txt b/src/devices/RemoteControlBoard/tests/CMakeLists.txt index 08a7e3035df..f523197e1d6 100644 --- a/src/devices/RemoteControlBoard/tests/CMakeLists.txt +++ b/src/devices/RemoteControlBoard/tests/CMakeLists.txt @@ -1,26 +1,4 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_RemoteControlBoard) - -target_sources(harness_dev_RemoteControlBoard - PRIVATE - RemoteControlBoardTest.cpp -) - -target_link_libraries(harness_dev_RemoteControlBoard - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_RemoteControlBoard PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_RemoteControlBoard) +create_device_test(RemoteControlBoard) diff --git a/src/devices/RemoteControlBoard/tests/RemoteControlBoardTest.cpp b/src/devices/RemoteControlBoard/tests/RemoteControlBoard_Test.cpp similarity index 100% rename from src/devices/RemoteControlBoard/tests/RemoteControlBoardTest.cpp rename to src/devices/RemoteControlBoard/tests/RemoteControlBoard_Test.cpp diff --git a/src/devices/RobotDescriptionClient/tests/CMakeLists.txt b/src/devices/RobotDescriptionClient/tests/CMakeLists.txt index d0c98a7079c..60e8c6fb563 100644 --- a/src/devices/RobotDescriptionClient/tests/CMakeLists.txt +++ b/src/devices/RobotDescriptionClient/tests/CMakeLists.txt @@ -1,26 +1,4 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_robotDescriptionClient) - -target_sources(harness_dev_robotDescriptionClient - PRIVATE - robotDescriptionClientTest.cpp -) - -target_link_libraries(harness_dev_robotDescriptionClient - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_robotDescriptionClient PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_robotDescriptionClient) +create_device_test(robotDescriptionClient) diff --git a/src/devices/RobotDescriptionClient/tests/robotDescriptionClientTest.cpp b/src/devices/RobotDescriptionClient/tests/robotDescriptionClient_test.cpp similarity index 100% rename from src/devices/RobotDescriptionClient/tests/robotDescriptionClientTest.cpp rename to src/devices/RobotDescriptionClient/tests/robotDescriptionClient_test.cpp diff --git a/src/devices/RobotDescriptionServer/tests/CMakeLists.txt b/src/devices/RobotDescriptionServer/tests/CMakeLists.txt index 2143742ef4b..35a3215653f 100644 --- a/src/devices/RobotDescriptionServer/tests/CMakeLists.txt +++ b/src/devices/RobotDescriptionServer/tests/CMakeLists.txt @@ -1,26 +1,4 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_robotDescriptionServer) - -target_sources(harness_dev_robotDescriptionServer - PRIVATE - robotDescriptionServerTest.cpp -) - -target_link_libraries(harness_dev_robotDescriptionServer - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_robotDescriptionServer PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_robotDescriptionServer) +create_device_test(robotDescriptionServer) diff --git a/src/devices/RobotDescriptionServer/tests/robotDescriptionServerTest.cpp b/src/devices/RobotDescriptionServer/tests/robotDescriptionServer_test.cpp similarity index 100% rename from src/devices/RobotDescriptionServer/tests/robotDescriptionServerTest.cpp rename to src/devices/RobotDescriptionServer/tests/robotDescriptionServer_test.cpp diff --git a/src/devices/ControlBoardRemapper/CMakeLists.txt b/src/devices/controlBoardRemapper/CMakeLists.txt similarity index 100% rename from src/devices/ControlBoardRemapper/CMakeLists.txt rename to src/devices/controlBoardRemapper/CMakeLists.txt diff --git a/src/devices/ControlBoardRemapper/ControlBoardRemapper.cpp b/src/devices/controlBoardRemapper/ControlBoardRemapper.cpp similarity index 100% rename from src/devices/ControlBoardRemapper/ControlBoardRemapper.cpp rename to src/devices/controlBoardRemapper/ControlBoardRemapper.cpp diff --git a/src/devices/ControlBoardRemapper/ControlBoardRemapper.h b/src/devices/controlBoardRemapper/ControlBoardRemapper.h similarity index 100% rename from src/devices/ControlBoardRemapper/ControlBoardRemapper.h rename to src/devices/controlBoardRemapper/ControlBoardRemapper.h diff --git a/src/devices/ControlBoardRemapper/ControlBoardRemapperHelpers.cpp b/src/devices/controlBoardRemapper/ControlBoardRemapperHelpers.cpp similarity index 100% rename from src/devices/ControlBoardRemapper/ControlBoardRemapperHelpers.cpp rename to src/devices/controlBoardRemapper/ControlBoardRemapperHelpers.cpp diff --git a/src/devices/ControlBoardRemapper/ControlBoardRemapperHelpers.h b/src/devices/controlBoardRemapper/ControlBoardRemapperHelpers.h similarity index 100% rename from src/devices/ControlBoardRemapper/ControlBoardRemapperHelpers.h rename to src/devices/controlBoardRemapper/ControlBoardRemapperHelpers.h diff --git a/src/devices/ControlBoardRemapper/ControlBoardRemapperLogComponent.cpp b/src/devices/controlBoardRemapper/ControlBoardRemapperLogComponent.cpp similarity index 100% rename from src/devices/ControlBoardRemapper/ControlBoardRemapperLogComponent.cpp rename to src/devices/controlBoardRemapper/ControlBoardRemapperLogComponent.cpp diff --git a/src/devices/ControlBoardRemapper/ControlBoardRemapperLogComponent.h b/src/devices/controlBoardRemapper/ControlBoardRemapperLogComponent.h similarity index 100% rename from src/devices/ControlBoardRemapper/ControlBoardRemapperLogComponent.h rename to src/devices/controlBoardRemapper/ControlBoardRemapperLogComponent.h diff --git a/src/devices/ControlBoardRemapper/RemoteControlBoardRemapper.cpp b/src/devices/controlBoardRemapper/RemoteControlBoardRemapper.cpp similarity index 100% rename from src/devices/ControlBoardRemapper/RemoteControlBoardRemapper.cpp rename to src/devices/controlBoardRemapper/RemoteControlBoardRemapper.cpp diff --git a/src/devices/ControlBoardRemapper/RemoteControlBoardRemapper.h b/src/devices/controlBoardRemapper/RemoteControlBoardRemapper.h similarity index 100% rename from src/devices/ControlBoardRemapper/RemoteControlBoardRemapper.h rename to src/devices/controlBoardRemapper/RemoteControlBoardRemapper.h diff --git a/src/devices/controlBoardRemapper/tests/CMakeLists.txt b/src/devices/controlBoardRemapper/tests/CMakeLists.txt new file mode 100644 index 00000000000..3e9890ae3a3 --- /dev/null +++ b/src/devices/controlBoardRemapper/tests/CMakeLists.txt @@ -0,0 +1,5 @@ +# SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) +# SPDX-License-Identifier: BSD-3-Clause + +create_device_test(controlBoardRemapper_t1) +create_device_test(controlBoardRemapper_t2) diff --git a/src/devices/ControlBoardRemapper/tests/ControlBoardRemapperTest.cpp b/src/devices/controlBoardRemapper/tests/controlBoardRemapper_t1_test.cpp similarity index 100% rename from src/devices/ControlBoardRemapper/tests/ControlBoardRemapperTest.cpp rename to src/devices/controlBoardRemapper/tests/controlBoardRemapper_t1_test.cpp diff --git a/src/devices/ControlBoardRemapper/tests/ControlBoardRemapperTest2.cpp b/src/devices/controlBoardRemapper/tests/controlBoardRemapper_t2_test.cpp similarity index 100% rename from src/devices/ControlBoardRemapper/tests/ControlBoardRemapperTest2.cpp rename to src/devices/controlBoardRemapper/tests/controlBoardRemapper_t2_test.cpp diff --git a/src/devices/ControlBoardWrapper/CMakeLists.txt b/src/devices/controlBoardWrapper/CMakeLists.txt similarity index 100% rename from src/devices/ControlBoardWrapper/CMakeLists.txt rename to src/devices/controlBoardWrapper/CMakeLists.txt diff --git a/src/devices/ControlBoardWrapper/ControlBoardLogComponent.cpp b/src/devices/controlBoardWrapper/ControlBoardLogComponent.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardLogComponent.cpp rename to src/devices/controlBoardWrapper/ControlBoardLogComponent.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardLogComponent.h b/src/devices/controlBoardWrapper/ControlBoardLogComponent.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardLogComponent.h rename to src/devices/controlBoardWrapper/ControlBoardLogComponent.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapper.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapper.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapper.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapper.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapper.h b/src/devices/controlBoardWrapper/ControlBoardWrapper.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapper.h rename to src/devices/controlBoardWrapper/ControlBoardWrapper.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperAmplifierControl.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperAmplifierControl.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperAmplifierControl.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperAmplifierControl.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperAmplifierControl.h b/src/devices/controlBoardWrapper/ControlBoardWrapperAmplifierControl.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperAmplifierControl.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperAmplifierControl.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperAxisInfo.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperAxisInfo.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperAxisInfo.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperAxisInfo.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperAxisInfo.h b/src/devices/controlBoardWrapper/ControlBoardWrapperAxisInfo.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperAxisInfo.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperAxisInfo.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperCommon.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperCommon.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperCommon.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperCommon.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperCommon.h b/src/devices/controlBoardWrapper/ControlBoardWrapperCommon.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperCommon.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperCommon.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperControlCalibration.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperControlCalibration.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperControlCalibration.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperControlCalibration.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperControlCalibration.h b/src/devices/controlBoardWrapper/ControlBoardWrapperControlCalibration.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperControlCalibration.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperControlCalibration.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperControlLimits.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperControlLimits.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperControlLimits.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperControlLimits.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperControlLimits.h b/src/devices/controlBoardWrapper/ControlBoardWrapperControlLimits.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperControlLimits.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperControlLimits.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperControlMode.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperControlMode.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperControlMode.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperControlMode.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperControlMode.h b/src/devices/controlBoardWrapper/ControlBoardWrapperControlMode.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperControlMode.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperControlMode.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperCurrentControl.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperCurrentControl.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperCurrentControl.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperCurrentControl.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperCurrentControl.h b/src/devices/controlBoardWrapper/ControlBoardWrapperCurrentControl.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperCurrentControl.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperCurrentControl.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperEncodersTimed.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperEncodersTimed.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperEncodersTimed.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperEncodersTimed.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperEncodersTimed.h b/src/devices/controlBoardWrapper/ControlBoardWrapperEncodersTimed.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperEncodersTimed.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperEncodersTimed.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperImpedanceControl.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperImpedanceControl.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperImpedanceControl.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperImpedanceControl.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperImpedanceControl.h b/src/devices/controlBoardWrapper/ControlBoardWrapperImpedanceControl.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperImpedanceControl.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperImpedanceControl.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperInteractionMode.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperInteractionMode.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperInteractionMode.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperInteractionMode.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperInteractionMode.h b/src/devices/controlBoardWrapper/ControlBoardWrapperInteractionMode.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperInteractionMode.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperInteractionMode.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperLogComponent.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperLogComponent.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperLogComponent.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperLogComponent.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperLogComponent.h b/src/devices/controlBoardWrapper/ControlBoardWrapperLogComponent.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperLogComponent.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperLogComponent.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperMotor.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperMotor.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperMotor.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperMotor.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperMotor.h b/src/devices/controlBoardWrapper/ControlBoardWrapperMotor.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperMotor.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperMotor.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperMotorEncoders.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperMotorEncoders.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperMotorEncoders.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperMotorEncoders.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperMotorEncoders.h b/src/devices/controlBoardWrapper/ControlBoardWrapperMotorEncoders.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperMotorEncoders.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperMotorEncoders.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperPWMControl.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperPWMControl.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperPWMControl.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperPWMControl.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperPWMControl.h b/src/devices/controlBoardWrapper/ControlBoardWrapperPWMControl.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperPWMControl.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperPWMControl.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperPidControl.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperPidControl.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperPidControl.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperPidControl.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperPidControl.h b/src/devices/controlBoardWrapper/ControlBoardWrapperPidControl.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperPidControl.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperPidControl.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperPositionControl.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperPositionControl.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperPositionControl.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperPositionControl.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperPositionControl.h b/src/devices/controlBoardWrapper/ControlBoardWrapperPositionControl.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperPositionControl.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperPositionControl.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperPositionDirect.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperPositionDirect.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperPositionDirect.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperPositionDirect.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperPositionDirect.h b/src/devices/controlBoardWrapper/ControlBoardWrapperPositionDirect.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperPositionDirect.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperPositionDirect.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperPreciselyTimed.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperPreciselyTimed.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperPreciselyTimed.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperPreciselyTimed.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperPreciselyTimed.h b/src/devices/controlBoardWrapper/ControlBoardWrapperPreciselyTimed.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperPreciselyTimed.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperPreciselyTimed.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperRemoteCalibrator.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperRemoteCalibrator.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperRemoteCalibrator.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperRemoteCalibrator.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperRemoteCalibrator.h b/src/devices/controlBoardWrapper/ControlBoardWrapperRemoteCalibrator.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperRemoteCalibrator.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperRemoteCalibrator.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperRemoteVariables.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperRemoteVariables.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperRemoteVariables.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperRemoteVariables.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperRemoteVariables.h b/src/devices/controlBoardWrapper/ControlBoardWrapperRemoteVariables.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperRemoteVariables.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperRemoteVariables.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperTorqueControl.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperTorqueControl.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperTorqueControl.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperTorqueControl.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperTorqueControl.h b/src/devices/controlBoardWrapper/ControlBoardWrapperTorqueControl.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperTorqueControl.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperTorqueControl.h diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperVelocityControl.cpp b/src/devices/controlBoardWrapper/ControlBoardWrapperVelocityControl.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperVelocityControl.cpp rename to src/devices/controlBoardWrapper/ControlBoardWrapperVelocityControl.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoardWrapperVelocityControl.h b/src/devices/controlBoardWrapper/ControlBoardWrapperVelocityControl.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoardWrapperVelocityControl.h rename to src/devices/controlBoardWrapper/ControlBoardWrapperVelocityControl.h diff --git a/src/devices/ControlBoardWrapper/ControlBoard_nws_yarp.cpp b/src/devices/controlBoardWrapper/ControlBoard_nws_yarp.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoard_nws_yarp.cpp rename to src/devices/controlBoardWrapper/ControlBoard_nws_yarp.cpp diff --git a/src/devices/ControlBoardWrapper/ControlBoard_nws_yarp.h b/src/devices/controlBoardWrapper/ControlBoard_nws_yarp.h similarity index 100% rename from src/devices/ControlBoardWrapper/ControlBoard_nws_yarp.h rename to src/devices/controlBoardWrapper/ControlBoard_nws_yarp.h diff --git a/src/devices/ControlBoardWrapper/MultiJointData.h b/src/devices/controlBoardWrapper/MultiJointData.h similarity index 100% rename from src/devices/ControlBoardWrapper/MultiJointData.h rename to src/devices/controlBoardWrapper/MultiJointData.h diff --git a/src/devices/ControlBoardWrapper/RPCMessagesParser.cpp b/src/devices/controlBoardWrapper/RPCMessagesParser.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/RPCMessagesParser.cpp rename to src/devices/controlBoardWrapper/RPCMessagesParser.cpp diff --git a/src/devices/ControlBoardWrapper/RPCMessagesParser.h b/src/devices/controlBoardWrapper/RPCMessagesParser.h similarity index 100% rename from src/devices/ControlBoardWrapper/RPCMessagesParser.h rename to src/devices/controlBoardWrapper/RPCMessagesParser.h diff --git a/src/devices/ControlBoardWrapper/StreamingMessagesParser.cpp b/src/devices/controlBoardWrapper/StreamingMessagesParser.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/StreamingMessagesParser.cpp rename to src/devices/controlBoardWrapper/StreamingMessagesParser.cpp diff --git a/src/devices/ControlBoardWrapper/StreamingMessagesParser.h b/src/devices/controlBoardWrapper/StreamingMessagesParser.h similarity index 100% rename from src/devices/ControlBoardWrapper/StreamingMessagesParser.h rename to src/devices/controlBoardWrapper/StreamingMessagesParser.h diff --git a/src/devices/ControlBoardWrapper/SubDevice.cpp b/src/devices/controlBoardWrapper/SubDevice.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/SubDevice.cpp rename to src/devices/controlBoardWrapper/SubDevice.cpp diff --git a/src/devices/ControlBoardWrapper/SubDevice.h b/src/devices/controlBoardWrapper/SubDevice.h similarity index 100% rename from src/devices/ControlBoardWrapper/SubDevice.h rename to src/devices/controlBoardWrapper/SubDevice.h diff --git a/src/devices/controlBoardWrapper/tests/CMakeLists.txt b/src/devices/controlBoardWrapper/tests/CMakeLists.txt new file mode 100644 index 00000000000..7751ec6d118 --- /dev/null +++ b/src/devices/controlBoardWrapper/tests/CMakeLists.txt @@ -0,0 +1,4 @@ +# SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) +# SPDX-License-Identifier: BSD-3-Clause + +controlBoardRemapper (controlBoardWrapper) diff --git a/src/devices/ControlBoardWrapper/tests/ControlBoardWrapperTest.cpp b/src/devices/controlBoardWrapper/tests/controlBoardWrapper_test.cpp similarity index 100% rename from src/devices/ControlBoardWrapper/tests/ControlBoardWrapperTest.cpp rename to src/devices/controlBoardWrapper/tests/controlBoardWrapper_test.cpp diff --git a/src/devices/ControlBoard_nws_yarp/CMakeLists.txt b/src/devices/controlBoard_nws_yarp/CMakeLists.txt similarity index 100% rename from src/devices/ControlBoard_nws_yarp/CMakeLists.txt rename to src/devices/controlBoard_nws_yarp/CMakeLists.txt diff --git a/src/devices/ControlBoard_nws_yarp/ControlBoardLogComponent.cpp b/src/devices/controlBoard_nws_yarp/ControlBoardLogComponent.cpp similarity index 100% rename from src/devices/ControlBoard_nws_yarp/ControlBoardLogComponent.cpp rename to src/devices/controlBoard_nws_yarp/ControlBoardLogComponent.cpp diff --git a/src/devices/ControlBoard_nws_yarp/ControlBoardLogComponent.h b/src/devices/controlBoard_nws_yarp/ControlBoardLogComponent.h similarity index 100% rename from src/devices/ControlBoard_nws_yarp/ControlBoardLogComponent.h rename to src/devices/controlBoard_nws_yarp/ControlBoardLogComponent.h diff --git a/src/devices/ControlBoard_nws_yarp/ControlBoardWrapper.cpp b/src/devices/controlBoard_nws_yarp/ControlBoardWrapper.cpp similarity index 100% rename from src/devices/ControlBoard_nws_yarp/ControlBoardWrapper.cpp rename to src/devices/controlBoard_nws_yarp/ControlBoardWrapper.cpp diff --git a/src/devices/ControlBoard_nws_yarp/ControlBoardWrapper.h b/src/devices/controlBoard_nws_yarp/ControlBoardWrapper.h similarity index 100% rename from src/devices/ControlBoard_nws_yarp/ControlBoardWrapper.h rename to src/devices/controlBoard_nws_yarp/ControlBoardWrapper.h diff --git a/src/devices/ControlBoard_nws_yarp/ControlBoard_nws_yarp.cpp b/src/devices/controlBoard_nws_yarp/ControlBoard_nws_yarp.cpp similarity index 100% rename from src/devices/ControlBoard_nws_yarp/ControlBoard_nws_yarp.cpp rename to src/devices/controlBoard_nws_yarp/ControlBoard_nws_yarp.cpp diff --git a/src/devices/ControlBoard_nws_yarp/ControlBoard_nws_yarp.h b/src/devices/controlBoard_nws_yarp/ControlBoard_nws_yarp.h similarity index 100% rename from src/devices/ControlBoard_nws_yarp/ControlBoard_nws_yarp.h rename to src/devices/controlBoard_nws_yarp/ControlBoard_nws_yarp.h diff --git a/src/devices/ControlBoard_nws_yarp/RPCMessagesParser.cpp b/src/devices/controlBoard_nws_yarp/RPCMessagesParser.cpp similarity index 100% rename from src/devices/ControlBoard_nws_yarp/RPCMessagesParser.cpp rename to src/devices/controlBoard_nws_yarp/RPCMessagesParser.cpp diff --git a/src/devices/ControlBoard_nws_yarp/RPCMessagesParser.h b/src/devices/controlBoard_nws_yarp/RPCMessagesParser.h similarity index 100% rename from src/devices/ControlBoard_nws_yarp/RPCMessagesParser.h rename to src/devices/controlBoard_nws_yarp/RPCMessagesParser.h diff --git a/src/devices/ControlBoard_nws_yarp/StreamingMessagesParser.cpp b/src/devices/controlBoard_nws_yarp/StreamingMessagesParser.cpp similarity index 100% rename from src/devices/ControlBoard_nws_yarp/StreamingMessagesParser.cpp rename to src/devices/controlBoard_nws_yarp/StreamingMessagesParser.cpp diff --git a/src/devices/ControlBoard_nws_yarp/StreamingMessagesParser.h b/src/devices/controlBoard_nws_yarp/StreamingMessagesParser.h similarity index 100% rename from src/devices/ControlBoard_nws_yarp/StreamingMessagesParser.h rename to src/devices/controlBoard_nws_yarp/StreamingMessagesParser.h diff --git a/src/devices/controlBoard_nws_yarp/tests/CMakeLists.txt b/src/devices/controlBoard_nws_yarp/tests/CMakeLists.txt new file mode 100644 index 00000000000..d608cd03761 --- /dev/null +++ b/src/devices/controlBoard_nws_yarp/tests/CMakeLists.txt @@ -0,0 +1,4 @@ +# SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) +# SPDX-License-Identifier: BSD-3-Clause + +create_device_test(controlBoard_nws_yarp) diff --git a/src/devices/ControlBoard_nws_yarp/tests/ControlBoard_nws_yarpTest.cpp b/src/devices/controlBoard_nws_yarp/tests/ControlBoard_nws_yarp_test.cpp similarity index 100% rename from src/devices/ControlBoard_nws_yarp/tests/ControlBoard_nws_yarpTest.cpp rename to src/devices/controlBoard_nws_yarp/tests/ControlBoard_nws_yarp_test.cpp diff --git a/src/devices/fakeDepthCamera/tests/CMakeLists.txt b/src/devices/fakeDepthCamera/tests/CMakeLists.txt index 11263e31f16..da3b6f7e29c 100644 --- a/src/devices/fakeDepthCamera/tests/CMakeLists.txt +++ b/src/devices/fakeDepthCamera/tests/CMakeLists.txt @@ -1,26 +1,4 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_fakeDepthCamera) - -target_sources(harness_dev_fakeDepthCamera - PRIVATE - fakeDepthCameraTest.cpp -) - -target_link_libraries(harness_dev_fakeDepthCamera - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_fakeDepthCamera PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_fakeDepthCamera) +create_device_test(fakeDepthCamera) diff --git a/src/devices/fakeFrameGrabber/tests/CMakeLists.txt b/src/devices/fakeFrameGrabber/tests/CMakeLists.txt index f6acd618dc5..325d1676842 100644 --- a/src/devices/fakeFrameGrabber/tests/CMakeLists.txt +++ b/src/devices/fakeFrameGrabber/tests/CMakeLists.txt @@ -1,26 +1,4 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_fakeFrameGrabber) - -target_sources(harness_dev_fakeFrameGrabber - PRIVATE - fakeFrameGrabberTest.cpp -) - -target_link_libraries(harness_dev_fakeFrameGrabber - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_fakeFrameGrabber PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_fakeFrameGrabber) +create_device_test(fakeFrameGrabber) diff --git a/src/devices/fakeFrameGrabber/tests/fakeFrameGrabberTest.cpp b/src/devices/fakeFrameGrabber/tests/fakeFrameGrabber_test.cpp similarity index 100% rename from src/devices/fakeFrameGrabber/tests/fakeFrameGrabberTest.cpp rename to src/devices/fakeFrameGrabber/tests/fakeFrameGrabber_test.cpp diff --git a/src/devices/fakeIMU/tests/CMakeLists.txt b/src/devices/fakeIMU/tests/CMakeLists.txt index 7e30653c187..dbf7fe85dd3 100644 --- a/src/devices/fakeIMU/tests/CMakeLists.txt +++ b/src/devices/fakeIMU/tests/CMakeLists.txt @@ -1,26 +1,4 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_fakeImu) - -target_sources(harness_dev_fakeImu - PRIVATE - FakeImuTest.cpp -) - -target_link_libraries(harness_dev_fakeImu - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_fakeImu PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_fakeImu) +create_device_test(fakeImu) diff --git a/src/devices/fakeLaser/tests/CMakeLists.txt b/src/devices/fakeLaser/tests/CMakeLists.txt index 5f77ebf89da..02cb24801f2 100644 --- a/src/devices/fakeLaser/tests/CMakeLists.txt +++ b/src/devices/fakeLaser/tests/CMakeLists.txt @@ -1,38 +1,4 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_fakeLaser) - -target_sources(harness_dev_fakeLaser - PRIVATE - fakeLaserTest.cpp -) - -target_link_libraries(harness_dev_fakeLaser - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -if(TARGET YARP::YARP_math) - target_link_libraries(harness_dev_fakeLaser - PRIVATE - YARP::YARP_math - ) -else() - set(_disabled_files - fakeLaserTest.cpp - ) - set_source_files_properties(${_disabled_files} PROPERTIES HEADER_FILE_ONLY ON) -endif() - -set_property(TARGET harness_dev_fakeLaser PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_fakeLaser) +create_device_test(fakeLaser YARP::YARP_math) diff --git a/src/devices/fakeLaserWithMotor/tests/CMakeLists.txt b/src/devices/fakeLaserWithMotor/tests/CMakeLists.txt index f6aeab8478d..d6d0d59808d 100644 --- a/src/devices/fakeLaserWithMotor/tests/CMakeLists.txt +++ b/src/devices/fakeLaserWithMotor/tests/CMakeLists.txt @@ -1,38 +1,4 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_fakeLaserWithMotor) - -target_sources(harness_dev_fakeLaserWithMotor - PRIVATE - fakeLaserWithMotorTest.cpp -) - -target_link_libraries(harness_dev_fakeLaserWithMotor - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -if(TARGET YARP::YARP_math) - target_link_libraries(harness_dev_fakeLaserWithMotor - PRIVATE - YARP::YARP_math - ) -else() - set(_disabled_files - fakeLaserWithMotorTest.cpp - ) - set_source_files_properties(${_disabled_files} PROPERTIES HEADER_FILE_ONLY ON) -endif() - -set_property(TARGET harness_dev_fakeLaserWithMotor PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_fakeLaserWithMotor) +create_device_test(fakeLaserWithMotor YARP::YARP_math) diff --git a/src/devices/fakeMotionControl/tests/CMakeLists.txt b/src/devices/fakeMotionControl/tests/CMakeLists.txt index 1651ab39a95..f7b5fbfba72 100644 --- a/src/devices/fakeMotionControl/tests/CMakeLists.txt +++ b/src/devices/fakeMotionControl/tests/CMakeLists.txt @@ -1,26 +1,4 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_fakeMotionControl) - -target_sources(harness_dev_fakeMotionControl - PRIVATE - FakeMotionControlTest.cpp -) - -target_link_libraries(harness_dev_fakeMotionControl - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_fakeMotionControl PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_fakeMotionControl) +create_device_test(fakeMotionControl) diff --git a/src/devices/fakeNavigationDevice/tests/CMakeLists.txt b/src/devices/fakeNavigationDevice/tests/CMakeLists.txt index 85728d26d41..e14163dea48 100644 --- a/src/devices/fakeNavigationDevice/tests/CMakeLists.txt +++ b/src/devices/fakeNavigationDevice/tests/CMakeLists.txt @@ -1,38 +1,6 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_fakeNavigation) - -target_sources(harness_dev_fakeNavigation - PRIVATE - FakeNavigationTest.cpp -) - -target_link_libraries(harness_dev_fakeNavigation - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - if(TARGET YARP::YARP_math) - target_link_libraries(harness_dev_fakeNavigation - PRIVATE - YARP::YARP_math - ) -else() - set(_disabled_files - FakeNavigationTest.cpp - ) - set_source_files_properties(${_disabled_files} PROPERTIES HEADER_FILE_ONLY ON) + create_device_test(fakeNavigation YARP::YARP_math) endif() - -set_property(TARGET harness_dev_fakeNavigation PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_fakeNavigation) diff --git a/src/devices/frameGrabberCropper/tests/CMakeLists.txt b/src/devices/frameGrabberCropper/tests/CMakeLists.txt index e2269c4b669..8f72e1df34c 100644 --- a/src/devices/frameGrabberCropper/tests/CMakeLists.txt +++ b/src/devices/frameGrabberCropper/tests/CMakeLists.txt @@ -1,26 +1,4 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_frameGrabberCropper) - -target_sources(harness_dev_frameGrabberCropper - PRIVATE - frameGrabberCropperTest.cpp -) - -target_link_libraries(harness_dev_frameGrabberCropper - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_frameGrabberCropper PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_frameGrabberCropper) +create_device_test(frameGrabberCropper) diff --git a/src/devices/frameGrabberCropper/tests/frameGrabberCropperTest.cpp b/src/devices/frameGrabberCropper/tests/frameGrabberCropper_test.cpp similarity index 100% rename from src/devices/frameGrabberCropper/tests/frameGrabberCropperTest.cpp rename to src/devices/frameGrabberCropper/tests/frameGrabberCropper_test.cpp diff --git a/src/devices/frameGrabber_nwc_yarp/tests/CMakeLists.txt b/src/devices/frameGrabber_nwc_yarp/tests/CMakeLists.txt index d1fa43bc5d4..9411689e2d1 100644 --- a/src/devices/frameGrabber_nwc_yarp/tests/CMakeLists.txt +++ b/src/devices/frameGrabber_nwc_yarp/tests/CMakeLists.txt @@ -1,26 +1,4 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_frameGrabber_nwc_yarp) - -target_sources(harness_dev_frameGrabber_nwc_yarp - PRIVATE - frameGrabber_nwc_yarpTest.cpp -) - -target_link_libraries(harness_dev_frameGrabber_nwc_yarp - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_frameGrabber_nwc_yarp PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_frameGrabber_nwc_yarp) +create_device_test(frameGrabber_nwc_yarp) diff --git a/src/devices/frameGrabber_nwc_yarp/tests/frameGrabber_nwc_yarpTest.cpp b/src/devices/frameGrabber_nwc_yarp/tests/frameGrabber_nwc_yarp_test.cpp similarity index 100% rename from src/devices/frameGrabber_nwc_yarp/tests/frameGrabber_nwc_yarpTest.cpp rename to src/devices/frameGrabber_nwc_yarp/tests/frameGrabber_nwc_yarp_test.cpp diff --git a/src/devices/frameGrabber_nws_yarp/tests/CMakeLists.txt b/src/devices/frameGrabber_nws_yarp/tests/CMakeLists.txt index 2696d402fba..8da4028e3ca 100644 --- a/src/devices/frameGrabber_nws_yarp/tests/CMakeLists.txt +++ b/src/devices/frameGrabber_nws_yarp/tests/CMakeLists.txt @@ -1,26 +1,4 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_frameGrabber_nws_yarp) - -target_sources(harness_dev_frameGrabber_nws_yarp - PRIVATE - frameGrabber_nws_yarpTest.cpp -) - -target_link_libraries(harness_dev_frameGrabber_nws_yarp - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_frameGrabber_nws_yarp PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_frameGrabber_nws_yarp) +create_device_test(frameGrabber_nws_yarp) diff --git a/src/devices/frameGrabber_nws_yarp/tests/frameGrabber_nws_yarpTest.cpp b/src/devices/frameGrabber_nws_yarp/tests/frameGrabber_nws_yarp_test.cpp similarity index 100% rename from src/devices/frameGrabber_nws_yarp/tests/frameGrabber_nws_yarpTest.cpp rename to src/devices/frameGrabber_nws_yarp/tests/frameGrabber_nws_yarp_test.cpp diff --git a/src/devices/frameTransformClient/tests/CMakeLists.txt b/src/devices/frameTransformClient/tests/CMakeLists.txt index b0aa1fd9ace..71ce964c4d2 100644 --- a/src/devices/frameTransformClient/tests/CMakeLists.txt +++ b/src/devices/frameTransformClient/tests/CMakeLists.txt @@ -1,38 +1,6 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_FrameTransformClient) - -target_sources(harness_dev_FrameTransformClient - PRIVATE - FrameTransformClientTest.cpp -) - -target_link_libraries(harness_dev_FrameTransformClient - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - if(TARGET YARP::YARP_math) - target_link_libraries(harness_dev_FrameTransformClient - PRIVATE - YARP::YARP_math - ) -else() - set(_disabled_files - FrameTransformClientTest.cpp - ) - set_source_files_properties(${_disabled_files} PROPERTIES HEADER_FILE_ONLY ON) + create_device_test(FrameTransformClient YARP::YARP_math) endif() - -set_property(TARGET harness_dev_FrameTransformClient PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_FrameTransformClient) diff --git a/src/devices/frameTransformServer/tests/CMakeLists.txt b/src/devices/frameTransformServer/tests/CMakeLists.txt index a9dcf90afd1..4c040e7010f 100644 --- a/src/devices/frameTransformServer/tests/CMakeLists.txt +++ b/src/devices/frameTransformServer/tests/CMakeLists.txt @@ -1,38 +1,6 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_FrameTransformServer) - -target_sources(harness_dev_FrameTransformServer - PRIVATE - FrameTransformServerTest.cpp -) - -target_link_libraries(harness_dev_FrameTransformServer - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - if(TARGET YARP::YARP_math) - target_link_libraries(harness_dev_FrameTransformServer - PRIVATE - YARP::YARP_math - ) -else() - set(_disabled_files - FrameTransformServerTest.cpp - ) - set_source_files_properties(${_disabled_files} PROPERTIES HEADER_FILE_ONLY ON) + create_device_test(FrameTransformServer YARP::YARP_math) endif() - -set_property(TARGET harness_dev_FrameTransformServer PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_FrameTransformServer) diff --git a/src/devices/map2DStorage/tests/CMakeLists.txt b/src/devices/map2DStorage/tests/CMakeLists.txt index 43756565ce2..84d456fbf7a 100644 --- a/src/devices/map2DStorage/tests/CMakeLists.txt +++ b/src/devices/map2DStorage/tests/CMakeLists.txt @@ -1,38 +1,6 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_Map2DStorage) - -target_sources(harness_dev_Map2DStorage - PRIVATE - Map2DStorageTest.cpp -) - -target_link_libraries(harness_dev_Map2DStorage - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - if(TARGET YARP::YARP_math) - target_link_libraries(harness_dev_Map2DStorage - PRIVATE - YARP::YARP_math - ) -else() - set(_disabled_files - Map2DnwcTest.cpp - ) - set_source_files_properties(${_disabled_files} PROPERTIES HEADER_FILE_ONLY ON) + create_device_test(RGBDSensor_nws_yarp YARP::YARP_math) endif() - -set_property(TARGET harness_dev_Map2DStorage PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_Map2DStorage) diff --git a/src/devices/map2D_nwc_yarp/tests/CMakeLists.txt b/src/devices/map2D_nwc_yarp/tests/CMakeLists.txt index 8c4d5095c2d..bb5c87ebc37 100644 --- a/src/devices/map2D_nwc_yarp/tests/CMakeLists.txt +++ b/src/devices/map2D_nwc_yarp/tests/CMakeLists.txt @@ -1,38 +1,6 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_Map2Dnwc) - -target_sources(harness_dev_Map2Dnwc - PRIVATE - Map2DnwcTest.cpp -) - -target_link_libraries(harness_dev_Map2Dnwc - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - if(TARGET YARP::YARP_math) - target_link_libraries(harness_dev_Map2Dnwc - PRIVATE - YARP::YARP_math - ) -else() - set(_disabled_files - Map2DnwcTest.cpp - ) - set_source_files_properties(${_disabled_files} PROPERTIES HEADER_FILE_ONLY ON) + create_device_test(Map2Dnwc YARP::YARP_math) endif() - -set_property(TARGET harness_dev_Map2Dnwc PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_Map2Dnwc) diff --git a/src/devices/map2D_nws_yarp/tests/CMakeLists.txt b/src/devices/map2D_nws_yarp/tests/CMakeLists.txt index 8718d5535de..a5d216746a1 100644 --- a/src/devices/map2D_nws_yarp/tests/CMakeLists.txt +++ b/src/devices/map2D_nws_yarp/tests/CMakeLists.txt @@ -1,38 +1,6 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_Map2Dnws) - -target_sources(harness_dev_Map2Dnws - PRIVATE - Map2DnwsTest.cpp -) - -target_link_libraries(harness_dev_Map2Dnws - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - if(TARGET YARP::YARP_math) - target_link_libraries(harness_dev_Map2Dnws - PRIVATE - YARP::YARP_math - ) -else() - set(_disabled_files - Map2DnwsTest.cpp - ) - set_source_files_properties(${_disabled_files} PROPERTIES HEADER_FILE_ONLY ON) + create_device_test(Map2Dnws YARP::YARP_math) endif() - -set_property(TARGET harness_dev_Map2Dnws PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_Map2Dnws) diff --git a/src/devices/multipleanalogsensorsclient/tests/CMakeLists.txt b/src/devices/multipleanalogsensorsclient/tests/CMakeLists.txt index 297f5bc4db8..8dc55fe197c 100644 --- a/src/devices/multipleanalogsensorsclient/tests/CMakeLists.txt +++ b/src/devices/multipleanalogsensorsclient/tests/CMakeLists.txt @@ -1,26 +1,4 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_multipleanalogsensorsclient) - -target_sources(harness_dev_multipleanalogsensorsclient - PRIVATE - MultipleAnalogSensorsClientTest.cpp -) - -target_link_libraries(harness_dev_multipleanalogsensorsclient - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_multipleanalogsensorsclient PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_multipleanalogsensorsclient) +create_device_test(multipleanalogsensorsclient) diff --git a/src/devices/multipleanalogsensorsclient/tests/MultipleAnalogSensorsClientTest.cpp b/src/devices/multipleanalogsensorsclient/tests/MultipleAnalogSensorsClient_Test.cpp similarity index 100% rename from src/devices/multipleanalogsensorsclient/tests/MultipleAnalogSensorsClientTest.cpp rename to src/devices/multipleanalogsensorsclient/tests/MultipleAnalogSensorsClient_Test.cpp diff --git a/src/devices/multipleanalogsensorsserver/tests/CMakeLists.txt b/src/devices/multipleanalogsensorsserver/tests/CMakeLists.txt index 7fbfe529267..cf1f2adcd1d 100644 --- a/src/devices/multipleanalogsensorsserver/tests/CMakeLists.txt +++ b/src/devices/multipleanalogsensorsserver/tests/CMakeLists.txt @@ -1,26 +1,4 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_multipleanalogsensorsserver) - -target_sources(harness_dev_multipleanalogsensorsserver - PRIVATE - MultipleAnalogSensorsServerTest.cpp -) - -target_link_libraries(harness_dev_multipleanalogsensorsserver - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - -set_property(TARGET harness_dev_multipleanalogsensorsserver PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_multipleanalogsensorsserver) +create_device_test(multipleanalogsensorsserver) diff --git a/src/devices/multipleanalogsensorsserver/tests/MultipleAnalogSensorsServerTest.cpp b/src/devices/multipleanalogsensorsserver/tests/MultipleAnalogSensorsServer_test.cpp similarity index 100% rename from src/devices/multipleanalogsensorsserver/tests/MultipleAnalogSensorsServerTest.cpp rename to src/devices/multipleanalogsensorsserver/tests/MultipleAnalogSensorsServer_test.cpp diff --git a/src/devices/navigation2D_nwc_yarp/tests/CMakeLists.txt b/src/devices/navigation2D_nwc_yarp/tests/CMakeLists.txt index 6932eae36a9..00a27611456 100644 --- a/src/devices/navigation2D_nwc_yarp/tests/CMakeLists.txt +++ b/src/devices/navigation2D_nwc_yarp/tests/CMakeLists.txt @@ -1,38 +1,6 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_Navigation2Dnwc) - -target_sources(harness_dev_Navigation2Dnwc - PRIVATE - Navigation2DnwcTest.cpp -) - -target_link_libraries(harness_dev_Navigation2Dnwc - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - if(TARGET YARP::YARP_math) - target_link_libraries(harness_dev_Navigation2Dnwc - PRIVATE - YARP::YARP_math - ) -else() - set(_disabled_files - Navigation2DnwcTest.cpp - ) - set_source_files_properties(${_disabled_files} PROPERTIES HEADER_FILE_ONLY ON) + create_device_test(Navigation2Dnwc YARP::YARP_math) endif() - -set_property(TARGET harness_dev_Navigation2Dnwc PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_Navigation2Dnwc) diff --git a/src/devices/navigation2D_nws_yarp/tests/CMakeLists.txt b/src/devices/navigation2D_nws_yarp/tests/CMakeLists.txt index d0855e98fe1..446bd4bcbde 100644 --- a/src/devices/navigation2D_nws_yarp/tests/CMakeLists.txt +++ b/src/devices/navigation2D_nws_yarp/tests/CMakeLists.txt @@ -1,38 +1,6 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_Navigation2Dnws) - -target_sources(harness_dev_Navigation2Dnws - PRIVATE - Navigation2DnwsTest.cpp -) - -target_link_libraries(harness_dev_Navigation2Dnws - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - if(TARGET YARP::YARP_math) - target_link_libraries(harness_dev_Navigation2Dnws - PRIVATE - YARP::YARP_math - ) -else() - set(_disabled_files - Navigation2DnwsTest.cpp - ) - set_source_files_properties(${_disabled_files} PROPERTIES HEADER_FILE_ONLY ON) + create_device_test(Navigation2Dnws YARP::YARP_math) endif() - -set_property(TARGET harness_dev_Navigation2Dnws PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_Navigation2Dnws) diff --git a/src/devices/transformClient/tests/CMakeLists.txt b/src/devices/transformClient/tests/CMakeLists.txt index 7a4dcba5444..11e21055464 100644 --- a/src/devices/transformClient/tests/CMakeLists.txt +++ b/src/devices/transformClient/tests/CMakeLists.txt @@ -1,38 +1,6 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_TransformerClient) - -target_sources(harness_dev_TransformerClient - PRIVATE - TransformClientTest.cpp -) - -target_link_libraries(harness_dev_TransformerClient - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - if(TARGET YARP::YARP_math) - target_link_libraries(harness_dev_TransformerClient - PRIVATE - YARP::YARP_math - ) -else() - set(_disabled_files - TransformClientTest.cpp - ) - set_source_files_properties(${_disabled_files} PROPERTIES HEADER_FILE_ONLY ON) + create_device_test(transformClient YARP::YARP_math) endif() - -set_property(TARGET harness_dev_TransformerClient PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_TransformerClient) diff --git a/src/devices/transformServer/tests/CMakeLists.txt b/src/devices/transformServer/tests/CMakeLists.txt index 94ec37a5050..e6c0d6a7119 100644 --- a/src/devices/transformServer/tests/CMakeLists.txt +++ b/src/devices/transformServer/tests/CMakeLists.txt @@ -1,38 +1,6 @@ # SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT) # SPDX-License-Identifier: BSD-3-Clause -include(YarpCatchUtils) - - - -add_executable(harness_dev_TransformerServer) - -target_sources(harness_dev_TransformerServer - PRIVATE - TransformServerTest.cpp -) - -target_link_libraries(harness_dev_TransformerServer - PRIVATE - YARP_harness - YARP::YARP_os - YARP::YARP_sig - YARP::YARP_dev - YARP::YARP_dev_tests -) - if(TARGET YARP::YARP_math) - target_link_libraries(harness_dev_TransformerServer - PRIVATE - YARP::YARP_math - ) -else() - set(_disabled_files - TransformServerTest.cpp - ) - set_source_files_properties(${_disabled_files} PROPERTIES HEADER_FILE_ONLY ON) + create_device_test(transformServer YARP::YARP_math) endif() - -set_property(TARGET harness_dev_TransformerServer PROPERTY FOLDER "Test") - -yarp_catch_discover_tests(harness_dev_TransformerServer)