Apply clang-format to all test files
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
144 files changed
+1967
-792
No files matched your search
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @file test_rti_integration.cpp
|
||||
* @brief Tests für RTI Connext DDS Integration
|
||||
*
|
||||
*
|
||||
* Tests verify that:
|
||||
* 1. RTI library detection works correctly
|
||||
* 2. RTI-dependent code is properly guarded
|
||||
@@ -12,40 +12,44 @@
|
||||
#include <string>
|
||||
|
||||
// Test 1: RTI library path detection
|
||||
TEST(RTIIntegration, LibraryPathDetection) {
|
||||
TEST(RTIIntegration, LibraryPathDetection)
|
||||
{
|
||||
// Test that RTI library path can be configured
|
||||
std::string rti_dir = "./external/rti_connext_dds-7.7.0";
|
||||
EXPECT_FALSE(rti_dir.empty());
|
||||
}
|
||||
|
||||
// Test 2: BUILD_RTI configuration
|
||||
TEST(RTIIntegration, BuildRTIConfiguration) {
|
||||
TEST(RTIIntegration, BuildRTIConfiguration)
|
||||
{
|
||||
#if BUILD_RTI
|
||||
// RTI build mode
|
||||
EXPECT_TRUE(true); // RTI is enabled
|
||||
EXPECT_TRUE(true); // RTI is enabled
|
||||
#else
|
||||
// Fallback mode
|
||||
SUCCEED(); // Fallback mode is valid
|
||||
SUCCEED(); // Fallback mode is valid
|
||||
#endif
|
||||
}
|
||||
|
||||
// Test 3: RTI version detection (mock)
|
||||
TEST(RTIIntegration, RTIVersionDetection) {
|
||||
TEST(RTIIntegration, RTIVersionDetection)
|
||||
{
|
||||
// Mock test for RTI version detection
|
||||
std::string expected_version = "7.7.0";
|
||||
std::string detected_version = expected_version; // In real code, this would be detected
|
||||
|
||||
std::string detected_version = expected_version; // In real code, this would be detected
|
||||
|
||||
EXPECT_EQ(detected_version, expected_version);
|
||||
}
|
||||
|
||||
// Test 4: DDS module conditional compilation
|
||||
TEST(RTIIntegration, DDSModuleGuards) {
|
||||
TEST(RTIIntegration, DDSModuleGuards)
|
||||
{
|
||||
// Verify DDS modules compile with BUILD_RTI guards
|
||||
bool dds_available = false;
|
||||
#if BUILD_RTI
|
||||
dds_available = true;
|
||||
#endif
|
||||
|
||||
|
||||
// In fallback mode, DDS should not be available
|
||||
// In RTI mode, DDS should be available
|
||||
// This test just verifies the guard works
|
||||
@@ -54,7 +58,8 @@ TEST(RTIIntegration, DDSModuleGuards) {
|
||||
}
|
||||
|
||||
// Test 5: ProjectDataManagement with RTI guards
|
||||
TEST(RTIIntegration, ProjectDataManagementGuards) {
|
||||
TEST(RTIIntegration, ProjectDataManagementGuards)
|
||||
{
|
||||
// Verify ProjectDataManagement compiles with BUILD_RTI guards
|
||||
#if BUILD_RTI
|
||||
// RTI-specific PDM functionality would be tested here
|
||||
@@ -66,7 +71,8 @@ TEST(RTIIntegration, ProjectDataManagementGuards) {
|
||||
}
|
||||
|
||||
// Test 6: Architecture-specific RTI library path
|
||||
TEST(RTIIntegration, ArchitecturePath) {
|
||||
TEST(RTIIntegration, ArchitecturePath)
|
||||
{
|
||||
// Test architecture-specific path detection
|
||||
std::string arch_path = "x64Linux4gcc8.5.0";
|
||||
EXPECT_FALSE(arch_path.empty());
|
||||
|
||||
Reference in new issue
Block a user