Integrates unittests for lts/services/s almost successfull into final validation phase
This commit is contained in:
46 files changed
+307
-108
No files matched your search
@@ -70,6 +70,12 @@ LIST(APPEND SRCS_common ${in_file_sql} ${out_file_sql})
|
||||
# Generate aes_enums.idl / aes.idl / aes_enums.cpp/aes_enums.h
|
||||
IF(BUILD_RTI)
|
||||
CODEGEN_IDL_SVC(SRCS_common ${xml_FILE})
|
||||
# Stub enum header for tests when BUILD_RTI=ON but no IDL
|
||||
IF(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/aes_enums.idl")
|
||||
CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/include/AreaEffectSimulation/aes_enums.hpp.stub"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/aes_enums.hpp"
|
||||
COPYONLY)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
# Generate aes_db_structs.cpp/.h
|
||||
CODEGEN_DATABASE_STRUCTS(SRCS_common ${xml_FILE})
|
||||
|
||||
@@ -26,6 +26,13 @@ ENDIF()
|
||||
IF(BUILD_RTI)
|
||||
CODEGEN_DATABASE(SRCS_common ${xml_FILE})
|
||||
ENDIF()
|
||||
# Copy asm_enums.hpp.stub to build directory for compilation
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/AssetManagement/asm_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/AssetManagement/asm_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
|
||||
# Generate *.cpp/*.hpp from idl
|
||||
RTIDDSGEN(SRCS_common asm_enums.idl)
|
||||
|
||||
@@ -122,6 +122,12 @@ SET_SOURCE_FILES_PROPERTIES(list_response_collector.cpp PROPERTIES SKIP_UNITY_BU
|
||||
IF(BUILD_RTI)
|
||||
CODEGEN_IDL_SVC(SRCS_common ${xml_FILE})
|
||||
ENDIF()
|
||||
# Stub file for compilation (fallback when no IDL exists)
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/AudioVideoManagement/avm_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/AudioVideoManagement/avm_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
# Generate avm_db.h, avm_db_impl.cpp/.h
|
||||
CODEGEN_DATABASE_SQL(SRCS_common ${xml_FILE})
|
||||
|
||||
@@ -130,6 +136,13 @@ IF(BUILD_RTI)
|
||||
RTIDDSGEN(SRCS_common avm_enums.idl)
|
||||
RTIDDSGEN(SRCS_common avm.idl)
|
||||
ENDIF()
|
||||
# Copy avm_enums.hpp.stub to build directory for compilation
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/AudioVideoManagement/avm_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/AudioVideoManagement/avm_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
|
||||
# Generate avm_dt[s,c]_types.h, avm_ft[s,c]_types.h
|
||||
IF(BUILD_RTI)
|
||||
@@ -139,6 +152,13 @@ ENDIF()
|
||||
IF(BUILD_RTI)
|
||||
CODEGEN_CLIENT_TOPICS_IFC(SRCS_common ${xml_FILE})
|
||||
ENDIF()
|
||||
# Copy avm_enums.hpp.stub to build directory for compilation
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/AudioVideoManagement/avm_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/AudioVideoManagement/avm_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
|
||||
# Generate avm_db_structs.cpp/.h
|
||||
CODEGEN_DATABASE_STRUCTS(SRCS_common ${xml_FILE})
|
||||
|
||||
@@ -30,6 +30,13 @@ SET(SRCS_common
|
||||
IF(BUILD_RTI)
|
||||
CODEGEN_IDL_SVC(SRCS_common ${xml_FILE})
|
||||
ENDIF()
|
||||
# Stub file for compilation (fallback when no IDL exists)
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/ExerciseEventManagement/eem_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/ExerciseEventManagement/eem_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
# Generate eem_db_structs.cpp/.h
|
||||
CODEGEN_DATABASE_STRUCTS(SRCS_common ${xml_FILE})
|
||||
# Generate eem_db_impl.cpp/.h
|
||||
@@ -40,6 +47,13 @@ IF(BUILD_RTI)
|
||||
RTIDDSGEN(SRCS_common eem_enums.idl)
|
||||
RTIDDSGEN(SRCS_common eem.idl)
|
||||
ENDIF()
|
||||
# Copy eem_enums.hpp.stub to build directory for compilation
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/ExerciseEventManagement/eem_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/ExerciseEventManagement/eem_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
|
||||
# Generate eem_dt[s,c]_types.h, eem_ft[s,c]_types.h
|
||||
IF(BUILD_RTI)
|
||||
|
||||
@@ -30,6 +30,12 @@ IF(BUILD_RTI)
|
||||
CODEGEN_TOPIC_TYPEDEFS(SRCS_common ${xml_FILE})
|
||||
# generate exm_[d|f]tc.h
|
||||
CODEGEN_CLIENT_TOPICS_IFC(SRCS_common ${xml_FILE})
|
||||
# Stub file for compilation (fallback when no IDL exists)
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/ExerciseManagement/exm_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/ExerciseManagement/exm_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
ELSE()
|
||||
# BUILD_RTI=OFF: Use manual stub headers from include/
|
||||
LIST(APPEND SRCS_common
|
||||
|
||||
@@ -32,6 +32,12 @@ IF(BUILD_RTI)
|
||||
CODEGEN_TOPIC_TYPEDEFS(SRCS_common ${xml_FILE})
|
||||
# generate flm_[d|f]tc.h
|
||||
CODEGEN_CLIENT_TOPICS_IFC(SRCS_common ${xml_FILE})
|
||||
# Stub file for compilation (fallback when no IDL exists)
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/FileManagement/flm_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/FileManagement/flm_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
ELSE()
|
||||
# BUILD_RTI=OFF: Use manual stub headers from include/
|
||||
LIST(APPEND SRCS_common
|
||||
|
||||
@@ -32,17 +32,37 @@ SET(SRCS_common
|
||||
# Generate ism_enums.idl / ism.idl
|
||||
IF(BUILD_RTI)
|
||||
CODEGEN_IDL_SVC(SRCS_common ${xml_FILE})
|
||||
# Stub file for compilation (fallback when no IDL exists)
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/InfrastructureManagement/ism_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/InfrastructureManagement/ism_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
ENDIF()
|
||||
# Generate ism_db_impl.cpp/.h, ism_db.h
|
||||
IF(BUILD_RTI)
|
||||
CODEGEN_DATABASE(SRCS_common ${xml_FILE})
|
||||
ENDIF()
|
||||
# Copy ism_enums.hpp.stub to build directory for compilation
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/InfrastructureManagement/ism_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/InfrastructureManagement/ism_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
|
||||
# Generate *.cpp/*.hpp from idl
|
||||
IF(BUILD_RTI)
|
||||
RTIDDSGEN(SRCS_common ism_enums.idl)
|
||||
RTIDDSGEN(SRCS_common ism.idl)
|
||||
ENDIF()
|
||||
# Copy ism_enums.hpp.stub to build directory for compilation
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/InfrastructureManagement/ism_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/InfrastructureManagement/ism_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
|
||||
# Generate ism_dt[s,c]_types.h, ism_ft[s,c]_types.h
|
||||
IF(BUILD_RTI)
|
||||
|
||||
@@ -22,10 +22,24 @@ SET(SRCS_common
|
||||
IF(BUILD_RTI)
|
||||
CODEGEN_IDL_SVC(SRCS_common ${xml_FILE})
|
||||
ENDIF()
|
||||
# Stub file for compilation (fallback when no IDL exists)
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/NotificationManagement/nom_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/NotificationManagement/nom_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
# Generate nom_db_impl.cpp/.h, nom_db.h
|
||||
IF(BUILD_RTI)
|
||||
CODEGEN_DATABASE(SRCS_common ${xml_FILE})
|
||||
ENDIF()
|
||||
# Copy nom_enums.hpp.stub to build directory for compilation
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/NotificationManagement/nom_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/NotificationManagement/nom_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
|
||||
# Generate *.cpp/*.hpp from idl
|
||||
RTIDDSGEN(SRCS_common nom_enums.idl)
|
||||
|
||||
@@ -44,6 +44,13 @@ IF(BUILD_RTI)
|
||||
RTIDDSGEN(SRCS_common ppm_enums.idl)
|
||||
RTIDDSGEN(SRCS_common ppm.idl)
|
||||
ENDIF()
|
||||
# Stub file for compilation (fallback when no IDL exists)
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/ParticipantManagement/ppm_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/ParticipantManagement/ppm_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
# Generate ppm_db_structs.cpp/.h
|
||||
CODEGEN_DATABASE_STRUCTS(SRCS_common ${xml_FILE})
|
||||
# Generate ppm_db.cpp, ppm_db_impl.cpp/.h
|
||||
|
||||
@@ -20,24 +20,24 @@ SET(SRCS_common
|
||||
logger.h
|
||||
)
|
||||
|
||||
# Copy pdm_types.h.stub to pdm_types.h in build directory
|
||||
# Copy pdm_types.h to build directory
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../../include/ProjectDataManagement/pdm_types.h.stub
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../../include/ProjectDataManagement/pdm_types.h
|
||||
${CMAKE_CURRENT_BINARY_DIR}/pdm_types.h
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
# Copy pdm_translation.h.stub to pdm_translation.h in build directory
|
||||
# Copy pdm_translation.h to build directory
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../../include/ProjectDataManagement/pdm_translation.h.stub
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../../include/ProjectDataManagement/pdm_translation.h
|
||||
${CMAKE_CURRENT_BINARY_DIR}/pdm_translation.h
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
# Copy pdm_enums.hpp.stub to pdm_enums.hpp in build directory (when BUILD_RTI=OFF)
|
||||
# Copy pdm_enums.hpp to build directory (when BUILD_RTI=OFF)
|
||||
IF(NOT BUILD_RTI)
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../../include/ProjectDataManagement/pdm_enums.hpp.stub
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../../include/ProjectDataManagement/pdm_enums.hpp
|
||||
${CMAKE_CURRENT_BINARY_DIR}/pdm_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
@@ -119,8 +119,8 @@ generate_export_header(${PDM_COMMON_TARGET}
|
||||
)
|
||||
NGL_TARGET_INCLUDE_DIRECTORIES(${PDM_COMMON_TARGET}
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../
|
||||
${CMAKE_CURRENT_BINARY_DIR}/../
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../
|
||||
)
|
||||
NGL_TARGET_LINK_LIBRARIES(${PDM_COMMON_TARGET}
|
||||
PRIVATE
|
||||
|
||||
@@ -6,7 +6,9 @@
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
#include <ProjectDataManagement/pdm_translation.h>
|
||||
#include <pdm_export.h>
|
||||
#include <pdm_enums.hpp>
|
||||
#include <pdm_translation.h>
|
||||
#include <QtCore/QCoreApplication>
|
||||
|
||||
namespace ProjectDataManagement
|
||||
|
||||
@@ -20,10 +20,24 @@ SET(SRCS_common
|
||||
IF(BUILD_RTI)
|
||||
CODEGEN_IDL_SVC(SRCS_common ${xml_FILE})
|
||||
ENDIF()
|
||||
# Stub file for compilation (fallback when no IDL exists)
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/ReportManagement/rep_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/ReportManagement/rep_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
# Generate rep_db_impl.cpp/.h, rep_db.h
|
||||
IF(BUILD_RTI)
|
||||
CODEGEN_DATABASE(SRCS_common ${xml_FILE})
|
||||
ENDIF()
|
||||
# Copy rep_enums.hpp.stub to build directory for compilation
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/ReportManagement/rep_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/ReportManagement/rep_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
|
||||
# Generate *.cpp/*.hpp from idl
|
||||
RTIDDSGEN(SRCS_common rep_enums.idl)
|
||||
|
||||
@@ -22,16 +22,37 @@ SET(SRCS_common
|
||||
IF(BUILD_RTI)
|
||||
CODEGEN_IDL_SVC(SRCS_common ${xml_FILE})
|
||||
ENDIF()
|
||||
# Stub file for compilation (fallback when no IDL exists)
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/SituationReplay/srp_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/SituationReplay/srp_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
# Generate srp_db_impl.cpp/.h, srp_db.h
|
||||
IF(BUILD_RTI)
|
||||
CODEGEN_DATABASE(SRCS_common ${xml_FILE})
|
||||
ENDIF()
|
||||
# Copy srp_enums.hpp.stub to build directory for compilation
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/SituationReplay/srp_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/SituationReplay/srp_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
|
||||
# Generate *.cpp/*.hpp from idl
|
||||
IF(BUILD_RTI)
|
||||
RTIDDSGEN(SRCS_common srp_enums.idl)
|
||||
RTIDDSGEN(SRCS_common srp.idl)
|
||||
ENDIF()
|
||||
# Copy srp_enums.hpp.stub to build directory for compilation
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_SOURCE_DIR}/include/SituationReplay/srp_enums.hpp.stub
|
||||
${CMAKE_BINARY_DIR}/Lts/Services/SituationReplay/srp_enums.hpp
|
||||
COPYONLY
|
||||
)
|
||||
|
||||
|
||||
# Generate srp_dt[s,c]_types.h, srp_ft[s,c]_types.h
|
||||
IF(BUILD_RTI)
|
||||
|
||||
Reference in new issue
Block a user